Repository navigation
feat(admin): flag resets that expire within 48h - #172
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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.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/nextEndsAtand the Codex creditexpiresAt. 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

Accounts, desktop (claude-main expanded)

Overview, phone

Accounts, phone
