Skip to content

Add HTML report command + fix DST week grouping bug#15

Merged
richhaase merged 2 commits intomainfrom
add-report-command
Mar 9, 2026
Merged

Add HTML report command + fix DST week grouping bug#15
richhaase merged 2 commits intomainfrom
add-report-command

Conversation

@richhaase
Copy link
Copy Markdown
Owner

@richhaase richhaase commented Mar 9, 2026

Summary

  • Add c2 report command that generates a full HTML progress report (goal tracking, weekly volume bars, pace trends, recent workouts, year-end projection)
  • Fix DST boundary bug where workouts on the Monday after spring-forward were grouped into the previous week (millisecond division produced 6.96 days instead of 7.0)
  • Update README for Bun/TypeScript rewrite

Test plan

  • Verified c2 report generates correct HTML with today's (post-DST) workout in the right week
  • Run bun test for any existing tests

🤖 Generated with Claude Code

richhaase and others added 2 commits March 9, 2026 08:37
When DST springs forward (e.g. March 8 in America/Denver), the
millisecond difference between consecutive Monday midnights is ~6.96
days instead of 7.0, causing Math.floor to assign workouts to the
previous week. Fix by rounding to nearest day before dividing by 7.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@richhaase richhaase merged commit 9262cfc into main Mar 9, 2026
1 check passed
@richhaase richhaase deleted the add-report-command branch March 9, 2026 23:28
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