From 47d8fcb817a4bc7091c98cd47a0e62887117f714 Mon Sep 17 00:00:00 2001 From: Kevin Ding Date: Wed, 8 Jan 2025 14:15:56 -0500 Subject: [PATCH] fix: remove the incorrect accept and reject buttons while hovering over the generated file --- .../bugfix-acc81345-73b6-4f71-856e-76d8e0d451de.json | 4 ++++ .../amazonq/mynah-ui/src/mynah-ui/ui/apps/docChatConnector.ts | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 .changes/next-release/bugfix-acc81345-73b6-4f71-856e-76d8e0d451de.json diff --git a/.changes/next-release/bugfix-acc81345-73b6-4f71-856e-76d8e0d451de.json b/.changes/next-release/bugfix-acc81345-73b6-4f71-856e-76d8e0d451de.json new file mode 100644 index 00000000000..30e3d2d767f --- /dev/null +++ b/.changes/next-release/bugfix-acc81345-73b6-4f71-856e-76d8e0d451de.json @@ -0,0 +1,4 @@ +{ + "type" : "bugfix", + "description" : "Fix incorrect accept and reject buttons shows up while hovering over the generated file" +} \ No newline at end of file diff --git a/plugins/amazonq/mynah-ui/src/mynah-ui/ui/apps/docChatConnector.ts b/plugins/amazonq/mynah-ui/src/mynah-ui/ui/apps/docChatConnector.ts index f0ec312fe59..e92421213d6 100644 --- a/plugins/amazonq/mynah-ui/src/mynah-ui/ui/apps/docChatConnector.ts +++ b/plugins/amazonq/mynah-ui/src/mynah-ui/ui/apps/docChatConnector.ts @@ -196,7 +196,6 @@ export class Connector { private processCodeResultMessage = async (messageData: any): Promise => { if (this.onChatAnswerReceived !== undefined) { - const actions = getActions([...messageData.filePaths, ...messageData.deletedFiles]) const answer: ChatItem = { type: ChatItemType.ANSWER, relatedContent: undefined, @@ -209,8 +208,7 @@ export class Connector { fileTreeTitle: 'Documents ready', rootFolderTitle: 'Generated documentation', filePaths: (messageData.filePaths as DiffTreeFileInfo[]).map(path => path.zipFilePath), - deletedFiles: (messageData.deletedFiles as DiffTreeFileInfo[]).map(path => path.zipFilePath), - actions, + deletedFiles: (messageData.deletedFiles as DiffTreeFileInfo[]).map(path => path.zipFilePath) }, body: '', }