Role Assignment Widget
Component Detail
User Interface
medium complexity
frontend
1
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Role Assignment Widget
role-assignment-widget
Responsibilities
- Render inline role selector on the user detail page with options filtered to the acting admin's assignable roles
- Dispatch role change request to Role Assignment Service on selection confirmation
- Display loading, success, and error feedback states during role update
Interfaces
RoleSelector(userId: string, currentRole: string, availableRoles: string[]): Widget
onRoleChange(newRole: string): Future<void>
showConfirmationDialog(fromRole: string, toRole: string): Future<bool>
showErrorSnackbar(message: string): void