View Assigned Contacts List on Profile
The peer mentor profile screen should include an assigned-contacts-list section that shows all contacts currently assigned to this mentor. Each contact entry should display the contact's name, assignment start date, last activity date, and current relationship status. The peer mentor should be able to tap any contact to navigate directly to the contact detail screen. For mentors managing multiple contacts across chapters, this list must respect row-level security to only show contacts the mentor is authorized to see. The component should handle empty state gracefully for new mentors with no assignments yet.
User Story
Acceptance Criteria
- Given I am on my profile screen, When the assigned-contacts-list loads, Then I see all contacts currently assigned to me with their name and last activity date
- Given I have no assigned contacts, When the assigned-contacts-list loads, Then I see a clear empty state message indicating no contacts are currently assigned
- Given I tap a contact in my assigned list, When the navigation executes, Then I am taken to the contact detail screen for that contact
- Given I have contacts assigned across multiple chapters, When the list loads, Then only contacts I am authorized to see via RLS are shown
- Given a contact assignment has ended, When I view my assigned contacts list, Then only active assignments are shown in the default view
Business Value
Peer mentors need a single place to understand their current responsibilities. Without a consolidated view of assigned contacts on their own profile, mentors must navigate through multiple screens to understand their workload. This directly impacts the quality of care given to contacts and reduces the risk of a contact being overlooked when a mentor has multiple assignments.
Components
- Assigned Contacts List ui
- Peer Mentor Detail Screen ui
- Peer Mentor Detail BLoC service
- Assignment Repository data
- Assignment History Repository data
- Peer Mentor Repository data
- Supabase Client Provider infrastructure