Skip to content

feat(selectors-panel): add Used filter - #302

Draft
borskyj-symph wants to merge 1 commit into
CoreBunch:mainfrom
borskyj-symph:feat/selectors-used-filter
Draft

feat(selectors-panel): add Used filter#302
borskyj-symph wants to merge 1 commit into
CoreBunch:mainfrom
borskyj-symph:feat/selectors-used-filter

Conversation

@borskyj-symph

@borskyj-symph borskyj-symph commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Closes #301

Summary

  • Add a "Used" filter to the Selectors panel, alongside the existing All/User/Utility/Unused filters, so editors can isolate in-use selectors for editing instead of only being able to filter away unused ones.
  • Filter logic mirrors the existing Unused filter's implementation (resolveSelectorUsage), covering both exact-count class selectors and provably-dead ambient selectors.

Test plan

  • New test filters to only used selectors in selectorsPanel.test.tsx, written TDD-first (watched it fail before implementing)
  • bun test src/__tests__/panels/selectorsPanel.test.tsx — 32/32 pass
  • bun run lint — clean
  • bun run build — clean
  • Manually verified in a local dev instance: added a class to a canvas node, confirmed it appears under "Used" and disappears from "Unused"

Add a "Used" filter to the Selectors panel, mirroring the existing
Unused filter, so editors can isolate in-use selectors for editing
instead of only being able to filter away unused ones.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add a "Used" or "Active" filter to the Selectors pane

2 participants