Skip to content

fix: replace undefined cutoff variable in applyFilter hourly filter#117

Open
afiorillo68 wants to merge 1 commit into
phuryn:mainfrom
afiorillo68:main
Open

fix: replace undefined cutoff variable in applyFilter hourly filter#117
afiorillo68 wants to merge 1 commit into
phuryn:mainfrom
afiorillo68:main

Conversation

@afiorillo68
Copy link
Copy Markdown

Summary

  • cutoff was used in the applyFilter function to filter hourly data, but was never defined in scope
  • This caused a ReferenceError at runtime that silently aborted applyFilter before any charts, stat cards, or tables were rendered
  • Fixed by replacing cutoff with start and end, which are already computed earlier in the same function and used correctly for the daily chart filter

Test plan

  • Launch dashboard with python3 cli.py dashboard
  • Verify charts (Daily Token Usage, Average Hourly Distribution, By Model, Top Projects) render correctly
  • Verify stat cards (Sessions, Turns, Input/Output Tokens, Est. Cost) appear
  • Verify range buttons (7d, 30d, 90d, etc.) correctly filter all charts including the hourly one

🤖 Generated with Claude Code

`cutoff` was never defined in scope, causing a ReferenceError that
silently aborted applyFilter before any charts or tables were rendered.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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