WarUI

Visual nested query builder

GRID-A10-F23P2beyond-baselinePlanned

A visual builder composes conditions into nested AND/OR groups across columns, with NOT support and configurable depth and condition limits. It covers logic that a single column's filter cannot express.

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

Live example

The query builder is open in a side panel with a two-group example query. Column filters are disabled.

Expected behavior

Editing the tree updates the rows live (debounced). The preview reads as plain-language logic. Adding a group beyond maxDepth is disabled. Invalid or incomplete conditions are highlighted and skipped.

Planned API surface

queryBuilder.enabledqueryBuilder.maxDepthqueryBuilder.maxConditionsqueryBuilder.allowNotgetQuery()setQuery(tree)onQueryChanged

Acceptance criteria

  • The query tree is evaluated with correct boolean precedence, matching a truth-table fixture. (pending)
  • NOT negates its group or condition, following the F13 null semantics. (pending)
  • Incomplete conditions are ignored, marked invalid in the UI, and listed by validateFilterModel. (pending)
  • maxDepth and maxConditions are enforced in the UI and in setQuery, where violations are rejected with errors. (pending)
  • The query is combined with column filters and quick search using AND when both are enabled. (pending)