Instatic icon indicating copy to clipboard operation
Instatic copied to clipboard

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

Open borskyj opened this issue 4 months ago • 0 comments

Problem

The Selectors pane only offers All / User / Utility / Unused. There's no way to filter down to selectors that are applied on the page. To adjust an actively-used selector, you currently have to browse "All" (or "User") and eyeball each row's "Used N times" badge — no way to hide the unused/ambient noise and work through just the live ones.

Proposed solution

Add a Used filter option alongside the existing four, showing only selectors where resolveSelectorUsage(...).unused === false — i.e. class-kind rules with a reference count > 0. (Ambient rules with an unassessable/no-badge state are a judgment call — probably include them in "Used" too, since they're not provably dead.)

Where it plugs in

Alternatives considered

No response

Area

None

borskyj avatar Jul 28 '26 18:07 borskyj