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.

Feature: Role Assignment

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

Dependencies (1)

Components this component depends on