View Team Activity Summary Cards
The coordinator statistics dashboard must present high-level KPIs in scannable summary cards immediately upon opening the screen. Cards should display total activity count, active peer mentor count, total duration hours, and unique contact count for the selected time window. Each card must be tappable and navigate to the relevant detail view. Data must reflect the coordinator's organizational scope (chapter/region) and respect Row Level Security so coordinators only see data they are authorized to access.
User Story
Acceptance Criteria
- Given the coordinator opens the statistics screen, When the data loads, Then four summary cards are displayed: Total Activities, Active Peer Mentors, Total Hours, and Unique Contacts
- Given the dashboard is loaded, When the coordinator taps a summary card, Then they are navigated to the corresponding detail list filtered by the current time window
- Given the coordinator belongs to multiple chapters, When the dashboard loads, Then statistics are scoped to the currently active chapter context
- Given the stats data is loading, When a network request is in progress, Then skeleton placeholders are shown inside each card
- Given the stats data has loaded, When the coordinator pulls to refresh, Then all summary cards update with fresh data from Supabase
Business Value
Coordinators currently rely on manual Excel aggregation to assess team performance, which is time-consuming and error-prone. Instant summary cards eliminate this overhead, enabling coordinators to identify underperforming months or disengaged peer mentors in seconds. This directly supports the goal of reducing under-reporting across all three organizations (NHF, Blindeforbundet, HLF) and provides data needed for Bufdir grant reporting.
Components
- Coordinator Statistics Dashboard Screen ui
- Stats Summary Cards ui
- Coordinator Statistics Service service
- Role Access Validator service
- Stats Repository data
- Statistics Cache Manager data
- Coordinator Statistics BLoC infrastructure
- Coordinator Stats Screen ui
- Stats Summary Cards ui
- Chapter Scope Resolver service
- Stats Repository data
- Stats Data Models data
- Supabase Stats Database Views infrastructure