Data UI Backlog

Remove Roles column from list views (non-base types)

The list views of user-defined types show a Roles column that nobody interacts with (not sortable, not searchable, excluded from filter chips) — pure clutter on every list, and it ships resource-role names in every /api/list payload. Decision <span class="timestamp-wrapper"><span class="timestamp">[2026-10-02 Fri]</span></span>: Option 2, backend, scoped to :list-form — show-roles-p (lisp/backend.lisp) stops ignoring its form argument and returns nil for :list-form, so fe-fields no longer injects the synthetic :roles checkbox-list into the list-form schema and add-roles-to-view stops attaching roles to list records. Add / update / view forms keep their Roles checkbox-list; allowed-values.roles stays (the Add form seeds from it). :users's Roles column is a real M2M field, not the injection, and survives untouched. Downstream impact investigated and folded into the plan: four backend-tests assertions flip (show-roles-p list cases, be-rec :list-form sub-case, add-roles-to-view list carrier — reworked onto the update form), model-reference two-line doc update, App.tsx comment-only touch-up. Grok review folded: rollup view-mode /api/item also passes :list-form (no-op today — :suppress-roles covers it), corrected completeness claim and docstrings, a be-list records-lack-:roles pin. Plan approved → READY.

Plan: roles-column-plan.org.

Implemented 2026-10-02 per plan, one function plus tests/docs: show-roles-p (lisp/backend.lisp) stops ignoring form and returns nil for :list-form (docstring added stating the rule). fe-fields no longer injects the synthetic :roles into list-form schema; add-roles-to-view skips the attach on list records. allowed-values.roles kept; :users's real M2M :roles field untouched. Backend tests: show-roles-p list cases flipped to is-false; be-rec-includes-roles :list-form sub-case inverted (+ docstring rewrite); add-roles-to-view-filters-creator-exclusive reworked onto be-rec :update-form; new pins fe-fields-roles- form-placement (list/add/update schema, palette, :users) and be-list-records-lack-roles. docs/model-reference.md Roles-field and fe-fields eligibility lines updated; App.tsx chipFieldMeta comment-only. Verified live on todos (schema, records, palette, :users) and by full (run-tests): 1953 checks, 33 groups, all pass. No deviations.

Slot
1200
Status
60 Done
Tags
mvp, backend, frontend, docs
Contributors
Donnie