feat(examples): support category: and example: tags in sidebar filter#8829
Merged
Conversation
The sidebar filter previously did fuzzy regex matching only. It now also parses category:<name> and example:<name> tags for exact, case-insensitive selection of a category or example by its kebab-case name. - multiple tags of the same kind union (OR); different kinds and free text combine (AND) - bare words keep the existing fuzzy behavior - placeholder updated to advertise the new syntax
kpal81xd
added a commit
that referenced
this pull request
Jun 3, 2026
…#8829) The sidebar filter previously did fuzzy regex matching only. It now also parses category:<name> and example:<name> tags for exact, case-insensitive selection of a category or example by its kebab-case name. - multiple tags of the same kind union (OR); different kinds and free text combine (AND) - bare words keep the existing fuzzy behavior - placeholder updated to advertise the new syntax
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The examples-browser sidebar filter previously did fuzzy regex matching only. It now also understands
category:<name>andexample:<name>tags, layered on top of the existing free-text search.category:<name>— exact, case-insensitive match on a category's kebab name (e.g.category:animation,category:gaussian-splatting)example:<name>— exact, case-insensitive match on an example's kebab name (e.g.example:blend-trees-1d).*), matching either the category or example nameThe placeholder now advertises the syntax:
Filter, category:, example:.Behavior
gaussian splattingcategory:animationanimationcategoryexample:gltfgltfexample, any categorycategory:animation example:blend-trees-1dcategory:loaders category:animationcategory:animImplementation
Single file:
examples/src/app/components/Sidebar.mjs. Added aparseFiltertokenizer that separatescategory:/example:tags from free-text terms;filterCategoriesevaluates each (category, example) pair against the parsed constraints.Testing
npm run -s lint— cleannpm run -s type:check:app— clean