[Prototype] {table} :filterable: option — search + auto-facets - #4130
Draft
alexandra5000 wants to merge 1 commit into
Draft
alexandra5000 wants to merge 1 commit into
alexandra5000 wants to merge 1 commit into
Conversation
alexandra5000
force-pushed
the
prototype/filterable-table
branch
from
September 17, 2026 13:53
fb1d4ba to
a655726
Compare
Opt-in :filterable: option on the {table} directive:
- Parser (TableDirectiveBlock) reads PropBool("filterable"), mirroring :matrix:.
- View-model wraps the server-rendered table in a <filterable-table> host element
(composes with :matrix: and :widths:).
- Vanilla custom element (progressive enhancement, no framework/hydration cost)
adds a search box + auto-generated facet dropdowns for low-cardinality columns,
with AND semantics and an aria-live 'Showing N of M' count.
- Jest suite (6 tests), CSS, and author docs in syntax/tables.md.
Prototype to de-risk a site-wide filterable-table component.
Co-authored-by: Cursor <cursoragent@cursor.com>
alexandra5000
force-pushed
the
prototype/filterable-table
branch
from
September 18, 2026 09:14
a655726 to
4d59f0c
Compare
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.
What
Prototype of an opt-in
:filterable:option on the{table}directive. It wraps the server-rendered table in a<filterable-table>custom element that adds a search box and auto-generated facet dropdowns (for low-cardinality columns), with AND semantics and anaria-live"Showing N of M" count.Why
Long reference tables (for example the EDOT Collector components list, but we have many of these, some have 1000s of rows) are hard to scan. This is a reusable, opt-in per table.
Design notes
:matrix:and:widths:options.:matrix:exactly (PropBool("filterable")); the view-model wraps the rendered output; the component registers using one line inloadWebComponents.ts.Status: prototype
I'm just tinkering with things to see where it goes.
syntax/tables.md).