Repository navigation
feat(dashboard): KPI mini-charts and enhanced header layout (v1.20.0) - #78
Merged
Merged
Conversation
- Add interactive BarChart for Cost/block KPI showing cost evolution per block - Add interactive AreaChart for Context KPI with 85% threshold reference line - Update KPICard component to accept children prop for custom charts - Fix header alignment with compact navbar and uniform badge heights - Improve Heavy context notification to show actual token values - Fix CC context_used formula to match official documentation - Add OpenCode session-based context tracking via step-finish events - Update README with new features (v1.20.0)
…te sidebar chart - Add context_used and context_window to BlockCostEntry interface - Include context data in block_cost SSE event payload - Remove CostTimeline from sidebar (now in KPI cards) - Fix Context chart not appearing due to missing context data
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.
What does this PR do?
Adds interactive mini-charts to KPI cards (BarChart for Cost/block, AreaChart for Context) and enhances the header layout with uniform badge heights. Fixes context data propagation for accurate chart rendering.
Motivation
KPI cards previously showed flat progress bars, making it hard to visualize metric evolution over time. Users needed to see cost progression per block and context usage trends at a glance. The sidebar also duplicated Cost/block information now available in KPIs.
Changes
dashboard/src/components/TracePanel/KPICards.tsxdashboard/src/components/Header.tsxdashboard/src/components/App.tsxdashboard/src/components/Tip.tsxdashboard/src/components/TracePanel/index.tsxsrc/db.tssrc/routes/events.tssrc/watchers/opencode.tssrc/watchers/claude-code.tsVerification
npx tsc --noEmit→ 0 errorsnpx vite build→ successType of change
Breaking changes
None.
Agent
OC— branch:release/v1.20.0