Checkbox list with search
Data UI provides a checkbox list with search for roles. We need to make all checkbox lists support search.
Implemented per checkbox-list-plan.org (all ten design
decisions + both Grok review fixes). New shared web/src/
CheckboxList.tsx renders every :checkbox-list field: selected
items always fully visible (replaces the extraRoles seeding —
values on the record but absent from options still render
checked), client-side substring search once the option set
reaches 10, unselected options in a compact
(~5-row) capped (100) sorted scroll box —
shrink-wrapped so its scrollbar sits beside the
list, not at the screen edge (Donnie, follow-up
tweak after live look) — with an "N more — type
to narrow" hint, both sections sorted.
lisp/backend.lisp selectable-roles non-admin branch now
appends every other user's shareable exclusive role, so the
roles palette (and thus the checkbox search) covers
point-to-point sharing; /api/users + rest-users handler
deleted (single frontend call site removed with the typeahead).
Tests: selectable-roles-non-admin extended, new
selectable-roles-non-admin-includes-all-shareable-exclusives.
Full (run-tests) green: 1544 checks / 26 groups. Frontend
built. Live smoke: worker's palette gained smoke-palette:
exclusive after creating that user (and lost it after
cleanup). The :model: / :compiler: tags ended up unused
(no model or compiler change). Child item "Roles checkbox
search shows all options" left TODO per Donnie (2026-08-31);
note the underlying behavior is fixed by the full palette.
Plan: checkbox-list-plan.org.
- Slot
- 26900
- Status
- 60 Done
- Tags
- mvp, backend, frontend, model, compiler
- Contributors
- Donnie