Skip to content

Always have Submit button enabled; now use localStorage#707

Open
ionwyn wants to merge 5 commits into
masterfrom
dev/ionwyn/HMCR-1131/hotfix
Open

Always have Submit button enabled; now use localStorage#707
ionwyn wants to merge 5 commits into
masterfrom
dev/ionwyn/HMCR-1131/hotfix

Conversation

@ionwyn

@ionwyn ionwyn commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Signed-off-by: Ionwyn Sean <ionwynsean@gmail.com>
ionwyn added 4 commits June 9, 2026 20:39
Failed submissions now display the server's error/detail/title (and status code) instead of 'undefined' when the response body has no 'error' field, such as 401 and 400 rejections. Network failures fall back to the error message.
A missing Service Area now scrolls the dropdown into view and shows its required-field error on submit, instead of the submit silently doing nothing because the dropdown had no queryable input to scroll to.
A stored value that no longer matches any option (e.g. a stale or reassigned service area) now falls back to the default title instead of throwing and triggering the app-wide error boundary that blanked the form.
The locally stored draft is now removed once a report is submitted successfully, so reopening the form starts blank and contractors don't accidentally resubmit the same report. The storage key is exported from the form component to keep a single source of truth.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant