fix(forms): replace developer-facing status strings with user messages (MAPPS-282) #290
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
psa-systems/mokosh-apps!290
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MAPPS-282-422-inline-field-errors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The string-error helpers' last-resort branch returned "Request failed with status: 422" verbatim when the server hit a non-2xx without a parseable
ErrorResponseenvelope - the exact developer-facing banner the QA report flagged on the Contact form. Route the fallback through auser_friendly_status(code)helper that maps 400 / 401 / 403 / 404 / 409 / 422 / 429 / 5xx to a tasteful per-class message; the_typedhelpers already do this viaApiError::user_message, so the migrated forms (Contact, Ticket create, Project) are unaffected. The many legacy callers that still usepost_authed/put_authed(ticket inline edits, asset save, contract / billing / settings handlers) now show "Validation failed. Please check the form fields." on a bodyless 422 instead of a raw status string.A complete per-field 422 mapping for every legacy form is a separate, larger migration to the
_typedAPI surface; tracked as a follow-up. This change captures the user-visible win (no more developer-facing status banners) without that churn.#MAPPS-282