View Simplified Assignment-Scoped Contact List as a Peer Mentor
Peer mentors interact with the app primarily in short, goal-directed sessions after completing a peer support visit. Their contact list is scoped to their active assignments only, eliminating the cognitive overhead of seeing unrelated contacts managed by other peer mentors or coordinators. The simplified view removes coordinator-specific management actions and custom field displays that are not relevant to peer mentors, presenting a clean card layout with the name, status, and a quick-action shortcut to log an activity with that contact. The scope is enforced via Supabase RLS and the Contact List BLoC role state, ensuring server-side data isolation with no additional client-side filtering required beyond BLoC state management.
User Story
Acceptance Criteria
- Given a peer mentor opens the Contacts screen, when the list loads, then only contacts linked to their active assignments are displayed
- Given a peer mentor's list is loaded, when they view a contact card, then coordinator-specific management actions (edit, assign, notes admin) are not shown
- Given a peer mentor has no active assignments, when the Contacts screen loads, then an appropriate empty state message is shown explaining that no contacts are currently assigned
- Given a peer mentor searches within their scoped contact list, when results are returned, then only their assignment-linked contacts can appear in results regardless of the query
- Given Supabase RLS is enforced, when the Contact Repository fetches data for a peer mentor, then the database layer returns only their assignment-linked records, not the full org roster
Business Value
Peer mentors consistently identified cognitive overload and unnecessary complexity as barriers to app adoption. Showing peer mentors only their assigned contacts directly reduces cognitive load, speeds up their primary workflows, and makes the app feel purposeful for their role. This is especially important for peer mentors with cognitive or motor challenges who benefit most from a focused, minimal interface. Assignment-scoped RLS also ensures sensitive data about other contacts is never exposed to peer mentors, which is a critical privacy requirement when the contact list may include sensitive personal information.
Components
- Contacts List Screen ui
- Contact Card Widget ui
- Contact List BLoC service
- Contact Repository data
- Contact Search Service service