Add a Stats mode: day, week, month and year views #3
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/stats"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A third tab next to the timer and the clock. Day shows stacked hourly bars
(focus + break, trimmed to the active range); Week shows bars per weekday;
Month is a calendar of dots sized by focus time (area-proportional); Year is
a heatmap grouped by month. Every view carries the focus/break/block totals,
a focus-break ratio split bar and the average focus by time of day. Tapping
a day anywhere drills into the Day view.
Everything is aggregated on the fly from the existing log — no new storage,
no chart library, charts are plain divs. Monday-first everywhere, matching
the ISO week numbers shown in the month view. The model's "Interruptions"
stat is deliberately replaced by "Blocks": interruptions are not tracked and
tracking them would mean new storage.
Ten new i18n keys across the six languages; month, weekday and date names
come from Intl. Self-checks cover the ISO week (Sep 2026 = week 36), the
ratio rounding (20% / 23%, validated against the reference app) and the
splitting of entries across hour and period boundaries.
Co-Authored-By: Claude Opus 5 noreply@anthropic.com