Data UI Backlog

Reference-field chip picker

Filter a list by a single-target reference: extend :filter-with beyond boolean with (:kind :reference), legal solely on :target fields present in the list form (the :boolean precedent — legal solely on :type :boolean :column t fields). The frontend renders the chip picker over the field's existing allowed-values palette and emits one :in filter row per field, comparing the FK's display column — the target's identity value, so the match is exact; filterWithKind (App.tsx) collapses to boolean-only today with a comment naming this extension ("a future kind must extend this helper"). Composition: within one reference field the picker uses the same values-array slot as tags, so a second value widens the result (user IN (alice, bob) — union, the only non-empty reading for a single-value FK); across fields the rows AND-compose with search and every other filter. Amended 2026-10-25 after plan review: M2M chips keep has-all (intersection within a field — the todo-list chip-narrowing behavior is the wanted UX, settled with Donnie); the :in union row is the reference picker's semantics only, and its column is the target's identity column carried on the wire as a new :column beside :table (never a hardcoded name — books' :title, files' :path). No :default in v1: a reference filter starts unfiltered (boolean's authored-default seeding has no reference analogue). Two MVP customers, no dependency either direction: Model Bank :models by Owner, and the comments tab by author — under the reading-surface / query-surface split of "Embedded child region", the tab is the finding surface and author is its missing axis (search cannot cover it: :searchable is forbidden on :target fields, rightly). Implementable before or after that item.

Plan: reference-field-chip-picker-plan.org

Implemented per the plan end to end:

Corrected 2026-10-27: the Docs bullet above records that model-reference.md's :filter-with row shipped with "the same-target collapse" — that claim is false. Same-target selections do not collapse to one row and do not union: fetchList emits one target-keyed :in row per selected field and add-where-clause ANDs every row through the single joined column, so disjoint selections (admin through one :users-targeting field, guest through another) match nothing. The docs sentence (and the same stale sentence in fetchList's chip-block comment) is corrected by "Clickable reference chips in list cells" (its plan pins the contract with a dev-REPL probe); Post MVP "Same-target filter semantics" owns the joined-column-aliasing fix.

Slot
3400
Status
60 Done
Tags
mvp, frontend, model, compiler
Contributors
Donnie, Rose, Grok
Plans
Reference-field chip picker (2), Plan: Reference-field chip picker, Reference-field chip picker