mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
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>
22 lines
542 B
TypeScript
22 lines
542 B
TypeScript
import { createFileRoute } from '@tanstack/react-router'
|
|
import { ReactFlowProvider } from '@xyflow/react'
|
|
|
|
import { SchemaGraph } from '@/components/interfaces/Database/Schemas/SchemaGraph'
|
|
|
|
export const Route = createFileRoute('/project/$ref/database/schemas')({
|
|
component: SchemasPage,
|
|
staticData: {
|
|
databaseLayoutTitle: 'Schema Visualizer',
|
|
},
|
|
})
|
|
|
|
function SchemasPage() {
|
|
return (
|
|
<div className="flex w-full h-full flex-col">
|
|
<ReactFlowProvider>
|
|
<SchemaGraph />
|
|
</ReactFlowProvider>
|
|
</div>
|
|
)
|
|
}
|