feat: show usage pace icons on weekly and monthly bars - #1
Merged
Merged
Conversation
Each weekly and monthly bar compares the share of its quota used with the share of its window gone. An icon beside the percentage shows the result: | on pace, > to >>> too fast (right of the value), < to <<< too slow (left of it), at 5, 15 and 30 points from pace. The value keeps its position. No icon on windows shorter than 2 days, in the first 10% or 12 hours of a window, or on exhausted limits. Monthly windows without a duration start one calendar month before the reset. usage.pace = false hides the icons.
shayan-ys
force-pushed
the
pace-marker
branch
from
September 23, 2026 20:13
2d0026c to
c2a34d9
Compare
shayan-ys
marked this pull request as ready for review
September 23, 2026 20:27
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 and why
A usage percentage alone does not say whether you are going too fast. 34% of a monthly quota is fine with 11 days left and bad with 25 days left. Weekly and monthly bars now show a pace icon beside the percentage.
|>>>>>><<<<<<used% − time gone%. With 34% used and 63% of the month gone, you are 29 points behind:<<.durationMsfor Cursor's monthly window, so its start is the same day one calendar month before the reset. If that day does not exist, it is the last day of that month: a reset on 31 March starts on 28 February.usage.pace = falsehides the icons.Design notes
Before the icons, two other versions were tried:
The icons beside the value add no row or column.
Checklist
uv run pytest(44 passed) anduv run ruff check .passusage.pace = falsepathCHANGELOG.mdhas a line underUnreleaseduv run python scripts/screenshot.py)