From 0eaab0a9ae846961e3a9d72ba4cf5dcbb6428138 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Thu, 22 Jan 2026 18:00:19 +0530 Subject: [PATCH] feat(ux): accept and send action --- .../WootWriter/CopilotReplyBottomPanel.vue | 108 +++++++++++++++--- .../widgets/conversation/ReplyBox.vue | 7 ++ .../dashboard/constants/localStorage.js | 1 + .../dashboard/i18n/locale/en/general.json | 2 + 4 files changed, 105 insertions(+), 13 deletions(-) diff --git a/app/javascript/dashboard/components/widgets/WootWriter/CopilotReplyBottomPanel.vue b/app/javascript/dashboard/components/widgets/WootWriter/CopilotReplyBottomPanel.vue index e23cdbf7e..2da99f41a 100644 --- a/app/javascript/dashboard/components/widgets/WootWriter/CopilotReplyBottomPanel.vue +++ b/app/javascript/dashboard/components/widgets/WootWriter/CopilotReplyBottomPanel.vue @@ -1,8 +1,14 @@ diff --git a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue index 7467c2fa8..21b6062e2 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue @@ -1121,6 +1121,12 @@ export default { onSubmitCopilotReply() { this.message = this.copilot.accept(); }, + onAcceptAndSendCopilotReply() { + this.message = this.copilot.accept(); + this.$nextTick(() => { + this.onSendReply(); + }); + }, }, }; @@ -1271,6 +1277,7 @@ export default { key="copilot-bottom-panel" :is-generating-content="copilot.isButtonDisabled.value" @submit="onSubmitCopilotReply" + @accept-and-send="onAcceptAndSendCopilotReply" @cancel="copilot.toggleEditor" />