Skip to content

Show exact reset time in usage cards#26

Open
osulyanov wants to merge 1 commit into
eddmann:mainfrom
osulyanov:feature/show-reset-time
Open

Show exact reset time in usage cards#26
osulyanov wants to merge 1 commit into
eddmann:mainfrom
osulyanov:feature/show-reset-time

Conversation

@osulyanov

@osulyanov osulyanov commented Jun 11, 2026

Copy link
Copy Markdown

Summary

Adds the exact reset time alongside the existing relative description in each usage card, with a setting to toggle it.

  • The reset line now appends the exact time in parentheses, e.g. Resets in 3 days 5 hours (Jun 14, 11:30 PM).
  • The 5-Hour Session card shows the time of day only; weekly cards show month, day, and time (no year).
  • A new Show Reset Time toggle in Settings (placed after Show Sonnet Usage) controls the parenthetical.
Screenshot 2026-06-11 at 19 11 58 Screenshot 2026-06-11 at 19 11 24

Details

  • UsageLimit gains resetTimeOnlyFormatted (time-of-day only) and resetTimeFormatted now uses a localized MMMdjmm template (no year).
  • UsageCardView gains showsExactResetTime and usesTimeOnlyResetTimestamp parameters.
  • AppSettings gains isResetTimeShown (default true), persisted via SettingsRepository and decoded safely from older saved settings.

Testing

  • xcodebuild build (Debug & Release) succeeds.

Append the exact reset time in parentheses after the relative reset
description (e.g. "Resets in 3 days 5 hours (Jun 14, 11:30 PM)"). The
5-hour session card shows the time of day only, while weekly cards show
month, day, and time without the year.

Add a "Show Reset Time" toggle in Settings (after "Show Sonnet Usage")
to control the parenthetical, persisted via the new isResetTimeShown
setting which decodes safely from older saved settings.
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