diff --git a/ui/src/chat/ChatComposer.vue b/ui/src/chat/ChatComposer.vue index 2c0f237d7..fb03ac86e 100644 --- a/ui/src/chat/ChatComposer.vue +++ b/ui/src/chat/ChatComposer.vue @@ -9,6 +9,7 @@ import { cn } from "@/lib/utils"; import { Textarea } from "@/components/ui/textarea"; import { isExactCommand, replaceToken } from "./commands"; import ChatSlashPalette from "./ChatSlashPalette.vue"; +import ChatSuggestions from "./ChatSuggestions.vue"; import { closeCommandMenu, commandMatches, @@ -242,6 +243,10 @@ function onKeydown(event: KeyboardEvent): void { /> + +
import Logo from "@/components/topbar/Logo.vue"; -import { Button } from "@/components/ui/button"; /** - * What the panel opens on before there is a conversation: an invitation, and - * three prompts that fill the composer. The text is handed up rather than - * typed into the composer here, because the composer owns its own focus. + * What the panel opens on before there is a conversation: the mark. The + * suggested prompts live beside the composer (ChatSuggestions), where they + * are reachable whether or not the transcript is empty. */ -const emit = defineEmits<{ prompt: [text: string] }>(); - -// Prompts an operator might actually ask, rather than demonstrations of the -// feature. -const PROMPTS = [ - "Summarise active tasks", - "Show running agents", - "Check system status", -]; diff --git a/ui/src/chat/ChatSuggestions.vue b/ui/src/chat/ChatSuggestions.vue new file mode 100644 index 000000000..45ffd4646 --- /dev/null +++ b/ui/src/chat/ChatSuggestions.vue @@ -0,0 +1,42 @@ + + + diff --git a/ui/src/chat/ChatTranscript.vue b/ui/src/chat/ChatTranscript.vue index 9f24fc812..f0fd7bec7 100644 --- a/ui/src/chat/ChatTranscript.vue +++ b/ui/src/chat/ChatTranscript.vue @@ -37,8 +37,6 @@ import { * that set scrollTop by hand would have no "reader scrolled away" state and no * way back down, so MessageScroller owns this. */ -const emit = defineEmits<{ prompt: [text: string] }>(); - function parts(message: ChatMessage, index: number) { const from = message.from ?? message.From ?? ""; // Anything this browser's composer did not send is Archie's answer. @@ -114,10 +112,7 @@ const rows = computed(() => {
- +