Skip to content

Commit 0224426

Browse files
authored
feat(amazonq): enable export chat feature #6962
## Problem Users don't have a way to export an Amazon Q chat ## Solution Add an export icon to chat tab bar and, allow users to export conversations from chat history. Users can choose Markdown or HTML format
1 parent 8c88392 commit 0224426

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "Amazon Q chat: Click export icon to save chat transcript in Markdown or HTML"
4+
}

packages/core/src/amazonq/webview/ui/main.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -973,12 +973,11 @@ export const createMynahUI = (
973973
icon: MynahIcons.HISTORY,
974974
description: 'View chat history',
975975
},
976-
/* Temporarily hide export chat button from tab bar
977976
{
978977
id: 'export_chat',
979978
icon: MynahIcons.EXTERNAL,
980979
description: 'Export chat',
981-
}, */
980+
},
982981
],
983982
},
984983
})

packages/core/src/codewhispererChat/controllers/chat/messenger/messenger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export class Messenger {
9090
followUpsHeader: undefined,
9191
relatedSuggestions: undefined,
9292
triggerID,
93-
messageID: '',
93+
messageID: triggerID,
9494
userIntent: undefined,
9595
codeBlockLanguage: undefined,
9696
contextList: mergedRelevantDocuments,

packages/core/src/shared/db/chatDb/util.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,12 +251,11 @@ export function groupTabsByDate(tabs: Tab[]): DetailedListItemGroup[] {
251251
}
252252

253253
const getConversationActions = (historyId: string): ChatItemButton[] => [
254-
/* Temporarily hide export chat button from tab bar
255254
{
256255
text: 'Export',
257256
icon: 'external' as MynahIconsType,
258257
id: historyId,
259-
}, */
258+
},
260259
{
261260
text: 'Delete',
262261
icon: 'trash' as MynahIconsType,

0 commit comments

Comments
 (0)