View Personal Activity Summary Cards
Peer mentors need an at-a-glance overview of their key activity metrics displayed as summary stat cards on the statistics dashboard. Cards should show total activities logged, total hours, unique contacts supported, and any other key KPIs relevant to their role. The data must reflect the currently selected time window and update reactively when the period filter changes.
User Story
Acceptance Criteria
- Given I open the statistics screen, When the screen loads, Then I see summary cards displaying total activities, total hours, and contact count for the default time period (current month)
- Given I am viewing the stats dashboard, When I change the time window filter, Then all summary cards update immediately to reflect the selected period without requiring a manual refresh
- Given I have no activities logged in the selected period, When the dashboard loads, Then summary cards display zero values with a friendly empty state message rather than errors
- Given the app is offline, When I open the stats dashboard, Then cached data is shown with a visual indicator that data may not be current
- Given I am a peer mentor, When I view the dashboard, Then I only see my own personal statistics and no other mentor's data
Business Value
Peer mentors who can see their contribution metrics are significantly more motivated to continue volunteering. Visible impact data directly addresses the underreporting problem identified across all three organizations — when mentors see their work quantified, they are more likely to log activities consistently. This is foundational to the gamification and Spotify Wrapped goals identified in the requirements.
Components
- Peer Mentor Stats Screen ui
- Stats Summary Cards ui
- Stats Async Notifier service
- Time Window Service service
- Stats Repository data
- Stats Data Models data
- Supabase Stats Database Views infrastructure
- Coordinator Statistics BLoC infrastructure
- Personal Statistics BLoC infrastructure
- Personal Statistics Service service
- Statistics Cache Manager data