feat(context): draw the usage meter as a full ring - #86
Merged
Merged
Conversation
The meter beside the composer swept a 240° arc from the upper-left around the bottom to the upper-right, so the gap at the top read as a broken circle and the same percentage covered less visual ground than a ring would. The gauge is now a complete circle that fills clockwise from 12 o'clock, drawn with two <circle> elements instead of an arc path. Only the shape changes. The percentage label, the hover tooltip with the token counts, and the pale-red warning state above 80% behave as before, and the existing dash-offset maths carries over since the fill length is still a fraction of the stroke's total length. Co-authored-by: QoderAI (Qwen 3.8 Max) <qoder_ai@qoder.com>
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
gap at the top: the shape read as an unfinished circle, and the same reading
covered less visual ground than a ring would. The gauge is now a complete
circle that fills clockwise from 12 o'clock, drawn with two
<circle>elements instead of an arc path.
token counts, and the pale-red warning state above 80% behave as before, and
the meter is still not clickable — no panel is added here.
[Unreleased]inCHANGELOG.md(Changed).Verification
npm run typechecknpm run lintnpm run test(171 suites, 3600 tests)npm run buildnpm run release:checknpm run audit:prodno CLI behavior is involved in this change; the ring was checked in Obsidian
against the built
main.js(empty at 0%, filling clockwise from the top,warning tone above 80%).
Safety
CHANGELOG.md