fix(signup): show multiple signup errors at once#3987
fix(signup): show multiple signup errors at once#3987TheodoreSpeaks merged 4 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
@BugBot review |
PR SummaryLow Risk Overview On the reset-password API, returns a single 400 message concatenating all Zod validation errors rather than only the first, and signup error-message containers were adjusted (removing absolute positioning) to make room for multiple inline errors. Reviewed by Cursor Bugbot for commit 4d553ca. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4d553ca. Configure here.
Greptile SummaryThis PR fixes a UX bug where password validation errors appeared one at a time, requiring multiple form submissions to discover all issues. The fix collects all errors before displaying them, applied consistently across the signup flow and the reset-password flow.
Confidence Score: 5/5Safe to merge — straightforward UX improvement with no behavioral regressions All findings are P2 style suggestions. The core logic correctly collects all validation errors before returning, tests are updated appropriately, and no regressions are introduced in the primary flows. route.ts line 29 — minor separator choice for joined error messages; reset-password-form.tsx — validation errors not cleared on input change Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[User submits password form] --> B{Collect ALL validation errors}
B --> C{errors.length > 0?}
C -- Yes --> D[setValidationMessages with full array]
D --> E[Display all error messages simultaneously]
E --> F[User corrects issues]
F --> A
C -- No --> G[Clear errors and proceed]
G --> H{API Zod validation}
H -- Fail --> I[Join all errors with space separator, return 400]
H -- Pass --> J[Execute password reset or signup]
Reviews (1): Last reviewed commit: "Fix unit tests" | Re-trigger Greptile |

Summary
Previously password validation errors would show up one at a time, causing frustration since users would attempt to alter their passwords multiple times. Altered code to append all errors and to push signup buttons down to make room for additional validation errors.
Type of Change
Testing
Checklist
Screenshots/Videos