Files
archie/ui/src/chat/ChatEmptyState.vue
T

39 lines
1.1 KiB
Vue

<script setup lang="ts">
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.
*/
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",
];
</script>
<template>
<div class="w-full self-center justify-self-center py-6 text-center">
<div aria-hidden="true" class="mb-3 flex justify-center">
<Logo :open="false" />
</div>
<div class="flex flex-wrap justify-center gap-2">
<Button
v-for="prompt in PROMPTS"
:key="prompt"
variant="outline"
size="sm"
@click="emit('prompt', prompt)"
>
{{ prompt }}
</Button>
</div>
</div>
</template>