feat: add a pace indicator to the usage bars - #25
Conversation
|
This feature is exactly what I was starting to look into. I think the "where am I in the 5 hours" and "where am I in the 7 days" is so useful. |
810f46b to
38c4132
Compare
|
yes I built the exact same thing. this is what I need. am I on track or am I overshooting and run out of tokens on the last day? |
4b30520 to
2fcd8ef
Compare
|
Massive thank you to @carlosresu for building this so thoughtfully, including the Tick and Solid styles across Claude, Codex, and Antigravity. Thanks also to @dustingraham and @rohal12. You both captured the real value perfectly: knowing where you are within the 5-hour or 7-day window, and whether your current pace will leave headroom or have you running out before the reset. v2 is now released, and its new Theme Studio addresses this use case in a much more flexible way. Themes now have access to live usage percentages, reset times, calculations, comparisons, conditional rendering, and fully customizable layers. This means the pace indicator can be created and styled directly within any theme instead of being hard-coded into the original v1 widget renderer. For anyone wanting to recreate it:
A 3px-wide layer gives you the Tick style. The same calculation can drive the X position and width of a filled layer for the Solid style. This feedback lined up closely with the direction v2 took, and I really appreciate the implementation and conversation around it. I’m closing this PR as addressed by the v2 release rather than merging code tied to the previous renderer. Thanks again, everyone! 🚀 |
Summary
Adds an opt-in pace indicator that marks where usage should be if spread evenly across the window, so each bar shows at a glance whether you can keep working or are about to run out. Rebased on v1.4.8 and extended to the Antigravity model.
resets_atand the fixed window length (5h / 7d).Screenshots
Green = headroom to ramp up; red = trajectory to exceed quota — in either style.
Settings control
A right-click Settings → Show pace indicator submenu with Off (default) / Tick / Solid as a radio group; the parent entry shows a checkmark while a style is active. Off by default; persists to
settings.jsonvia#[serde(default)]. The indicator draws inside the existing bar segments, so it does not change the widget width.Localization
All pace strings (
Show pace indicator,Off (default),Tick,Solid) are translated across all 10 supported locales.Independence & compatibility
Branches directly off v1.4.8
main(single commit) and contains only this feature — merge it alone, or alongside the detailed-remaining-time (#24) and ETD (#38) PRs in any order: every combination merges with 0 conflicts (verified viagit merge-tree+ a triple-merge that builds and passes tests).Test plan
cargo build+cargo testclean on v1.4.8