Moves the project home, `/merge`, `/api` and all `/database/*` page
bodies into their route files and deletes the pages (FE-3106). Part 6 of
the stack.
**Depends on:** #53214
**Changed:**
- `routes/project/$ref/{index,merge,api/index}.tsx`,
`routes/project/$ref/database/**` – 26 page bodies inlined; redirects
use `<Navigate>`/`useNavigate` with typed params and `search`;
`next/link` → `Link`
- `database/pipelines/new` – same-origin header links navigate
client-side via `splitInternalUrl`, external ones via `href`, matching
the old shim
- `PipelineCreationPage.test.tsx` – renders the route with `renderRoute`
**Removed:**
- 26 page files, and `DatabaseTriggersLayout`/`PipelinesLayout`, which
only the deleted pages' `getLayout` used (the route shells already
inline them)
Addresses
[FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages).
## To test
- Click through Database (Tables, Functions, Triggers, Indexes, Roles,
Policies, Backups, Pipelines, Publications) – same layout, titles and
sidebar
- `/project/<ref>/database/triggers` – redirects to `triggers/data`
- `/project/<ref>/api` – redirects to the Data API docs, keeping the
query
- Create a pipeline and leave the wizard – unsaved-changes guard and
navigation behave as before
---------
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
**Stack 5.2/6** of the TanStack Start migration (#46424) — second half
of the project routes (S5 was split for CodeRabbit's 150-file cap).
Stacked on **#47117** (5.1).
> [!NOTE]
> Same shape as 5.1 — thin route wrappers over the existing pages-router
components. With this PR every route is present, so `routeTree.gen.ts`
is now **byte-identical to the migration branch**.
## What's in this PR
- **Remaining project routes:** auth, logs, settings, observability,
functions, advisors, project-level integrations.
- **Supporting edits:** hoist `EdgeFunctionsIndexPageWrapper` out of
`getLayout`, `functions/secrets`, and move `DefaultLayout` to the root
for the logs page.
- `routeTree.gen.ts` regenerated for the full set.
## Verification
On top of S1–5.1: `studio` typecheck ✓, lint (0 errors) ✓, **Next build
✓ (181/181 pages)**.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Refactor**
* Reorganized internal routing and page structure to improve navigation
and maintainability across project settings, logs, functions,
authentication, integrations, and observability sections.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>