Navigate Between Contact Detail and Peer Mentor Detail Views
When the contact record belongs to a user with the peer mentor role, the contact detail screen surfaces a navigation affordance to open the peer mentor detail screen widget. This dedicated view includes the peer mentor profile header with their certification status badge, a certification alert banner if certification is expiring soon, the list of contacts currently assigned to this mentor, and a mentor activity summary panel. The peer mentor detail bloc manages the state for this view, loading data from the peer mentor repository, certification record repository, and mentor activity log repository in parallel. Coordinators can switch between the contact view and peer mentor view using a tab or segmented control at the top of the screen.
User Story
Acceptance Criteria
- Given I am on the contact detail screen for a contact with the peer mentor role, When the screen loads, Then a 'Peer Mentor Profile' tab or button is visible in addition to the standard contact detail tab
- Given I tap the peer mentor profile tab, When the peer mentor detail screen loads, Then I see the peer mentor profile header showing name, photo placeholder, and current certification status badge
- Given the peer mentor's certification expires within 30 days, When the peer mentor detail view loads, Then a certification alert banner is displayed at the top with the expiry date and a prompt to renew
- Given I am on the peer mentor detail view, When I scroll to the assigned contacts section, Then a list of contacts currently assigned to this mentor is shown with each contact's name and assignment start date
- Given I am on the peer mentor detail view, When I view the mentor activity summary panel, Then I see aggregate statistics: total sessions this year, total hours, and activity type breakdown
- Given I tap the contact detail tab, When switching back from the peer mentor view, Then the contact detail content is immediately visible without reloading data from the server
Business Value
HLF reported that 40% of peer mentors were dissatisfied with the level of follow-up they received from coordinators. A key reason for inadequate follow-up is that coordinators lack quick visibility into a peer mentor's certification status and assignment load when viewing their profile. By integrating peer mentor-specific views directly into the contact detail flow, coordinators can instantly see whether a mentor needs certification renewal reminders, whether they are overloaded with assigned contacts, or whether their activity engagement has dropped — enabling timely and targeted follow-up without navigating multiple separate screens.
Components
- Contact Detail Screen ui
- Peer Mentor Detail Screen ui
- Peer Mentor Profile Header ui
- Certification Status Badge ui
- Certification Alert Banner ui
- Assigned Contacts List ui
- Mentor Activity Summary Panel ui
- Peer Mentor Detail BLoC service
- Certification Status Derivation Service service
- Peer Mentor Profile Aggregation Service service
- Peer Mentor Repository data
- Certification Record Repository data
- Mentor Activity Log Repository data
- Assignment History Repository data