Skip to content

feat: visualize reset credit expiry - #2

Merged
smallyunet merged 1 commit into
mainfrom
codex/reset-credit-progress
Jul 31, 2026
Merged

smallyunet merged 1 commit into
mainfrom
codex/reset-credit-progress

Conversation

@smallyunet

Copy link
Copy Markdown
Owner

What changed

  • parse the grant timestamp for the earliest supported available reset credit
  • add a third native progress bar showing its exact remaining lifetime
  • keep the expiry date and available credit count visible
  • hide only the progress bar when grant metadata is missing or invalid
  • update regression tests, behavior contracts, documentation, and app version to 0.7.0

Calculation

The progress value is clamped from (expires_at - now) / (expires_at - granted_at) using timestamps from the same reset-credit record. No fixed lifetime is assumed.

Validation

  • behavior-contract validation passed
  • plist validation passed
  • all production Swift sources passed type checking and optimized compilation
  • a native AppKit regression executable verified detail selection, progress calculation, three progress indicators, accessibility labeling, and menu height
  • full SwiftPM tests and universal bundle verification run in GitHub CI because the local Command Line Tools installation cannot link PackageDescription

@smallyunet
smallyunet merged commit 7900842 into main Jul 31, 2026
1 check passed
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