Skip to content

feat(admin): flag resets that expire within 48h - #172

Merged
rexdotsh merged 1 commit into
mainfrom
feat/expiring-resets
Oct 22, 2026
Merged

rexdotsh merged 1 commit into
mainfrom
feat/expiring-resets

Conversation

@rexdotsh

Copy link
Copy Markdown
Owner

Saved Claude resets and Codex reset credits can expire without anyone noticing. Until now the expiry only showed inside an account's expanded detail. This PR also shows it on the account row and in the Overview.

When it shows: the account has resets it can actually use (Claude: a usable offer, or one that becomes usable at the limit; Codex: an available credit), the soonest one expires within 48h, and the sign-in still works. Resets that are ineligible, paused, cooling down, claude.ai-only or behind a broken token are left out.

  • Account row tag: turns the warn colour and shows the time left in the same format as the detail line, e.g. 2 saved resets · 5h left, 1 reset credit · 30h left. The full sentence is in the tooltip. Beyond 48h the tag behaves as it does today.
  • Overview → Needs attention: adds an item using the existing issue pattern. It links to the account, e.g. Claude · 2 saved resets, next expires in 5h. Resets that only work at the limit add , usable at limit. When an account has several issues, they share one row.

Everything is worked out on the client from claudeResets.offer.endsAt / nextEndsAt and the Codex credit expiresAt. There are no server changes.

Screenshots use fake data: Claude resets expiring in 5h, 29h (usable at limit only) and 6 days; Codex credits expiring in 4h (alongside a 5h window at 86%), 30h and 6 days. The 6-day accounts show nothing new.

Overview, desktop
Overview desktop

Accounts, desktop (claude-main expanded)
Accounts desktop

Overview, phone
Overview phone

Accounts, phone
Accounts phone

@rexdotsh
rexdotsh merged commit 65363ec into main Oct 22, 2026
5 checks passed
@rexdotsh
rexdotsh deleted the feat/expiring-resets branch October 22, 2026 11:44
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