Skip to content

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

feat: ai icon animation when generating query

Greg Richardsonf09513b9abb2
diff --git a/studio/components/interfaces/SQLEditor/SQLTemplates/SQLAI.tsx b/studio/components/interfaces/SQLEditor/SQLTemplates/SQLAI.tsx
index a774795d0e2..c0ed4563389 100644
--- a/studio/components/interfaces/SQLEditor/SQLTemplates/SQLAI.tsx
+++ b/studio/components/interfaces/SQLEditor/SQLTemplates/SQLAI.tsx
@@ -20,7 +20,7 @@ import router from 'next/router'
import { useState } from 'react'
import { format } from 'sql-formatter'
import { useSqlEditorStateSnapshot } from 'state/sql-editor'
-import { AiIcon, IconCornerDownLeft, IconSettings, Input } from 'ui'
+import { AiIcon, AiIconAnimation, IconCornerDownLeft, IconSettings, Input } from 'ui'
import AISettingsModal from '../AISettingsModal'
import { sqlAiDisclaimerComment } from '../SQLEditor.constants'
import { createSqlSnippetSkeleton } from '../SQLEditor.utils'
@@ -236,7 +236,7 @@ const SQLAI = () => {
},
}}
>
- <AiIcon className="w-4 h-4" />
+ <AiIconAnimation loading />
</motion.div>
</motion.div>
)}