From cdeb8cb7e305f87c59b9b4418812c994007b3774 Mon Sep 17 00:00:00 2001 From: Jaakko Husso Date: Tue, 21 Oct 2025 12:06:43 +0300 Subject: [PATCH] fix(core): Miscellaneous chat hub fixes (no-changelog) (#20995) --- .../editor-ui/src/components/MainSidebar.vue | 20 +++++++++---------- .../ai/chatHub/components/ChatPrompt.vue | 11 ++++++---- .../features/ai/chatHub/module.descriptor.ts | 4 ++-- 3 files changed, 19 insertions(+), 16 deletions(-) diff --git a/packages/frontend/editor-ui/src/components/MainSidebar.vue b/packages/frontend/editor-ui/src/components/MainSidebar.vue index 0ba42a47c41..a75becc6aca 100644 --- a/packages/frontend/editor-ui/src/components/MainSidebar.vue +++ b/packages/frontend/editor-ui/src/components/MainSidebar.vue @@ -116,6 +116,16 @@ const mainMenuItems = computed(() => [ icon: 'cloud', available: settingsStore.isCloudDeployment && hasPermission(['instanceOwner']), }, + { + id: 'chat', + icon: 'message-circle', + label: 'Chat', + position: 'bottom', + route: { to: { name: CHAT_VIEW } }, + available: + settingsStore.isChatFeatureEnabled && + hasPermission(['rbac'], { rbac: { scope: 'chatHub:message' } }), + }, { // Link to in-app pre-built agent templates, available experiment is enabled id: 'templates', @@ -195,16 +205,6 @@ const mainMenuItems = computed(() => [ settingsStore.isModuleActive('insights') && hasPermission(['rbac'], { rbac: { scope: 'insights:list' } }), }, - { - id: 'chat', - icon: 'bot', - label: 'Chat', - position: 'bottom', - route: { to: { name: CHAT_VIEW } }, - available: - settingsStore.isChatFeatureEnabled && - hasPermission(['rbac'], { rbac: { scope: 'chatHub:message' } }), - }, { id: 'help', icon: 'circle-help', diff --git a/packages/frontend/editor-ui/src/features/ai/chatHub/components/ChatPrompt.vue b/packages/frontend/editor-ui/src/features/ai/chatHub/components/ChatPrompt.vue index 8448abf54cd..889f86df371 100644 --- a/packages/frontend/editor-ui/src/features/ai/chatHub/components/ChatPrompt.vue +++ b/packages/frontend/editor-ui/src/features/ai/chatHub/components/ChatPrompt.vue @@ -26,10 +26,12 @@ const speechInput = useSpeechRecognition({ lang: navigator.language, }); -function onAttach() {} - function onMic() { - speechInput.isListening.value ? speechInput.stop() : speechInput.start(); + if (speechInput.isListening.value) { + speechInput.stop(); + } else { + speechInput.start(); + } } function onStop() { @@ -102,6 +104,7 @@ defineExpose({ />
+