From 6345ac6ff8ddda9db14502016801169099bc3d2d Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Thu, 20 Nov 2025 16:07:09 +0800 Subject: [PATCH] feat(chat): refactor chat component structure and add new features (#3701) - Introduced `ConversationSidebar.vue` for improved conversation management and sidebar functionality. - Enhanced `MessageList.vue` to handle loading states and improved message rendering. - Created new composables: `useConversations`, `useMessages`, `useMediaHandling`, `useRecording` for better code organization and reusability. - Added loading indicators and improved user experience during message processing. - Ensured backward compatibility and maintained existing functionalities. --- dashboard/src/components/chat/Chat.vue | 2 +- dashboard/src/components/chat/ConversationSidebar.vue | 1 + dashboard/src/composables/useMessages.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dashboard/src/components/chat/Chat.vue b/dashboard/src/components/chat/Chat.vue index aa1192d09..09acd1b7e 100644 --- a/dashboard/src/components/chat/Chat.vue +++ b/dashboard/src/components/chat/Chat.vue @@ -506,4 +506,4 @@ onBeforeUnmount(() => { padding: 0 !important; } } - \ No newline at end of file + diff --git a/dashboard/src/components/chat/ConversationSidebar.vue b/dashboard/src/components/chat/ConversationSidebar.vue index b2ebd3fef..5abc1bed8 100644 --- a/dashboard/src/components/chat/ConversationSidebar.vue +++ b/dashboard/src/components/chat/ConversationSidebar.vue @@ -293,3 +293,4 @@ function handleSidebarMouseLeave() { } } + diff --git a/dashboard/src/composables/useMessages.ts b/dashboard/src/composables/useMessages.ts index 3779576cd..5e1a6c7a1 100644 --- a/dashboard/src/composables/useMessages.ts +++ b/dashboard/src/composables/useMessages.ts @@ -301,3 +301,4 @@ export function useMessages( toggleStreaming }; } +