Repository navigation
Chart the selected range on Global stats - #152
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Global stats chart always showed the last 30 days, whatever range was selected. It now follows the range picker:
The top-8 series are picked from the selected range too, so "24 hours" colors the models that were busy today. The title, subtitle, edge labels and tooltip adapt: "Tokens per hour 路 Last 24 hours" with
26 Sep 2026, 17:00, and "Tokens per month 路 All time" withAug 2026. The tooltip is now anchored to the hovered bar rather than assuming 30 bars.Screenshots
Demo data: synthetic traffic in the local
hcai_demoClickHouse.Before: 24 hours selected, still 30 days of bars
After
Testing
read-model.test.tsnow also checks:bun run typecheck,bun run check: 0 errors.bun test: 303 pass, 0 fail.馃 Generated with Claude Code