Repository navigation
fix(calendar): sign in again on a 401 when saving, and reset Save - #166
Merged
Merged
Conversation
A manager whose session expired saw "Couldn't save" on the night page instead of being asked to sign in again, unlike every GET.
It only went back to Save because reloading the night rebuilt the card; keeping the page on screen while it reloads would have left it on Saving… for good.
selvarajuv
approved these changes
Nov 29, 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.
What
Two small fixes on the night page from the #162 review:
Why
Both were flagged in the #162 review. The second one works today only because the page shows a loading state while it reloads; any change to that would leave the button stuck on "Saving…".
How to check
just dev --neonandjust frontend, open a night, save a rate: it saves and the button reads Save again.Notes
apiPost. With an expired session it now lands on sign in through the redirect, which is where it was going anyway.docs/open-questions.md.