The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Chore/api side panel fixes (#18369)
Joshen Lim7e2cd927c30f
diff --git a/studio/components/interfaces/ProjectAPIDocs/Content/Entities.tsx b/studio/components/interfaces/ProjectAPIDocs/Content/Entities.tsxindex 885ed3beba9..c4f8c7888d0 100644--- a/studio/components/interfaces/ProjectAPIDocs/Content/Entities.tsx+++ b/studio/components/interfaces/ProjectAPIDocs/Content/Entities.tsx@@ -47,7 +47,7 @@ const Entities = ({ language }: ContentProps) => {<div><ContentSnippet selectedLanguage={language} snippet={DOCS_CONTENT.generatingTypes} /><div className="flex items-center space-x-2 px-4 mt-3">- <Link href="https://supabase.com/docs/guides/database/api/generating-types">+ <Link passHref href="https://supabase.com/docs/guides/database/api/generating-types"><Button asChild type="default" icon={<IconExternalLink />}><a target="_blank" rel="noreferrer">Documentationdiff --git a/studio/components/interfaces/ProjectAPIDocs/FirstLevelNav.tsx b/studio/components/interfaces/ProjectAPIDocs/FirstLevelNav.tsxindex 3e61b28835b..18febceb5ca 100644--- a/studio/components/interfaces/ProjectAPIDocs/FirstLevelNav.tsx+++ b/studio/components/interfaces/ProjectAPIDocs/FirstLevelNav.tsx@@ -1,3 +1,4 @@+import SVG from 'react-inlinesvg'import { useParams } from 'common'import Link from 'next/link'import { Fragment } from 'react'@@ -10,6 +11,7 @@ import { useIsFeatureEnabled } from 'hooks'import { useAppStateSnapshot } from 'state/app-state'import { navigateToSection } from './Content/Content.utils'import { DOCS_CONTENT, DOCS_MENU } from './ProjectAPIDocs.constants'+import { BASE_PATH } from 'lib/constants'const Separator = () => <div className="border-t !mt-3 pb-1 mx-3" />@@ -149,7 +151,29 @@ const FirstLevelNav = () => {<Link passHref href="https://supabase.com/docs/guides/api"><Button block asChild type="text" size="small" icon={<IconBookOpen />}><a target="_blank" rel="noreferrer" className="!justify-start">- API Reference+ REST guide+ </a>+ </Button>+ </Link>+ <Link passHref href="https://supabase.com/docs/guides/graphql">+ <Button+ block+ asChild+ type="text"+ size="small"+ icon={+ <SVG+ src={`${BASE_PATH}/img/graphql.svg`}+ style={{ width: `${16}px`, height: `${16}px` }}+ className="text-foreground"+ preProcessor={(code) =>+ code.replace(/svg/, 'svg class="m-auto text-color-inherit"')+ }+ />+ }+ >+ <a target="_blank" rel="noreferrer" className="!justify-start">+ GraphQL guide</a></Button></Link>diff --git a/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.constants.ts b/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.constants.tsindex 570ef68cdbb..61ff28824c0 100644--- a/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.constants.ts+++ b/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.constants.ts@@ -405,9 +405,9 @@ You can generate types from your database either through the [Supabase CLI](httpgraphql: {key: 'graphql',category: 'entities',- title: 'GraphQL vs Supabase',+ title: 'GraphQL vs PostgREST',description: `-If you have a GraphQL background, you might be wonering if you can fetch your data in a single round-trip. The answer is yes! The syntax is very similar. This example shows how you might achieve the same thing with Apollo GraphQL and Supabase.+If you have a GraphQL background, you might be wondering if you can fetch your data in a single round-trip. The answer is yes! The syntax is very similar. This example shows how you might achieve the same thing with Apollo GraphQL and Supabase.Still want GraphQL?If you still want to use GraphQL, you can. Supabase provides you with a full Postgres database, so as long as your middleware can connect to the database then you can still use the tools you love. You can find the database connection details [in the settings](/project/[ref]/settings/database).diff --git a/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.tsx b/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.tsxindex 7e4128d33a5..88579e949a7 100644--- a/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.tsx+++ b/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.tsx@@ -161,7 +161,9 @@ const SecondLevelNav = () => {type="default"icon={<IconExternalLink strokeWidth={1.5} />}>- <a>Documentation</a>+ <a target="_blank" rel="noreferrer">+ Documentation+ </a></Button></Link></AlertDescription_Shadcn_>