Role-Specific Home Screen After Login
When a coordinator authenticates and the system resolves their role, they are directed to a role-specific home screen that surfaces coordinator-relevant content: pending proxy registrations, pause requests, team statistics, and quick access to bulk actions. The role resolution service queries Supabase for the user's assigned roles within their active organization context, and the role state manager exposes the resolved role downstream. The role-based home screen widget reads from this state and renders the coordinator variant.
User Story
Acceptance Criteria
- Given a user with the coordinator role logs in, When role resolution completes, Then the coordinator-specific home screen is displayed without any additional navigation steps
- Given a user has multiple roles, When they switch roles using the role switch widget, Then the home screen updates to reflect the newly selected role
- Given a user's role is revoked between sessions, When they log in again, Then the no-access screen is shown instead of the coordinator home screen
- Given a coordinator is on their home screen, When they navigate away and return, Then their tab state is preserved via StatefulShellRoute
Business Value
Coordinators managing multiple peer mentors need immediate access to their operational tools. A generic landing screen wastes time and increases cognitive load, directly impeding the organization's ability to oversee peer mentor activity and respond to pending actions promptly.
Components
- Role-Based Home Screen ui
- Role Resolution Service service
- Role State Manager service
- Supabase Role Data Provider infrastructure
- Role Repository data
- Role-Aware Bottom Navigation ui