BulkActionToolbar
Component Detail
Description
Contextual toolbar that appears in the Admin Web Portal user list when one or more user rows are checked. It surfaces available bulk operations (deactivate, assign role, move to org unit) and triggers a confirmation modal before any destructive action is dispatched. It displays the current selection count and resets when the selection is cleared.
bulk-action-toolbar
Sources & reasoning
Blueprint tags bulk-actions [v1.0], placing it after MVP. NHF's 1,400 local chapters (line 109) is the primary driver - individual user management at that scale is operationally impractical, motivating batch operations as a near-term follow-on to core User CRUD. No source doc phase evidence places it at MVP; the blueprint's v1.0 tag is authoritative. Target release is v1.0.
-
docs/source/likeperson.md · line 109Bredest organisasjonsstruktur: 12 landsforeninger, 9 regioner, 1 400 lokallag - aktivitetsfordeling mellom ledd må støttes.
-
docs/source/likeperson.md · line 188Coordinators and Peer Mentors are managed inside the admin portal (invitations, role assignment, deactivation) but never log in to it
Responsibilities
- Render and show/hide the toolbar based on checkbox selection state
- Display the count of currently selected users
- Present bulk action buttons filtered to the admin's permitted operations
- Open a confirmation modal with affected-count details for destructive operations
- Emit the confirmed bulk action request to BulkUserActionService
Interfaces
show(selectedUserIds: string[]): void
hide(): void
onActionConfirmed(action: BulkActionType, userIds: string[]): void
renderConfirmationModal(action: BulkActionType, affectedCount: number): ModalRef