From d1ed7419ac0a308094469809555d2c057a275830 Mon Sep 17 00:00:00 2001 From: Pranav Date: Fri, 9 May 2025 00:42:58 -0700 Subject: [PATCH] Rethink Copilot from scratch --- .../components-next/copilot/Copilot.vue | 30 ++++++---- .../components-next/sidebar/Sidebar.vue | 4 +- .../components/copilot/CopilotContainer.vue | 24 ++++---- .../widgets/conversation/ConversationBox.vue | 7 +-- .../conversation/ConversationSidebar.vue | 59 ------------------- .../i18n/locale/en/integrations.json | 1 + .../conversation/ConversationView.vue | 6 +- 7 files changed, 41 insertions(+), 90 deletions(-) diff --git a/app/javascript/dashboard/components-next/copilot/Copilot.vue b/app/javascript/dashboard/components-next/copilot/Copilot.vue index 5feb474a6..f0862eae2 100644 --- a/app/javascript/dashboard/components-next/copilot/Copilot.vue +++ b/app/javascript/dashboard/components-next/copilot/Copilot.vue @@ -10,6 +10,7 @@ import CopilotAgentMessage from './CopilotAgentMessage.vue'; import CopilotAssistantMessage from './CopilotAssistantMessage.vue'; import ToggleCopilotAssistant from './ToggleCopilotAssistant.vue'; import Icon from '../icon/Icon.vue'; +import Button from '../button/Button.vue'; const props = defineProps({ supportAgent: { @@ -38,7 +39,7 @@ const props = defineProps({ }, }); -const emit = defineEmits(['sendMessage', 'reset', 'setAssistant']); +const emit = defineEmits(['sendMessage', 'reset', 'setAssistant', 'close']); const { t } = useI18n(); @@ -93,6 +94,23 @@ watch(