Skip to content

fix: today/watch view zero-data table and midnight-aligned hourly chart - #12

Merged
coldhighsun merged 2 commits into
mainfrom
fix/watch-today-empty-and-hourly-window
Aug 6, 2026
Merged

fix: today/watch view zero-data table and midnight-aligned hourly chart#12
coldhighsun merged 2 commits into
mainfrom
fix/watch-today-empty-and-hourly-window

Conversation

@coldhighsun

Copy link
Copy Markdown
Owner

Summary

  • today/watch --view today now render a zero-valued summary table instead of "No data for today" when the current day has no recorded activity yet, via a new DailySummary.Empty factory.
  • The tokens-by-hour chart in that view now always spans from local midnight to now instead of a trailing N-hour window (which could cross into the previous day); the now-unused --recent-hours option was removed from both commands.
  • Minor CLAUDE.md doc refinements (test project layout, DataService progress reporting).

Test plan

  • dotnet build AIUsageMonitor.slnx passes
  • aimon today and aimon watch --view today render correctly with real data
  • aimon today and aimon watch --view today render a zero-valued table (no crash) when today has no activity yet
  • week/month/export commands unaffected

today/watch's daily summary previously printed "No data for today"
instead of a table when no activity was recorded yet; it now renders
a zero-valued DailySummary via the new DailySummary.Empty factory.

The tokens-by-hour chart used a trailing N-hour window (--recent-hours,
default 6) that could cross into the previous day. It now always spans
from local midnight to now, so --recent-hours was removed as unused.
@coldhighsun
coldhighsun merged commit 0d463c0 into main Aug 6, 2026
1 check passed
@coldhighsun
coldhighsun deleted the fix/watch-today-empty-and-hourly-window branch August 6, 2026 01:50
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