The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
remove CMDK from studio again
Jonathan Summers-Muire3b93912c943
diff --git a/packages/ui/src/components/Command/CommandMenuProvider.tsx b/packages/ui/src/components/Command/CommandMenuProvider.tsxindex c388e1f55d6..3f94ba1e78d 100644--- a/packages/ui/src/components/Command/CommandMenuProvider.tsx+++ b/packages/ui/src/components/Command/CommandMenuProvider.tsx@@ -18,7 +18,7 @@ export interface CommandMenuContextValue {// to do: remove this prop// this is a temporary hack as ReactMarkdown fails our jest tests if we import the package within this UI package- MarkdownHandler: React.ReactNode // to do: remove this. although it breaks our jest tests+ MarkdownHandler: (props: any) => React.ReactNode // to do: remove this. although it breaks our jest tests}export const CommandMenuContext = createContext<CommandMenuContextValue | undefined>(undefined)export const useCommandMenu = () => {@@ -43,7 +43,7 @@ const CommandMenuProvider = ({site: 'studio' | 'docs'// to do: remove this prop// this is a temporary hack as ReactMarkdown fails our jest tests if we import the package within this UI package- MarkdownHandler: React.ReactNode+ MarkdownHandler: (props: any) => React.ReactNode}>) => {const [isOpen, setIsOpen] = useState(false)const [isLoading, setIsLoading] = useState(false)diff --git a/studio/pages/_app.tsx b/studio/pages/_app.tsxindex 276e29df1fe..8598acb612d 100644--- a/studio/pages/_app.tsx+++ b/studio/pages/_app.tsx@@ -40,10 +40,8 @@ import { PortalToast, RouteValidationWrapper, AppBannerWrapper } from 'componentimport PageTelemetry from 'components/ui/PageTelemetry'import FlagProvider from 'components/ui/Flag/FlagProvider'import useAutoAuthRedirect from 'hooks/misc/useAutoAuthRedirect'-import CommandMenuProvider from 'ui/src/components/Command/CommandMenuProvider'+import { TooltipProvider } from '@radix-ui/react-tooltip'-import ReactMarkdown from 'react-markdown'-import remarkGfm from 'remark-gfm'dayjs.extend(customParseFormat)dayjs.extend(utc)@@ -119,33 +117,7 @@ function CustomApp({ Component, pageProps }: AppPropsWithLayout) {<PageTelemetry><TooltipProvider><RouteValidationWrapper>- <AppBannerWrapper>- <CommandMenuProvider- site="studio"- MarkdownHandler={({ children, ...props }: { children: string }) => (- <ReactMarkdown- linkTarget="_blank"- className="prose dark:prose-dark"- remarkPlugins={[remarkGfm]}- transformLinkUri={(href) => {- const supabaseUrl = new URL('https://supabase.com')- const linkUrl = new URL(href, 'https://supabase.com')-- if (linkUrl.origin === supabaseUrl.origin) {- return linkUrl.toString()- }-- return href- }}- {...props}- >- {children}- </ReactMarkdown>- )}- >- {getLayout(<Component {...pageProps} />)}- </CommandMenuProvider>- </AppBannerWrapper>+ <AppBannerWrapper>{getLayout(<Component {...pageProps} />)}</AppBannerWrapper></RouteValidationWrapper></TooltipProvider></PageTelemetry>