Closed colburncodes closed 5 months ago
The recent updates focus on refining the user signup process in the authentication feature by enhancing schema flexibility and improving form handling in the UI. Optional terms acceptance has been introduced, alongside a new type definition for better type inference. Additionally, form submission now includes error handling and user notifications for a smoother signup experience.
File Path | Change Summary |
---|---|
.../auth/schemas.ts |
Added optional property to terms in SignUpInput , introduced SignUpInputType . |
.../signup/components/signup-form.tsx |
Updated form to use SignUpInputType , added notification logic in onSubmit . |
🐰✨ A hop, a skip, a code deploy, Changes are here, oh boy, oh boy! Fields now optional, types are tight, Sign up's smoother, into the night. Cheers to devs, with bugs now slight! 🌟🐇
src/features/auth/schemas.ts (1)
`24-24`: Type inference using Zod's `infer` is correctly implemented. This ensures type safety and consistency with the schema, which is crucial for reducing runtime errors.src/pages/auth/signup/components/signup-form.tsx (1)
`5-6`: Correct usage of imports and type declarations. The explicit use of `SignUpInputType` for form data handling enhances type safety and consistency with the backend schema.
Summary by CodeRabbit