Add model-specific weekly usage tracking with three view modes - #6
Merged
Conversation
- Parse seven_day_opus and seven_day_sonnet from API response - Add WeeklyViewMode type: "simple" | "detailed" | "smart" - Update WeeklyInfo interface with model-specific fields - Add symbols (◈ Opus, ◇ Sonnet, ▲ bottleneck) to constants - Add Opus/Sonnet colors to all 6 themes - Implement three view modes in renderer: - simple: Shows overall weekly usage only (default) - detailed: Shows all model limits side by side - smart: Shows the bottleneck (highest %) with indicator - Add 11 new tests for model-specific functionality (166 total) - Update README with viewMode configuration and documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Add sevenDayOpus and sevenDaySonnet fields to all mock OAuthUsageResponse objects in block.test.ts to match the updated interface. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
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.
Summary
Configuration
{ "weekly": { "enabled": true, "viewMode": "smart" } }Display Examples
simple○ 47% (wk 85%)detailed○47% ◈15% ◇7%smart○47%▲ (wk 85%)Note: Model-specific limits are only available on certain subscription tiers. When unavailable, they are hidden from the display.
Test plan
npm run build- compiles without errorsnpm test- all 166 tests pass🤖 Generated with Claude Code