Searchable chip picker on list views
The chip filter system works, but you can only click a chip that already appears on a row of the current page. On a large tag vocabulary (or a page that happens not to show the value you want) there is no way to find and apply a chip.
Decided 2026-10-17 (Donnie):
- One picker per chip-eligible field, not one grouped picker. It must stay small at rest: a compact icon (or similarly cheap control) in the filter bar that expands into a searchable dropdown on click. The open list shows at most N matches; typing narrows. Click outside / Escape closes it. N is a frontend constant, same idea as
CheckboxList'sRENDER_CAP— not a model key. - Empty results are legal. Picking a value that matches no row still applies the filter and shows the empty list. The active chip in the filter bar (already rendered for cell chips) is how you remove it; Clear filters covers it too.
The picker toggles the same has-all filter a cell chip does (toggleChipFilter). Active chips, URL state, and Clear filters stay as they are.
Today the list payload only carries values present on the returned rows. The picker needs the full vocabulary, which /api/list already computes as allowed-values for :checkbox-list fields — reuse that palette rather than inventing a new endpoint. Open for the plan: full palette vs only values that occur on some row (a tag nobody uses is noise; the empty-result decision does not settle this, since a used tag can still match zero rows under the current search / other filters).
Sibling of ":searchable on M2M list fields" above: that item is fuzzy free-text through the join; this one is exact-match chip filtering when the value is not on the page. Chips stay the better tag UX; this removes the "value must be visible" limitation.
Plan: searchable-chips-plan.org.
Implemented 2026-10-17 per the plan, frontend-only:
web/src/ChipPicker.tsx(new): presentational picker. Resting state is one 🏷 icon button (title/aria-label"Filter by <label>",aria-expanded). Open: absolutely-positioned dropdown (the wrapping filter bar usesflexWrap, an in-flow panel would reflow it) with an autofocused search input, a pinned selected section (active-chip treatment, never filtered, never capped — CheckboxList's rule), a capped unselected window (RENDER_CAP = 8, alphabetical head of the case-insensitive substring matches), the "N more — type to narrow" hint, and a muted "No matching values" line. Escape closes; Enter toggles the first visible unselected match only on a non-empty query (Enter adds, never removes). Click outside closes via a documentmousedownlistener that ignores events inside the wrapper (button / panel / search input) so row clicks land.web/src/App.tsx:chipPickerOpenstate (one field open at a time — opening one closes the other); oneChipPickerperchipFieldMetaentry inlistFieldsorder, after the boolean selects and before the active-chip spans; palette isallowed-values[f];onToggleistoggleChipFilter; button hidden on an empty palette.toggleChipFilter, active chips, URL state, cell chips, and Clear filters untouched.docs/model-reference.md: one sentence on the:checkbox-listwidget row noting the list-view chip picker.
No Lisp changes; no FiveAM coverage (presentational — the has-all filter path it calls is already tested). Verified tsc + vite build green and, on the live todos image, that allowed-values carries the full tag palette (:tags ("gamma" "alpha" "beta")) even when the only rows on the page show a subset.
- Slot
- 2000
- Status
- 60 Done
- Tags
- mvp, backend, frontend
- Contributors
- Donnie