fix(forms): collect every validation error on submit instead of one at a time (MAPPS-284) #304
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!304
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MAPPS-284-show-all-validation-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 Project create form was the QA report's specific reproducer: the validators ran top-to-bottom and early-returned on the first error, so a user with a negative budget AND a malformed budget-hours value had to fix Budget, resubmit, then discover the Hours error. Replace the early-return chain with an accumulate-and-report pattern: every per-field validator runs, every Err sets its inline error signal, and the submit aborts only after all checks have surfaced their findings. The user sees every offending field on the first submit.
Pattern can be repeated on Contract, Asset, Invoice, etc. - this PR captures the Project form (the documented reproducer) and the pattern is in place for follow-ups.
#MAPPS-284