From e44e2c1e203886db5f839d7ceac1b093baf4c76d Mon Sep 17 00:00:00 2001 From: Nic D Date: Wed, 14 Jan 2026 16:05:05 -0500 Subject: [PATCH 1/2] fix(chatbot): fix chatbot speech formatting, will need to do more work, change from drawer setup --- .../chatbot/components/chatbot-drawer.vue | 2 +- .../chatbot/components/dialogue-phrase.vue | 69 +++++++++++-------- 2 files changed, 42 insertions(+), 29 deletions(-) diff --git a/src/modules/chatbot/components/chatbot-drawer.vue b/src/modules/chatbot/components/chatbot-drawer.vue index 59ea63f..3ad5725 100644 --- a/src/modules/chatbot/components/chatbot-drawer.vue +++ b/src/modules/chatbot/components/chatbot-drawer.vue @@ -71,7 +71,7 @@ \ No newline at end of file From 7cf23a6a551a338560ca4a34f3750861634d558d Mon Sep 17 00:00:00 2001 From: Nic D Date: Thu, 15 Jan 2026 12:19:45 -0500 Subject: [PATCH 2/2] refactor(chatbot): change appearance and function of chatbot window, send context on chat message instead of with each page change --- .../components/main-layout-header-bar.vue | 19 ---- src/layouts/main-layout.vue | 2 +- .../chatbot/components/chatbot-drawer.vue | 107 +++++++++++------- .../chatbot/components/dialogue-content.vue | 4 +- .../chatbot/components/dialogue-phrase.vue | 21 +++- .../chatbot/models/page-context.model.ts | 18 +-- .../chatbot/services/chatbot.service.ts | 34 +++--- .../components/overview-list-filters.vue | 1 - .../components/timesheet-wrapper.vue | 2 +- src/stores/chatbot-store.ts | 13 +-- 10 files changed, 124 insertions(+), 97 deletions(-) diff --git a/src/layouts/components/main-layout-header-bar.vue b/src/layouts/components/main-layout-header-bar.vue index 01af21c..5ad6d39 100644 --- a/src/layouts/components/main-layout-header-bar.vue +++ b/src/layouts/components/main-layout-header-bar.vue @@ -3,14 +3,8 @@ setup > import { useUiStore } from 'src/stores/ui-store'; - import { useAuthStore } from 'src/stores/auth-store'; - import { useChatbotStore } from 'src/stores/chatbot-store'; - - // import HeaderBarNotification from './main-layout-header-bar-notification.vue'; const uiStore = useUiStore(); - const chatbot_store = useChatbotStore(); - const auth_store = useAuthStore(); diff --git a/src/layouts/main-layout.vue b/src/layouts/main-layout.vue index 67c31b3..4ae920f 100644 --- a/src/layouts/main-layout.vue +++ b/src/layouts/main-layout.vue @@ -37,7 +37,7 @@ - + diff --git a/src/modules/chatbot/components/chatbot-drawer.vue b/src/modules/chatbot/components/chatbot-drawer.vue index 3ad5725..380c991 100644 --- a/src/modules/chatbot/components/chatbot-drawer.vue +++ b/src/modules/chatbot/components/chatbot-drawer.vue @@ -12,10 +12,13 @@ const chatbot_store = useChatbotStore(); const text = ref(''); + const is_showing_right_drawer = ref(true); + const drawer_width = ref(85); const handleSend = async () => { const message = text.value.trim(); text.value = ''; + console.log('message: ', message, ', length: ', message.length); await chatbot_api.sendMessage(message); }; @@ -26,53 +29,79 @@ + \ No newline at end of file diff --git a/src/modules/chatbot/components/dialogue-content.vue b/src/modules/chatbot/components/dialogue-content.vue index 53a6993..f9f80dd 100644 --- a/src/modules/chatbot/components/dialogue-content.vue +++ b/src/modules/chatbot/components/dialogue-content.vue @@ -20,11 +20,11 @@