Skip to content

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

fix(design system): make suggested commands in assistant popover conf… (#33626)

Charisee728051f3b9
diff --git a/packages/ui-patterns/AssistantChat/AssistantCommandsPopover.tsx b/packages/ui-patterns/AssistantChat/AssistantCommandsPopover.tsx
index 5b07624edac..ffe1996abe2 100644
--- a/packages/ui-patterns/AssistantChat/AssistantCommandsPopover.tsx
+++ b/packages/ui-patterns/AssistantChat/AssistantCommandsPopover.tsx
@@ -39,6 +39,8 @@ const AssistantCommandsPopover = forwardRef<
suggestions?: string[]
/* Whether an icon is being used in the AssistantChatForm */
usingIcon?: boolean
+ /* Available commands in suggestions popover */
+ commands?: string[]
}
>(
(
@@ -51,6 +53,7 @@ const AssistantCommandsPopover = forwardRef<
setOpen,
suggestions,
usingIcon = false,
+ commands = ['fix', 'improve', 'explain', 'help'],
...props
},
ref
@@ -116,8 +119,6 @@ const AssistantCommandsPopover = forwardRef<
const resultArray = value.split(/(\s+)/).filter(Boolean)
- const commands = ['fix', 'improve', 'explain', 'help']
-
return (
<>
<Popover