Row actions
A UI change to the multi-row controls of the list view.
The change
- The Delete column (✕) becomes a Select column, and the Delete Selected button becomes an Actions button.
- Actions opens a drop-down menu of actions, starting with Add Roles, Remove Roles, and Delete. Clicking one makes the front end perform it on all the selected rows.
- Delete has a confirmation box.
- Add Roles and Remove Roles present a pop-up with a checkbox list of roles to add or remove; the pop-up is the confirmation as well (Go and Cancel buttons).
- Remove Roles, per row: has the role → remove it; lacks it → ignore the row. Add Roles mirrors it: already has the role → ignore the row; otherwise add the role to the row.
- Delete Selected brings up a progress bar today; the same bar appears for the other actions.
Today (web/src/App.tsx)
- The column is the ✕ column (
anyDeletable && deleteColumnShown): hidden by default, enabled by the Columns control "Delete column (✕)" entry. The button renders only whendata.result.delete && deleteColumnShown. deleteSelectedconfirms withconfirm(), posts/api/deleteone row at a time, and drives the<progress>status line plus a self-clearing tally.- The roles on a row are grown or trimmed through the
rolesarray ofPOST /api/update(docs/rest.md); the forms edit them as acheckbox-listover therolesallowed-valuespalette.
Open questions (not settled by the ask)
- Which roles the pop-up lists; the
rolesallowed-valuespalette the forms use is the obvious candidate. - Whether the Select column and Actions button keep the delete-permission gate and the hidden default, since Add Roles and Remove Roles need only update.
- Slot
- 30100
- Status
- 10 Open
- Tags
- frontend, list
- Contributors
- Donnie, Sofia