ClaudeMeter icon indicating copy to clipboard operation
ClaudeMeter copied to clipboard

Show exact reset time in usage cards

Open osulyanov opened this issue 5 months ago • 0 comments

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.

osulyanov avatar Jun 11 '26 16:06 osulyanov