From 1a07eb50c5b7939bf3e6e42af9c68c70bda5c4ba Mon Sep 17 00:00:00 2001 From: Pranav Date: Fri, 9 May 2025 14:48:02 -0700 Subject: [PATCH] Add floating button for conversations screen --- .../components/copilot/CopilotContainer.vue | 2 +- .../widgets/conversation/ConversationBox.vue | 3 +- .../conversation/ConversationSidebar.vue | 2 +- .../conversation/ConversationView.vue | 6 ++- .../dashboard/conversation/PanelButtons.vue | 40 +++++++++++++++++++ .../dashboard/store/modules/uiState.js | 6 ++- 6 files changed, 53 insertions(+), 6 deletions(-) create mode 100644 app/javascript/dashboard/routes/dashboard/conversation/PanelButtons.vue diff --git a/app/javascript/dashboard/components/copilot/CopilotContainer.vue b/app/javascript/dashboard/components/copilot/CopilotContainer.vue index 9a1918925..1fed0e861 100644 --- a/app/javascript/dashboard/components/copilot/CopilotContainer.vue +++ b/app/javascript/dashboard/components/copilot/CopilotContainer.vue @@ -103,7 +103,7 @@ onMounted(() => { }); const handleClose = () => { - store.dispatch('uiState/set', 'isCopilotSidebarOpen', false); + store.dispatch('uiState/set', { isCopilotSidebarOpen: false }); }; watchEffect(() => { diff --git a/app/javascript/dashboard/components/widgets/conversation/ConversationBox.vue b/app/javascript/dashboard/components/widgets/conversation/ConversationBox.vue index bea3670e8..7130e61c0 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ConversationBox.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ConversationBox.vue @@ -85,7 +85,7 @@ export default {