BulkActionToolbarWidget
Component Detail
User Interface
medium complexity
frontend
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
A contextual toolbar that appears above the user list when one or more accounts are selected. It exposes bulk deactivation and role reassignment actions with confirmation dialogs and record-count previews to prevent accidental mass changes.
bulk-action-toolbar-widget
Sources & reasoning
Line 109 documents NHF's scale of 1,400 lokallag, making one-by-one user management impractical at that size. The blueprint marks this feature as v1.0, consistent with it building on the foundational user-crud and role-assignment MVP capabilities. It is not called out in the Phase 1 MVP prose, so phased to v1.0 per blueprint evidence rather than defaulting to MVP.
-
docs/source/likeperson.md · line 109**Bredest organisasjonsstruktur:** 12 landsforeninger, 9 regioner, 1 400 lokallag - aktivitetsfordeling mellom ledd må støttes.
Responsibilities
- Render selection count and available bulk actions whenever at least one user is checked
- Trigger confirmation dialog with affected-record preview before dispatching any bulk operation
- Disable or hide actions that are not permitted for the current administrator role
- Display background-job progress indicator for operations exceeding 100 records
- Clear selection state and close toolbar after a bulk operation completes or is cancelled
Interfaces
open(selectedIds: string[]): void
close(): void
onActionConfirmed(action: BulkActionType, selectedIds: string[]): void
showProgress(jobId: string): void