mirror of
https://github.com/supabase/supabase.git
synced 2026-10-13 05:09:12 +03:00
## Problem Foreign wrapper forms still use `formik` but we now use `react-hook-form` everywhere and we'd like to reduce our dependencies. ## Solution This PR focuses on migrating the OAuth apps form to `react-hook-form` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Reworked the OAuth app publish form to use schema-driven validation and managed callback URL fields. * Replaced bespoke URL state/handlers with add/remove field array logic; consolidated error rendering. * Submission, loading and preview now reflect real-time form state and reset correctly when the panel or selection changes. * **Bug Fixes** * Improved URL validation to handle localhost cases and optional HTTPS-only enforcement. * **Tests** * Extended URL validation tests to cover localhost, HTTP/HTTPS and HTTPS-only scenarios. <!-- end of auto-generated comment: release notes by coderabbit.ai -->