diff --git a/frontend/src/components/ChatPanel.vue b/frontend/src/components/ChatPanel.vue index 7327d85..6ce9ef4 100644 --- a/frontend/src/components/ChatPanel.vue +++ b/frontend/src/components/ChatPanel.vue @@ -182,6 +182,27 @@ function toggleSection(key: SectionKey) { watch(() => store.currentConversation?.id, () => loadCollapsed(), { immediate: true }) +// ── Empty-state (full variant, fresh/empty conversation) ───────────────────── +const showEmptyState = computed( + () => + props.variant === 'full' + && !props.briefingMode + && !props.projectId + && !store.streaming + && (store.currentConversation?.messages.length ?? 0) === 0 +) + +const recentConversations = computed(() => { + const currentId = store.currentConversation?.id + return store.conversations + .filter((c) => c.id !== currentId && c.message_count > 0) + .slice(0, 5) +}) + +function startVoiceMode() { + window.dispatchEvent(new CustomEvent('voice:ptt-toggle')) +} + // ── Send ────────────────────────────────────────────────────────────────────── const inputBarRef = ref | null>(null) @@ -298,7 +319,7 @@ defineExpose({ focus, prefill, send, contextCount, sidebarOpen, toggleContextSid