mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
## Problem We currently have 2 libraries for schema validation: `yup` that was used with `formik` and `zod` which is now the preferred one. ## Solution - Migrate to `zod` - Fix validation isn't applied on email template form - Fix `react-hook-form` form state usage No visual changes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Switched form validation to a unified Zod-based approach across authentication UIs. * **Improvements** * Template editor and email templates now validate via provided Zod schemas. * SMTP and captcha settings receive conditional validation, improved numeric handling, and clearer required-field behavior. * Validation import/style consistency tidied. * **Bug Fixes** * Consistent dirty-state detection so Save/Cancel visibility and enabled/disabled behavior are reliable across auth forms. <!-- end of auto-generated comment: release notes by coderabbit.ai -->