Skip to content

Add home dashboard with usage stats and activity charts#18

Open
lmartins wants to merge 1 commit into
mxvsh:mainfrom
lmartins:feat/home-dashboard
Open

Add home dashboard with usage stats and activity charts#18
lmartins wants to merge 1 commit into
mxvsh:mainfrom
lmartins:feat/home-dashboard

Conversation

@lmartins

Copy link
Copy Markdown

Summary

  • Adds a UsageStats model that tracks word counts by day and hour, with an estimated time-saved calculation (40 WPM typing vs 140 WPM dictation)
  • Extends HistoryManager to persist usage stats in UserDefaults and backfill from existing transcription history on first launch
  • Redesigns the Home screen with stat cards (today, this week, time saved), a 7×24 activity heatmap, a rolling 7-day bar chart, and a scrollable layout

Test plan

  • Dictate a few phrases and confirm Today / This week counts update
  • Verify the activity heatmap fills in for the current day and hour
  • Verify the 7-day bar chart shows the current week
  • Confirm time-saved estimate appears after enough words are dictated
  • Relaunch the app and confirm stats persist across sessions
  • Confirm existing transcription history backfills stats on first launch after upgrade

Track word counts by day and hour in UsageStats, persist alongside
transcription history, and surface today/week totals, estimated time
saved, a 7×24 activity heatmap, and a rolling 7-day bar chart on Home.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant