Role Assignment Component
Component Detail
User Interface
medium complexity
frontend
1
Dependencies
0
Dependents
4
Entities
0
Integrations
Description
Admin portal UI component for viewing and modifying user roles. Renders a role selection interface (dropdown or toggle) for each assignable role (Peer Mentor, Coordinator, Organization Admin, Global Admin) with visual indicators of current assignments and change confirmation dialogs.
role-assignment-component
Responsibilities
- Display current role assignments for a selected user
- Provide role selection controls with confirmation before changes
- Show role hierarchy and escalation restrictions visually
- Display immediate feedback on successful or denied role changes
Interfaces
renderRoleSelector(userId: string)
onRoleChange(userId: string, roleId: string, action: 'assign' | 'revoke')
showConfirmationDialog(change: RoleChange)
displayRoleHistory(userId: string)
renderRoleBadges(roles: UserRole[])
setLoading(isLoading: boolean)
showError(message: string)
showSuccess(message: string)
Relationships
Related Data Entities (4)
Data entities managed by this component