fix: honor relative reset toggle and local tz in tray/pop-out cards - #39
Merged
Finesssee merged 2 commits intoApr 26, 2026
Merged
Conversation
PR nesszer#37 fixed reset-time formatting in Settings → Providers, but the tray icon popup and pop-out window render through MenuCard, which still displayed snap.resetDescription verbatim (backend pre-formats Claude's DateTime<Utc> as UTC wall time) and ignored the Display → "Relative Reset Time" toggle. Thread resetTimeRelative through TrayPanel and PopOutPanel into MenuCard, and route both metric resets and cost.resetsAt through the existing useFormattedResetTime hook so the same local-tz / countdown logic applies in every surface.
Collaborator
|
Thanks for the PR, this was the missing follow-through from #37 for the tray popup and pop-out surfaces. I added one small guard before merging so fallback reset text from providers that use it for non-time details stays unlabelled, then validated locally with frontend build/tests and a Tauri debug build. Merged into main. |
This was referenced Sep 12, 2026
This was referenced Sep 19, 2026
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.
Summary
MenuCard, which still displayedsnap.resetDescriptionverbatim (backend pre-formats Claude'sDateTime<Utc>as UTC wall time) and ignored the Display → "Relative Reset Time" toggle.resetTimeRelativethroughTrayPanelandPopOutPanelintoMenuCard, and route both metric resets andcost.resetsAtthrough the existinguseFormattedResetTimehook so the same local-tz / countdown logic applies in every surface.Test plan
tsc --noEmitandtauri buildpass.