fix(validation): Improve name and email error messages for better UX#6247
Conversation
|
@Abfa41 is attempting to deploy a commit to the jhasourav07's projects Team on Vercel. A member of the Team first needs to authorize it. |
📦 Next.js Bundle Size Report (Gzipped Sizes)✨ No significant bundle size changes detected. 📊 Summary of Totals
|
Aamod-Dev
left a comment
There was a problem hiding this comment.
Splitting the shared 'Name and email are required' generic message into specific messages in lib/validations.ts greatly improves form usability. The 2-character minimum for the name field makes sense too. Approved!
|
🎉 Congratulations @Abfa41! Your PR has been successfully merged. 🚀 Thank you for contributing to CommitPulse. Your work helps us build a better tool for the community.
Keep building! 💻✨ |
|
@Aamod-Dev, please check the appropriate label when adding the type labels. We need to add 'type:bug' label instead of 'bug' label, to get the appropriate points in gssoc. Please look into this. Thanks! |
type label will be added automatically |
Description
Fixes #6193
This PR improves validation error messages for name and email fields in the resume confirmation schema to provide clearer and more user-friendly feedback.
The previously shared generic error message has been replaced with field-specific messages to avoid confusion during form validation.
Changes made
Updated
namefield validation to show:Updated
emailfield validation to show:Improved consistency and clarity in validation feedback across resume-related schema fields
Applied changes in the current
resumeConfirmDataSchema(as the referenced lines in the issue appear to be outdated)Benefits
Note
The issue references specific lines in
lib/validations.ts, but those appear to be outdated in the current codebase. Equivalent validation logic was updated in the active schema implementation.