mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 23:49:03 +00:00
Retires the migration guardrails now that `pages/**` is gone (FE-3106). Last part (15) of the stack. **Depends on:** #53223 **Changed:** - `apps/studio/AGENTS.md` – replaces the "TanStack Start migration" rules (never delete a page, mirror page edits) with a short routing section - `apps/studio/README.md`, `routes/project/$ref/editor.tsx` – stale Next references **Removed:** - `apps/studio/TANSTACK_MIGRATION.md` - the `apps/studio/pages/**` `path_instructions` rule in `.coderabbit.yaml` Addresses [FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages). ## To test - Docs-only; nothing to exercise beyond reading `apps/studio/AGENTS.md` --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
34 lines
1.3 KiB
TypeScript
34 lines
1.3 KiB
TypeScript
import { createFileRoute, Outlet } from '@tanstack/react-router'
|
|
|
|
import { EditorBaseLayout } from '@/components/layouts/editors/EditorBaseLayout'
|
|
import { TableEditorLayout } from '@/components/layouts/TableEditorLayout/TableEditorLayout'
|
|
import { TableEditorMenu } from '@/components/layouts/TableEditorLayout/TableEditorMenu'
|
|
|
|
export const Route = createFileRoute('/project/$ref/editor')({
|
|
component: TableEditorShell,
|
|
})
|
|
|
|
// All three editor leaves (index, $id, new) share identical layout
|
|
// wrapping (DefaultLayout > EditorBaseLayout > TableEditorLayout). DefaultLayout is provided by the parent
|
|
// `routes/project/$ref.tsx` shell, so this file only adds the
|
|
// editor-specific layers.
|
|
//
|
|
// Note on the ProjectLayoutWithAuth chain: EditorBaseLayout always
|
|
// wraps in <ProjectLayoutWithAuth>. TableEditorLayout *also* wraps in
|
|
// one — but only on its no-permission path; the happy path returns
|
|
// `<>{children}<SaveQueueActionBar/></>` so no double-wrap occurs in
|
|
// normal use. Mirrors current Next behaviour exactly.
|
|
function TableEditorShell() {
|
|
return (
|
|
<EditorBaseLayout
|
|
productMenu={<TableEditorMenu />}
|
|
product="Table Editor"
|
|
productMenuClassName="overflow-y-hidden"
|
|
>
|
|
<TableEditorLayout>
|
|
<Outlet />
|
|
</TableEditorLayout>
|
|
</EditorBaseLayout>
|
|
)
|
|
}
|