feat: status bar utilization sparkline and ${bar5h}/${bar7d} placeholders - #41
Open
long-910 wants to merge 1 commit into
Open
feat: status bar utilization sparkline and ${bar5h}/${bar7d} placeholders#41long-910 wants to merge 1 commit into
long-910 wants to merge 1 commit into
Conversation
Add a compact utilization meter so remaining 5h capacity is visible at
a glance without opening the dashboard.
- buildUtilizationBar(): 5-cell meter using U+25B0/U+25B1 with clamping
- New setting claudeStatus.statusBar.showSparkline (default false) shows
the meter next to the 5h percentage in percent mode (Claude.ai only)
- Custom formats gain ${bar5h} / ${bar7d} placeholders
- l10n: EN/JA/ZH setting description
- Docs: SETTINGS.md schema + placeholder table, README settings tables
(EN/JA/ZH), CHANGELOG
- Tests: boundary/rounding/clamping/width cases
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012ZLCLQeudf1LQBnBSyyr4f
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
Adds a compact utilization meter to the status bar so remaining 5h capacity is readable at a glance without opening the dashboard:
Based on
main; independent of the other open PRs.Changes
buildUtilizationBar(utilization, width = 5)instatusBar.ts— 5-cell meter using▰/▱, clamped to [0, 1], rounded to the nearest cell.claudeStatus.statusBar.showSparkline(boolean, defaultfalse— opt-in so existing users' labels don't change). When enabled, the meter renders next to the 5h percentage in percent mode (Claude.ai provider only; cost mode and denied state are unchanged).${bar5h}/${bar7d}placeholders, e.g."claudeStatus.statusBar.format": "${bar5h} ${usage5h}%".docs/SETTINGS.md(schema + placeholder table), README settings tables (EN / JA / ZH), CHANGELOG.Tests
New
buildUtilizationBarsuite: empty/partial/full rendering, nearest-cell rounding, out-of-range clamping, custom width.npm run lint✅,npm run compile✅. The suite lives instatusBar.test.ts(extension-host) — please rely on CI, since@vscode/test-electroncannot download VS Code in this sandbox.🤖 Generated with Claude Code
https://claude.ai/code/session_012ZLCLQeudf1LQBnBSyyr4f
Generated by Claude Code