This pull request introduces enhanced validation logic for the signup form on the frontend, leveraging a newly added utility function validateSignupForm. This function checks for both the format of the email and the complexity of the password, providing specific error feedback to the user. Additionally, the error handling within the signup page has been updated to accommodate and display these specific validation errors.
Summary
Added a new utility function validateSignupForm in src/utils/validateSignupForm.ts to validate email and password fields with specific rules.
Integrated validateSignupForm into the signup page (src/app/signup/page.tsx) to validate the form upon submission.
Modified the error state in the signup page to handle individual field errors for email and password, as well as general form submission errors.
Updated the form submission error handling to display specific error messages returned from the backend or caught exceptions.
Included error display elements in the signup form UI for both email and password fields to provide user feedback on validation failures.
Fixes #11.
🎉 Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
Description
This pull request introduces enhanced validation logic for the signup form on the frontend, leveraging a newly added utility function
validateSignupForm
. This function checks for both the format of the email and the complexity of the password, providing specific error feedback to the user. Additionally, the error handling within the signup page has been updated to accommodate and display these specific validation errors.Summary
validateSignupForm
insrc/utils/validateSignupForm.ts
to validate email and password fields with specific rules.validateSignupForm
into the signup page (src/app/signup/page.tsx
) to validate the form upon submission.Fixes #11.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: