The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: Enhance the title tag on dashboard pages
gitstart70a7d994635b
diff --git a/studio/components/layouts/ProjectLayout/ProjectLayout.tsx b/studio/components/layouts/ProjectLayout/ProjectLayout.tsxindex 11c972561ba..908401c3eb2 100644--- a/studio/components/layouts/ProjectLayout/ProjectLayout.tsx+++ b/studio/components/layouts/ProjectLayout/ProjectLayout.tsx@@ -26,6 +26,7 @@ export interface ProjectLayoutProps {hideHeader?: booleanhideIconBar?: booleanchildren: ReactNode+ selectedTable?: string}const ProjectLayout = ({@@ -36,12 +37,13 @@ const ProjectLayout = ({children,hideHeader = false,hideIconBar = false,+ selectedTable,}: ProjectLayoutProps) => {const { ui } = useStore()const router = useRouter()const { ref: projectRef } = useParams()const ongoingIncident = useFlag('ongoingIncident')- const projectName = ui.selectedProject?.name+ const organizationName = ui.selectedOrganization?.nameconst isPaused = ui.selectedProject?.status === PROJECT_STATUS.INACTIVEconst ignorePausedState =@@ -52,7 +54,13 @@ const ProjectLayout = ({<ProjectContextProvider projectRef={projectRef}><Head><title>- {title ? `${title} | Supabase` : projectName ? `${projectName} | Supabase` : 'Supabase'}+ {title+ ? `${title} | Supabase`+ : selectedTable+ ? `${selectedTable} | ${organizationName} | Supabase`+ : organizationName+ ? `${organizationName} | Supabase`+ : 'Supabase'}</title><meta name="description" content="Supabase Studio" /></Head>diff --git a/studio/components/layouts/TableEditorLayout/TableEditorLayout.tsx b/studio/components/layouts/TableEditorLayout/TableEditorLayout.tsxindex af9d3c9d067..60143db8f77 100644--- a/studio/components/layouts/TableEditorLayout/TableEditorLayout.tsx+++ b/studio/components/layouts/TableEditorLayout/TableEditorLayout.tsx@@ -19,6 +19,7 @@ import useTableRowsPrefetchWrapper from './TableEditorLayout.utils'export interface TableEditorLayoutProps {selectedSchema?: string+ selectedTable?: stringonSelectSchema: (schema: string) => voidonAddTable: () => voidonEditTable: (table: Entity) => void@@ -28,6 +29,7 @@ export interface TableEditorLayoutProps {const TableEditorLayout = ({selectedSchema,+ selectedTable,onSelectSchema = noop,onAddTable = noop,onEditTable = noop,@@ -123,6 +125,7 @@ const TableEditorLayout = ({return (<ProjectLayoutproduct="Table editor"+ selectedTable={selectedTable}productMenu={<TableEditorMenuselectedSchema={selectedSchema}diff --git a/studio/pages/project/[ref]/editor/[id].tsx b/studio/pages/project/[ref]/editor/[id].tsxindex 0b202c9f83a..863f1dda3c8 100644--- a/studio/pages/project/[ref]/editor/[id].tsx+++ b/studio/pages/project/[ref]/editor/[id].tsx@@ -270,6 +270,7 @@ const TableEditorPage: NextPageWithLayout = () => {return (<TableEditorLayoutselectedSchema={selectedSchema}+ selectedTable={selectedTable?.name}onSelectSchema={setSelectedSchema}onAddTable={onAddTable}onEditTable={onEditTable}