feat(ui): dock the chat at the bottom of every page and keep a skeleton while a conversation loads

This commit is contained in:
sam committed 2026-10-19 03:01:12 +11:00
1 parent 0eecc95aac
commit 61ee5fd3a7
16 files changed
+222 -317

No files matched your search

+9 -1
View File
@@ -15,7 +15,9 @@ import ChatBubble from "./ChatBubble.vue";
import ChatChooseCard from "./ChatChooseCard.vue";
import ChatUpdateCard from "./ChatUpdateCard.vue";
import ChatEmptyState from "./ChatEmptyState.vue";
import { Skeleton } from "@/components/ui/skeleton";
import {
isLoadingSession,
messages,
sendMessage,
streamingTurn,
@@ -56,8 +58,14 @@ const bubbles = computed(() => messages.value.map(parts));
<MessageScroller class="min-h-0 flex-1">
<MessageScrollerViewport>
<MessageScrollerContent class="gap-4 p-4">
<template v-if="isLoadingSession && !bubbles.length">
<Skeleton class="h-14 w-3/5 self-end rounded-xl" />
<Skeleton class="h-24 w-4/5 rounded-xl" />
<Skeleton class="h-10 w-2/5 self-end rounded-xl" />
</template>
<ChatEmptyState
v-if="!bubbles.length && !streamingTurn"
v-else-if="!bubbles.length && !streamingTurn"
@prompt="emit('prompt', $event)"
/>