See a Personal Activity Count and Running Total on the Home Screen
The role-specific home screen for peer mentors includes a compact stats summary showing the number of activities registered in the current month, the total hours invested, and the count for the year-to-date. These figures are fetched from the stats repository and cached locally for offline viewing. The stats cards are tappable and navigate to the personal statistics view for the full breakdown. This provides immediate positive reinforcement (gamification foundation) and gives the peer mentor confidence that their submissions are being recorded. Connects to the 'Spotify Wrapped' / 'Din likepersonsĂĄrek' concept planned for Phase 4.
User Story
Acceptance Criteria
- Given I am on the peer mentor home screen, when the screen loads, then I see at minimum three stat cards: 'This month', 'Total hours this month', and 'This year'
- Given I have registered 5 activities this month, when I view the home screen, then the 'This month' card displays 5
- Given I tap the 'This month' stat card, when it is tapped, then I am navigated to the personal statistics view filtered to the current month
- Given I am offline, when I open the home screen, then the last cached stat values are shown with a subtle 'Last updated X ago' indicator
- Given I submit a new activity registration, when I return to the home screen, then the stat counts update to reflect the new submission
Business Value
Visibility of personal contribution is a key motivational driver identified in both NHF and HLF workshops. Peer mentors who can see their own impact are more likely to log consistently and remain engaged. This lightweight feedback loop also serves as a quality signal — if a mentor's count drops unexpectedly they may notice a sync issue before it compounds.
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
- Stats Cache Invalidator infrastructure
- Personal Peer Mentor Statistics View ui
- Personal Statistics Service service
- Personal Statistics BLoC infrastructure