Searchable multi-select select-all
The searchable multi-select surfaces share one shape — search box, pinned section (never capped), capped match window with an "N more — type to narrow" hint — and all three need a select-all affordance.
CheckboxList (
web/src/CheckboxList.tsx) — the edit-form widget behind every:widget :checkbox-listfield (M2M tags, roles, permissions, ...). Search box appears at ≥10 options (SEARCH_THRESHOLD); unselected options render in a scroll box capped at 100 rows (RENDER_CAP). Checking every box by hand is tedious at scale.ChipPicker (
web/src/ChipPicker.tsx) — the filter-bar chip selector, one per chip-eligible field, over the field's full palette (allowed-valuesfrom/api/list). Same pattern in a dropdown, cap 8.ColumnsPicker (
web/src/ColumnsPicker.tsx) — the Columns control; a documented copy of ChipPicker's anatomy (search, capped match window, cap 8) with checkbox rows that never close the popover. Checked = visible; the pinned section is the hidden set. A whole-set select-all already exists here as the "Show all" footer, so the gap is search-scoped select-all — and its mirror (hide-all / select-none) may matter more for columns, where the common flow is start-from-none and check a few. Per Donnie, fold it in.
Planning considerations:
- Scope of "all": the whole option set / palette, or only the current search matches? Shared question; for ColumnsPicker it is the whole question, since whole-set is already covered by "Show all".
- ChipPicker: an all-selected positive filter is equivalent to no filter for that field — confirm intent (value: explicit sets; rows holding stale out-of-palette values).
- ColumnsPicker: a search-scoped select-all must compose with "Show all", and the ✕ delete-column entry must stay untouched (App's key separation already exempts it from "Show all").
- All three are purely presentational (props in, callbacks out); the control stays client-side, no API change.
- Slot
- 7550
- Status
- 60 Done
- Tags
- mvp, frontend
- Contributors
- Donnie, Rosie, Grok