Role Switch Widget
Component Detail
User Interface
medium complexity
mobile
1
Dependencies
0
Dependents
2
Entities
0
Integrations
Description
Hamburger menu widget that renders the user's active organization memberships and enables single-tap context switching. Visible only when the authenticated user holds more than one active membership.
role-switch-widget
Responsibilities
- Render list of active organization memberships with current context highlighted
- Dispatch context-switch intent to Organization Membership Service on selection
- Show loading and confirmation states during token exchange and navigation rebuild
Interfaces
build(memberships: List<OrganizationMembership>, activeOrgId: String): Widget
onMembershipTapped(organizationId: String): void
setLoading(isLoading: bool): void
Relationships
Related Data Entities (2)
Data entities managed by this component