fix: add client-side email validation to signup form using zod#25
Conversation
|
@Mustansir-06 is attempting to deploy a commit to the binit2-1's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Thanks for implementing this! The Zod validation works great 🎉 I have a few small suggestions before merging: 1. Keep
|
|
Thanks for the review, @binit2-1! I've addressed your suggestions: Updated the email input to type="email" and added autoComplete for better mobile UX. I also added noValidate to the form to ensure our Zod validation handles the error messaging. Removed the accidental package.json and package-lock.json files from the root directory. Let me know if there's anything else! |
|
@Mustansir-06 Thanks for contribution, I have merged your PR |
Description
This PR addresses the issue where the signup form would allow invalid email formats (like
test@) to be submitted to the backend without immediate feedback.Changes Made:
zodfor robust client-side schema validation.Signup.jsxto catch invalid inputs before they reach the API, preventing unnecessary network calls.textto ensure our custom error box handles all validation feedback consistently.Fixes
Closes #23