Skip to content

Apply objectLimit globally after filtering#224

Open
kpoxo6op wants to merge 2 commits into
tscircuit:mainfrom
kpoxo6op:bounty/global-object-limit-42
Open

Apply objectLimit globally after filtering#224
kpoxo6op wants to merge 2 commits into
tscircuit:mainfrom
kpoxo6op:bounty/global-object-limit-42

Conversation

@kpoxo6op
Copy link
Copy Markdown

Summary

  • apply objectLimit once across all filtered graphics objects instead of once per object type
  • keep the total received count based on the unbounded filtered result so the warning is accurate
  • add a focused regression test for the shared limiter
  • document that objectLimit is global after viewport/layer/step filters

/claim #42

Checks

  • npx --yes bun install --frozen-lockfile
  • npx --yes bun test tests/apply-object-limit.test.ts
  • npx --yes bun x biome check site/components/InteractiveGraphics/InteractiveGraphics.tsx site/utils/applyObjectLimit.ts tests/apply-object-limit.test.ts README.md
  • npx --yes bun run build

@vercel
Copy link
Copy Markdown

vercel Bot commented May 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
graphics-debug Ready Ready Preview, Comment May 22, 2026 11:26am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant