Role Assignment Widget
Component Detail
User Interface
medium complexity
frontend
1
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Embedded widget rendered within the User Detail Page and accessible as a standalone workflow from bulk actions. Presents a controlled select component listing available roles (Peer Mentor, Coordinator) with inline role descriptions and an explicit confirmation step before submission to prevent accidental changes.
role-assignment-widget
Responsibilities
- Render role select with current role pre-selected and inline permission descriptions
- Enforce explicit confirmation dialog before submitting a role change
- Display validation errors and propagation status after submission
- Support embedding in User Detail Page and standalone bulk-action workflow
Interfaces
onRoleChange(userId: string, newRoleId: string): Promise<void>
onCancel(): void
loadCurrentRole(userId: string): Promise<RoleAssignment>