Repository navigation
fix: hide Retry connection on a rate-limited sign-in, clear it on I already have a code - #1802
Merged
Merged
Conversation
…lready have a code A 429 from an auth action now throws RateLimitedError, and the page's error banner omits Retry connection for it. Switching to I already have a code clears an action's error and notice, as Change email already does. Refs #1801
Deploying mouseterm with
|
| Latest commit: |
3af1f52
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://1b8f799b.mouseterm.pages.dev |
| Branch Preview URL: | https://fix-issue-1801.mouseterm.pages.dev |
dormouse-bot
commented
Nov 16, 2026
dormouse-bot
left a comment
Collaborator
Author
There was a problem hiding this comment.
The Argos checks are red on this head: storybook-chromium and storybook-webkit each report "1 changed, waiting for your decision". The only story this PR changes is SignIn → RateLimited, which now sets wait: true and so drops the Retry connection button. A one-snapshot diff in each browser is that intended change. Approving the build in Argos (chromium, webkit) should clear it. Every other check passed.
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.
Fixes the two sign-in banner problems listed under "Also seen in the same walkthrough" in #1801. The main problem, where sign-in drops the enrollment, is not touched here.
PageError, so the banner always offered a connection retry, even for a rate limit whose message says to wait. A 429 fromjson()inhosted/src/api.tsnow throwsRateLimitedError,pageErrormarks itwait, and the banner leaves the button out. A failed account read still goes throughasRead→ReadFailed, so it keeps its retry.setEnterCode(true). It now calls ahaveCodehandler, which clears the action's error and notice withkeepReadthe same way Change email does. An unanswered failed read stays visible.Two new tests in
hosted/src/App.test.tsx(a rate-limited code send) failed before the change and pass after it. Hosted'stsc --noEmitand the fullsrc/vitest run (70 tests) pass.The enrollment-loss part of #1801 needs a decision first: keep the pending code in
sessionStorageuntilENROLLMENT_TTL_MS, or let Dormouse reopen or copy the link. Either one changes the memory-only rule indocs/specs/hosted.md→ "Burrow enrollment".Refs #1801 — automated triage