Personal Activity Statistics
Feature Detail
Description
This feature provides peer mentors with a personal dashboard showing their own activity history, contribution totals, and engagement trends over time. Mentors can view logged activities by type, date range, and contact, giving them a clear picture of their work. The dashboard serves both as a motivational tool and a practical self-monitoring aid, helping mentors stay engaged and aware of their impact without requiring coordinator intervention.
User Flow
Analysis
Peer mentors are volunteers who often feel their contributions go unseen. Giving them personal statistics creates intrinsic motivation, reduces dropout, and provides a foundation for the gamification features planned in later releases. From an organizational standpoint, self-monitoring reduces the coordinator's administrative burden by empowering mentors to track their own engagement. The feature also directly supports the Wrapped and achievement badge features in v2.0 by establishing the underlying data aggregation pipeline. High retention of active mentors is a core business metric for all four partner organizations.
The stats aggregation service reads activity records from the shared PostgreSQL database, grouping and summing by mentor ID, activity type, and time window. Queries must be tenant-scoped to prevent cross-organization data leakage. The Flutter UI uses Riverpod for state management and renders charts via a lightweight chart library (e.g., fl_chart). Data is cached locally to support offline viewing, with background sync updating the cache when connectivity is restored. WCAG 2.2 AA compliance requires chart data to be available as accessible text tables alongside visual representations. Coordinators see a read-only version of this screen for any mentor in their local association.
Components (117)
Shared Components
These components are reused across multiple features
User Interface (12)
Service Layer (34)
Data Layer (22)
Infrastructure (38)
User Stories
No user stories have been generated for this feature yet.