mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
Moves the sign-in and standalone page bodies (`/sign-in`, `/sign-up`, `/sign-in-sso`, `/sign-in-partner`, `/sign-in-mfa`, `/sign-in-recovery-code`, `/forgot-password`, `/forgot-password-mfa`, `/reset-password`, `/cli/login`, `/partners/stripe/projects/login`, `/authorize`, `/redeem`, `/logout`, `/maintenance`, `/verify-email`, `/support/csat`, `/mcp/secrets`) into their route files and deletes the pages (FE-3106). Part 4 of the stack. **Depends on:** #53212 **Changed:** - `routes/_auth/**` and the standalone routes – page bodies inlined; `next/router`/`next/link`/`next/head` → native TanStack (`navigate({ to, search })`, `search: true` to carry the query, `href` for runtime return URLs) and inline `<title>`. Layout chains match the old `getLayout`s - `components/interfaces/CliLogin/CliLoginScreen.tsx` – the CLI login screen moves out of the page so its test can import it without the route file exporting it - `tests/routes/{authorize,_auth/**}.test.tsx` – moved from `tests/pages/**` and rendered with `renderRoute` **Removed:** - 18 page files Addresses [FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages). ## To test - Sign out, open `/sign-in` and `/sign-up` – same layout and title; switching between them keeps `returnTo` - Sign in with MFA – `/sign-in-mfa` returns to the original page - `/cli/login?session_id=…` and `/authorize?…` – flows complete as before - `/logout` – redirects to `/sign-in` --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>