From 123765b6762527a8acd2ab31c2e10f0d9b6d0fd0 Mon Sep 17 00:00:00 2001 From: Pranav Date: Mon, 12 May 2025 21:42:34 -0700 Subject: [PATCH] Linear integration --- .../components-next/copilot/Copilot.vue | 4 +- .../copilot/CopilotAssistantMessage.vue | 8 +- .../copilot/CopilotEmptyState.vue | 63 ++++++++--- .../components/copilot/CopilotContainer.vue | 9 +- .../conversation/linear/CreateIssue.vue | 7 ++ .../widgets/conversation/linear/index.vue | 5 + enterprise/app/helpers/captain/chat_helper.rb | 2 +- .../captain/process_copilot_message_job.rb | 5 +- .../services/captain/copilot/chat_service.rb | 4 + .../create_linear_tickets_on_ui_service.rb | 103 ++++++++++++++++++ .../tools/copilot/search_linear_service.rb | 81 ++++++++++++++ 11 files changed, 266 insertions(+), 25 deletions(-) create mode 100644 enterprise/app/services/captain/tools/copilot/create_linear_tickets_on_ui_service.rb create mode 100644 enterprise/app/services/captain/tools/copilot/search_linear_service.rb diff --git a/app/javascript/dashboard/components-next/copilot/Copilot.vue b/app/javascript/dashboard/components-next/copilot/Copilot.vue index b5a0fb8a7..eb5231b84 100644 --- a/app/javascript/dashboard/components-next/copilot/Copilot.vue +++ b/app/javascript/dashboard/components-next/copilot/Copilot.vue @@ -27,7 +27,7 @@ const props = defineProps({ }, conversationInboxType: { type: String, - required: true, + default: '', }, assistants: { type: Array, @@ -102,7 +102,7 @@ watch( ref="chatContainer" class="flex-1 flex px-4 py-4 overflow-y-auto items-start" > -
+