The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat(sql-editor): make ai default sql editor screen
Greg Richardson4ff4ae77a7cf
diff --git a/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx b/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsxindex c129263794f..3cab845bafa 100644--- a/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx+++ b/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx@@ -115,13 +115,13 @@ const SideBarContent = observer(() => {<div><ProductMenuItemname="Build with AI"- isActive={router.asPath === `/project/${ref}/sql/ai`}- url={`/project/${ref}/sql/ai`}+ isActive={router.asPath === `/project/${ref}/sql`}+ url={`/project/${ref}/sql`}/><ProductMenuItemname="Templates"- isActive={router.asPath === `/project/${ref}/sql`}- url={`/project/${ref}/sql`}+ isActive={router.asPath === `/project/${ref}/sql/templates`}+ url={`/project/${ref}/sql/templates`}/><ProductMenuItemname="Quickstarts"diff --git a/studio/pages/project/[ref]/sql/index.tsx b/studio/pages/project/[ref]/sql/index.tsxindex bcbeb763a7e..456822164fc 100644--- a/studio/pages/project/[ref]/sql/index.tsx+++ b/studio/pages/project/[ref]/sql/index.tsx@@ -1,12 +1,14 @@+import SQLAI from 'components/interfaces/SQLEditor/SQLTemplates/SQLAI'+import { SQLEditorLayout } from 'components/layouts'import { observer } from 'mobx-react-lite'import { NextPageWithLayout } from 'types'-import { SQLEditorLayout } from 'components/layouts'-import { SQLTemplates } from 'components/interfaces/SQLEditor'const SqlEditorWelcome: NextPageWithLayout = () => {- return <SQLTemplates />+ return <SQLAI />}-SqlEditorWelcome.getLayout = (page) => <SQLEditorLayout title="SQL">{page}</SQLEditorLayout>+SqlEditorWelcome.getLayout = (page) => (+ <SQLEditorLayout title="Build with AI">{page}</SQLEditorLayout>+)export default observer(SqlEditorWelcome)diff --git a/studio/pages/project/[ref]/sql/ai.tsx b/studio/pages/project/[ref]/sql/templates.tsxsimilarity index 54%rename from studio/pages/project/[ref]/sql/ai.tsxrename to studio/pages/project/[ref]/sql/templates.tsxindex 456822164fc..bcbeb763a7e 100644--- a/studio/pages/project/[ref]/sql/ai.tsx+++ b/studio/pages/project/[ref]/sql/templates.tsx@@ -1,14 +1,12 @@-import SQLAI from 'components/interfaces/SQLEditor/SQLTemplates/SQLAI'-import { SQLEditorLayout } from 'components/layouts'import { observer } from 'mobx-react-lite'import { NextPageWithLayout } from 'types'+import { SQLEditorLayout } from 'components/layouts'+import { SQLTemplates } from 'components/interfaces/SQLEditor'const SqlEditorWelcome: NextPageWithLayout = () => {- return <SQLAI />+ return <SQLTemplates />}-SqlEditorWelcome.getLayout = (page) => (- <SQLEditorLayout title="Build with AI">{page}</SQLEditorLayout>-)+SqlEditorWelcome.getLayout = (page) => <SQLEditorLayout title="SQL">{page}</SQLEditorLayout>export default observer(SqlEditorWelcome)