feat(lists): bulk-actions primitive + Tickets bulk-delete opt-in (MAPPS-290) #310
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
psa-systems/mokosh-apps!310
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/MAPPS-290-bulk-actions-primitive"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
src/components/bulk_actions.rs: aBulkSelectionsignal type plus three components (SelectAllHeader,SelectRowCell,BulkActionsBar) and a few helpers (use_bulk_selection,toggle_selected,clear_selection). Pages opt in by mounting ause_bulk_selection()signal at component scope, adding aSelectAllHeaderas the first column, swapping their row component's first cell for aSelectRowCell, and mountingBulkActionsBarabove the table with the verb buttons as children. The bar renders only when at least one row is selected and pluralises the count.The Tickets list is the first opt-in and ships with a
Delete selectedverb that fires parallel DELETE calls and surfaces a success / partial-failure toast, then clears the selection and restarts the resource. Other list views (Companies, Contacts, Projects, Contracts, Invoices, Assets) follow the same shape and are tracked as follow-up PRs under this ticket; MAPPS-303 (asset bulk-edit) builds on this primitive directly.#MAPPS-290