View Per-Peer-Mentor Activity Breakdown List
The peer mentor stats list must appear below the charts on the coordinator statistics dashboard and display one row per peer mentor under the coordinator's scope. Each row shows the mentor's name, activity count, total hours, and last activity date. The list must be sortable by activity count (default: descending) and by last activity date. Mentors with zero activities in the selected period must appear at the bottom with a visual indicator (e.g., a muted badge). Tapping a row navigates to the peer mentor detail screen. The list must handle large rosters (40+ mentors) with efficient rendering. Data is scoped by the chapter-scope-resolver to prevent coordinators from seeing mentors outside their authorization.
User Story
Acceptance Criteria
- Given the coordinator views the statistics screen, When the peer mentor list renders, Then each mentor shows their name, activity count, total hours, and last activity date
- Given the list is rendered, When the coordinator taps a column header to sort, Then the list re-orders accordingly without a full data reload
- Given a mentor has zero activities in the selected period, When they appear in the list, Then they are visually distinguished (e.g., dimmed row with a 'No activity' badge)
- Given the coordinator taps a peer mentor row, When navigation fires, Then they land on the peer mentor detail screen with the same time window context preserved
- Given the coordinator's chapter has 50+ mentors, When the list renders, Then it uses a virtualized/lazy list to maintain smooth scrolling performance
Business Value
The survey from HLF revealed 40% of peer mentors felt they were not getting adequate follow-up from coordinators. A ranked list with last activity dates gives coordinators a prioritized action list — they can immediately see who to call and who is performing well, turning passive data into active relationship management. This is core to the coordinator role's oversight responsibility across all three organizations.
Components
- Peer Mentor Stats List ui
- Coordinator Statistics Service service
- Coordinator Statistics BLoC infrastructure
- Stats Repository data
- Chapter Scope Resolver service
- Supabase Stats Database Views infrastructure
- Peer Mentor Stats List ui
- Stats Data Models data
- Peer Mentor Repository data
- Stats Cache Invalidator infrastructure
Dependencies
- View Team Activity Summary Cards critical
- Filter Statistics by Time Window critical