Skip to content

feat: add settings toggle to show detailed remaining time#24

Open
carlosresu wants to merge 1 commit into
CodeZeno:mainfrom
carlosresu:feat/detailed-remaining-time
Open

feat: add settings toggle to show detailed remaining time#24
carlosresu wants to merge 1 commit into
CodeZeno:mainfrom
carlosresu:feat/detailed-remaining-time

Conversation

@carlosresu

@carlosresu carlosresu commented May 15, 2026

Copy link
Copy Markdown

Summary

Adds an opt-in Show detailed remaining time toggle under the right-click Settings menu. Rebased on v1.4.8 and extended to the Antigravity model. When enabled:

  • The 5h session rows show minutes alongside hours (e.g. 4h 12m instead of 4h)
  • The 7d weekly rows show hours alongside days (e.g. 3d 5h instead of 3d)
  • Applies to all three models — Claude, Codex, and Antigravity
  • The countdown repaints on the finer-unit boundary so the value never goes stale

Default is off, so existing installs see today's behavior. The preference persists in settings.json as show_detailed_remaining with #[serde(default)] for clean migration.

Dynamic column width

The usage-cell text column measures the actual rendered text and sizes to it, so the wider detailed strings (e.g. 100% · 23h 59m) fit without clipping and without reserving a fixed worst-case when the toggle is off. The widget grows only when content needs it.

Screenshots

Same usage/reset data, toggled via right-click → Settings → Show detailed remaining time.

Detailed time OFF Detailed time ON
off on

Sub-hour behavior unchanged

The toggle only adds a sub-unit when the top unit is h or d; minute/second displays render identically in both modes, and now is unchanged.

Localization

Show detailed remaining time is 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 pace-indicator (#25) and ETD (#38) PRs in any order: every combination merges with 0 conflicts (verified via git merge-tree + a triple-merge that builds and passes tests).

Test plan

  • cargo build + cargo test clean on v1.4.8
  • Default off → unchanged (4h, 3d)
  • On → detailed text renders (4h 23m, 2d 1h) across Claude/Codex/Antigravity; column tracks content with no clipping
  • Settings checkmark reflects state; persists across restart

@carlosresu carlosresu changed the title feat: add Settings toggle to show detailed remaining time feat: add settings toggle to show detailed remaining time May 18, 2026
@carlosresu carlosresu force-pushed the feat/detailed-remaining-time branch from d49cf66 to 39a9166 Compare June 19, 2026 12:40
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