Skip to content

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

Description

@borskyj

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions