Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Merge branch 'master' into feat/cmdk-dashboard-terry-opt-in

Joshen Lim96758ce41bd9
diff --cc studio/components/interfaces/App/CommandMenuWrapper.tsx
index 6efa8a4beb8,aa55470301e..bcf03622896
--- a/studio/components/interfaces/App/CommandMenuWrapper.tsx
+++ b/studio/components/interfaces/App/CommandMenuWrapper.tsx
@@@ -11,15 -13,10 +13,14 @@@ import { useSqlEditorStateSnapshot } fr
import { useProfileQuery } from 'data/profile/profile-query'
import { SqlSnippet } from 'data/content/sql-snippets-query'
import { useProjectApiQuery } from 'data/config/project-api-query'
- import { useContentCreateMutation } from 'data/content/content-create-mutation'
- const CommandMenuWrapper = ({ children }: PropsWithChildren<{}>) => {
+ const CommandMenuWrapper = observer(({ children }: PropsWithChildren<{}>) => {
const { ref } = useParams()
const { ui } = useStore()
+
+ const { opt_in_tags } = ui.selectedOrganization ?? {}
+
+ const isOptedInToAI = opt_in_tags?.includes('AI_SQL_GENERATOR_OPT_IN') ?? false
const snap = useSqlEditorStateSnapshot()
const { data: profile } = useProfileQuery()