From de5f823a44e28eebe2b945c37ef3dbdc2a3add55 Mon Sep 17 00:00:00 2001 From: Greg Richardson Date: Fri, 7 Jul 2023 13:39:38 -0600 Subject: [PATCH] feat(sql-editor): ai query on welcome page --- .../SQLEditor/SQLTemplates/SQLTemplates.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsx b/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsx index 3c729c690d2..95fbc9e51d2 100644 --- a/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsx +++ b/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsx @@ -11,6 +11,7 @@ import { useProfile } from 'lib/profile' import Telemetry from 'lib/telemetry' import { useRouter } from 'next/router' import { useSqlEditorStateSnapshot } from 'state/sql-editor' +import { AiIcon, IconCornerDownLeft, Input } from 'ui' import { createSqlSnippetSkeleton } from '../SQLEditor.utils' import SQLCard from './SQLCard' @@ -54,6 +55,23 @@ const SQLTemplates = observer(() => { return (
+
+

What do you want to build?

+ inputElement?.focus()} + icon={} + inputClassName=" w-full !border-brand-900 py-4" + iconContainerClassName="transition text-scale-800 text-brand-900" + placeholder="Ask Supabase AI to build a query" + className="w-full max-w-2xl" + actions={ +
+ +
+ } + /> +

Scripts