Skip to content

feat(compact): pace tick on usage gauges with a menu toggle - #181

Closed
fix2it wants to merge 9 commits into
CodeZeno:mainfrom
fix2it:feat/compact-pace-tick
Closed

fix2it wants to merge 9 commits into
CodeZeno:mainfrom
fix2it:feat/compact-pace-tick

Conversation

@fix2it

@fix2it fix2it commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds an intuitive, minimal 1 px pace indicator ("pace tick") on the 5-hour session and weekly gauges in the Compact Fluent Quad theme, showing the elapsed proportion of the reset window alongside consumed usage, with a dedicated toggle in the Settings context menu.

Motivation & Concept

When monitoring quota usage, knowing how much was spent is only half the picture — users also need to know how fast they are spending it relative to when the quota resets:

  • A 1 px tick is rendered directly on the gauge at the percentage corresponding to elapsed window time (or 100 - elapsed in remaining mode).
  • Instant visual feedback: If your progress bar is to the left of the tick, your consumption rate is sustainable; if it crosses past the tick, you are pacing ahead of the reset window.
  • Fits seamlessly into the dense taskbar aesthetic without requiring extra text columns or bulky UI elements.

Key Changes

  1. Theme Engine Extensions:
    • Added {window}.expected, expected_display, and expected_available bindings to src/theme_engine.rs, computing the exact proportional target based on bucket start and reset timestamps.
    • Late Reset Slack: Added a 1-minute grace margin past the window length so poll latency immediately after a reset does not hide the tick; it stays pinned at 0 until fresh metrics arrive.
  2. Compact Fluent Quad Integration:
    • Integrated pace tick markers across Claude, Codex, and Antigravity 5-hour and weekly gauges in src/themes/compact-fluent-quad.json.
  3. Settings Menu Toggle:
    • Added "Show pace" toggle (display.show_pace, enabled by default) in the Settings context menu.
    • Added localized translations for all 16 supported languages.
    • Added Studio context menu editor and inspector support.

Verification & Tests

  • Added comprehensive unit tests in src/theme_engine/tests.rs (212 lines of tests) validating:
    • Expected window calculation for forward and remaining modes.
    • Boundary clamps (0% - 100%) and late-reset grace tolerance.
    • Menu toggle state persistence and theme binding resolution.
  • Verified visual alignment on Windows 10 & 11 taskbars.

fix2it and others added 9 commits October 18, 2026 22:34
duration_short truncated to whole units, so 4d23h read "4d" and 59m40s
could not be told from 59m. It now rounds: half steps below 10 h and
10 d (1.5ч, 2.5д), whole units above, minutes clamped to 59 so the next
step is "1h", and 23h45m rolls over to "1d".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.151 to 1.0.154.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](serde-rs/json@v1.0.151...v1.0.154)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-version: 1.0.154
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [lucide-icons](https://github.com/WhySoBad/lucide-icons-rs) from 1.52.0 to 1.55.0.
- [Commits](https://github.com/WhySoBad/lucide-icons-rs/commits)

---
updated-dependencies:
- dependency-name: lucide-icons
  dependency-version: 1.55.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [winresource](https://github.com/BenjaminRi/winresource) from 0.1.31 to 0.1.34.
- [Commits](https://github.com/BenjaminRi/winresource/commits)

---
updated-dependencies:
- dependency-name: winresource
  dependency-version: 0.1.34
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
fix(theme): математическое округление времени сброса
fix(antigravity): надежное чтение пула Gemini из Quota Summary
feat(antigravity): раздельный учет пулов Gemini и Claude/GPT
Draw a 1 px tick on each Claude, Codex and Antigravity 5-hour and weekly
gauge in the compact theme at the share of the window that has elapsed
(remaining mode: 100 - elapsed). The engine exposes
{window}.expected / expected_display / expected_available. Settings menu
gets "Show pace" (on by default, display.show_pace binding).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Allow a minute of slack past the window length so poll latency right
after a reset does not hide the tick; it sits at 0 instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fix2it

fix2it commented Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

Closing as superseded by #184, which includes all pace tick changes together with dual-account mode, concurrent Antigravity pools, and hover crossfade enhancements.

@fix2it fix2it closed this Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant