WarUI

Typed quick-filter syntax in the filter row

GRID-A10-F29P1beyond-baselinePlanned

Lets power users type compact operators directly into a column's filter input instead of opening an operator menu: `a,b` matches either term (OR), `a&b` requires both (AND), `!a` excludes rows that contain the term and `=a` requires an exact match. The text is parsed into the same filter model as the menu-driven operators (F02, F08), so filter chips, saved views and the query AST see an ordinary condition list. This…

Planned. This page shows the specification from issue #188. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A 500-row shipments grid with a filter row on Country, Status and Customer and quick syntax enabled.

Expected behavior

`mx,co` shows rows that match either term and the viewer shows an OR model with two contains conditions. `=open` keeps only exact 'open' values (case-insensitive by default). `!test` hides rows that contain 'test'. `a,b&c` is parsed as `a OR (b AND c)`. Opening the operator menu after typing shows the equivalent conditions.

Planned API surface

filterParams.quickSyntax: boolean | QuickSyntaxConfigquickSyntax.tokens { or: ',', and: '&', not: '!', exact: '=' }quickSyntax.escape: '\\'parseQuickFilter(text, column) → FilterModelformatQuickFilter(model) → stringonQuickFilterParseError

Acceptance criteria

  • `,` produces an OR condition list and `&` an AND list; `&` binds tighter than `,`, and the precedence is documented. (pending)
  • `!term` maps to notContains, `=term` to equals and `!=term` to notEquals. (pending)
  • Typed text and the filter model round-trip: formatting a parsed model yields an equivalent model when parsed again. (pending)
  • A backslash escapes a literal token character, so `\,` searches for a comma. (pending)
  • Quick syntax is opt-in per column and changes nothing when disabled. (pending)
  • Number and date columns parse each term with the column's locale-aware parser; an unparseable term shows an inline error instead of silently matching nothing. (pending)
  • Filter status chips (F20) show the parsed conditions, not the raw text. (pending)