Repository navigation
Separate inquiry rejections from delivery failures and block duplicate submits - #243
Open
sidneyswift wants to merge 1 commit into
Open
sidneyswift wants to merge 1 commit into
sidneyswift wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This branch was successfully deployed
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.
The inquiry hook classified all rejected HTTP responses as delivery failures and relied on React state alone to prevent concurrent submissions. Invalid input and blocked requests were indistinguishable from service outages, and a second submit could run before the button rerendered.
Separate
inquiry_rejectedfrom delivery failures, add allowlisted error codes and HTTP status, display fixed recovery guidance, and guard in-flight requests synchronously. Give the server's upstream timeout time to return. Preserve validation, origin protection and the strict saved-receipt requirement for success.Validation: 74 focused tests pass, including failing-before-fix regression coverage for classification and concurrent submissions. Scoped ESLint, TypeScript, production build, GitHub CI and Vercel preview deployment pass. Invalid preview requests return distinct
validationandblockedresponses.Event consumers must account for the new distinction from release onward; historical event data is unchanged. This PR is not deployed to production until merged and released.