The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Merge branch 'master' into feat/cmdk-shell-style-message-history
Greg Richardson5b93595387b0
diff --cc packages/ui/src/components/Command/AiCommand.tsxindex d1b76214643,0d60868872a..50ca9f925f3--- a/packages/ui/src/components/Command/AiCommand.tsx+++ b/packages/ui/src/components/Command/AiCommand.tsx@@@ -15,11 -16,12 +16,12 @@@ importimport { SSE } from 'sse.js'- import { Button, IconAlertTriangle, IconCornerDownLeft, IconUser, Input } from 'ui'+ import { Alert, Button, IconAlertTriangle, IconCornerDownLeft, IconUser, Input } from 'ui'import { AiIcon, AiIconChat } from './Command.icons'-import { CommandGroup, CommandItem } from './Command.utils'+import { CommandGroup, CommandItem, useAutoInputFocus, useHistoryKeys } from './Command.utils'import { useCommandMenu } from './CommandMenuProvider'+ import { AiWarning } from './Command.alerts'import { cn } from './../../utils/cn'@@@ -464,9 -456,9 +466,10 @@@ const AiCommand = () =><div className="[overflow-anchor:auto] h-px w-full"></div></div><div className="absolute bottom-0 w-full bg-scale-200 py-3">+ {messages.length > 0 && !hasError && <AiWarning className="mb-3 mx-3" />}<InputclassName="bg-scale-100 rounded mx-3"+ inputRef={inputRef}autoFocusplaceholder={isLoading || isResponding ? 'Waiting on an answer...' : 'Ask Supabase AI a question...'diff --cc packages/ui/src/components/Command/GenerateSQL/GenerateSQL.tsxindex 4e540a6ad60,d86eeae5de9..39dca92e35d--- a/packages/ui/src/components/Command/GenerateSQL/GenerateSQL.tsx+++ b/packages/ui/src/components/Command/GenerateSQL/GenerateSQL.tsx@@@ -271,29 -275,24 +285,16 @@@ const GenerateSQL = () =>}/></div>+ ) : includeSchemaMetadata ? (+ <IncludeSchemaAlert />) : (- <div className="flex items-center justify-between px-6 py-3">- <div>- <p className="text-sm">- Table names, column names and their corresponding data types{' '}- <span- className={cn(includeSchemaMetadata ? 'text-brand-900' : 'text-amber-900')}- >- {includeSchemaMetadata ? 'are' : 'are not'} included- </span>{' '}- in this conversation- </p>- <p className="text-sm text-scale-1100">- Start a new conversation to change this configuration- </p>- </div>- </div>+ <ExcludeSchemaAlert />)}- </>+ </div>)}<Input- inputRef={(inputElement) => {- if (inputElement) {- // We need to delay the focus until the end of the call stack- // due to order of operations- setTimeout(() => {- inputElement.focus()- }, 0)- }- }}+ inputRef={inputRef}- className="bg-scale-100 rounded mx-3"+ className="bg-scale-100 rounded mx-3 mb-4"autoFocusplaceholder={isLoading || isResponding