PUI-42 feat(tree-index): dim rows outside the query's matching keys #115
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/PUI-42-dimming-search-and-filters-on-treeindex"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Search and filters that dim rather than remove (ADR 0012, Goal Tree Index, milestone 31, page 45).
TreeIndextakesqueryOptions(owning a loaderlessuseIndexQuery;loadis now optional there) or a definition-ownedstate, provides it, and renders the search box, thefiltersslot and the active-filter chips. The chips row moves into an internalActiveFilterscomponent shared withIndex;Indexbehaviour is unchanged.querywith the committed{ search, filters }(TreeQuery) and takesmatching, a set of row keys;undefinedmatches everything.TreeTabletakesmatchingandmatchLabels, setsdata-dimmedon rows outside the set, dims only the content cells with--opacity-disabled(the level, move and select cells stay usable) and appends a hidden "Does not match." to the row header. The count is announced as "n of m match." through the table's live region.listPageMatches, and puts the status filter in the page aside. Storybook:Layout/TreeIndex → Filterswith a play.### Addedunder## Unreleasedinpackages/ui/CHANGELOG.md.Checks: typecheck, lint, format:check, bun test (165), build:vue, build:storybook. Browser: search and status filter dim with the tree shape kept, URL sync, match announcements and cue, a dimmed row moved by pointer and keyboard, clear restores every row; the Filters story play runs clean.
Stacked below: the PUI-43 pull request (Tree contract section and schema definitions) targets this branch.