Skip to content

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

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

Terry Sutton8a1880b3d73c
diff --cc studio/components/interfaces/App/CommandMenuWrapper.tsx
index 718710ce474,81745e56e65..6efa8a4beb8
--- a/studio/components/interfaces/App/CommandMenuWrapper.tsx
+++ b/studio/components/interfaces/App/CommandMenuWrapper.tsx
@@@ -12,11 -15,8 +15,12 @@@ import { useContentCreateMutation } fro
const CommandMenuWrapper = ({ children }: PropsWithChildren<{}>) => {
const { ref } = useParams()
- const { content, ui } = useStore()
+ 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()
const { data: settings } = useProjectApiQuery({ projectRef: ref })