User Interface medium complexity mobile
0
Dependencies
0
Dependents
1
Entities
0
Integrations

Description

Displays a visual dashboard of the peer mentor's own activity history and contribution metrics. Renders charts, summary cards, and trend indicators drawn from locally cached data. Supports time period selection and works fully offline via the local Drift database.

Feature: Personal Activity Statistics

personal-stats-screen

Sources & reasoning

Line 321 explicitly places per-peer-mentor statistics in Fase 1 (MVP). The workshop narrative (lines 16-18) confirms that making contribution visible is universally valued. The blueprint tags this feature [MVP]. Fase 1 maps to target_release "MVP" by ordinal position.

  • Enkel statistikkvisning per likeperson og per koordinator
  • Alle fire organisasjoner peker på dette som den aller viktigste funksjonen, og beskriver dagens situasjon som uholdbar.

Responsibilities

  • Render activity summary cards showing total activities, hours, and activity type breakdown
  • Display trend charts across selectable time periods (week, month, all-time)
  • Handle offline state gracefully by reading from local Drift database
  • Respond to time period filter changes and trigger data refresh
  • Format and present StatisticsService results into visual components

Interfaces

build(context: BuildContext): Widget
onPeriodChanged(period: TimePeriod): void
refreshStats(): Future<void>

Related Data Entities (1)

Data entities managed by this component