FilterBar

An agent-native filter system — a headless `useFilters<T>` engine plus a `FilterBar` of editable `field · operator · value` pills, where the operator set is derived from each field's type so impossible queries can't be authored. Ships type-dispatched value editors, faceted counts, a rolling-vs-calendar relative-date engine, nested AND/OR groups, saved views, URL round-trip, a natural-language Ask bar, and a `FilterApi` handle an agent or MCP tool can drive.

Stablev0.3.0@garn/ui/filters

Default

A self-contained FilterBar over a records array — `+ Filter` → field → operator → value, keyboard-operable chips.

6 results

Prefilled

A controlled model seeded with rules — the editable-pill state, per-segment editing.

Status
Priority
2 results

Live Results

The engine's `predicate` wired to a live result list (`engine.matches`).

Title
5 results
  • Refactor auth modulein_progress
  • Update dependenciesdone
  • Add dark mode toggletodo
  • Investigate flaky testin_progress
  • Write onboarding docsdone

Full Matrix

Every field type (text/number/date/select/multi/user) with its operators + value editor, incl. relative dates and deadline mode.

Amount
Close date
Labels
1 result

Nested Groups

Nested AND/OR groups — the group-outline querybuilder tree with one conjunction per group.

Amount
Stage
Stage
2 results

Ask

The natural-language Ask bar parsing a phrase into editable chips (custom layout via compound children).

3 results

Try: “amount > 10000 and close date this month”

Saved Views

Saved filter views from a localStorage store (createLocalViewStore).

Labels
2 results

Url Round Trip

serialize/deserialize round-trip through a URL query string, with validate-and-repair on restore.

Status
2 results
?filters={"id":"root","conjunction":"and","rules":[{"id":"r1","field":"status","operator":"is","value":"done"}]}