Skip to content

Commit e72268e

Browse files
committed
lined up the UX for Undo and user reject case
1 parent af43f1b commit e72268e

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

packages/core/src/amazonq/webview/ui/apps/cwChatConnector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ export class Connector extends BaseConnector {
394394
if (answer.header) {
395395
answer.header.status = {
396396
icon: 'cancel' as MynahIconsType,
397-
text: 'Rejected',
397+
text: 'Change discarded',
398398
status: 'error',
399399
}
400400
answer.header.buttons = []

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

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -781,25 +781,12 @@ export class Messenger {
781781
{
782782
id: 'reject-code-diff',
783783
status: 'clear',
784-
icon: 'cancel' as MynahIconsType,
784+
icon: 'revert' as MynahIconsType,
785+
text: 'Undo',
785786
},
786787
]
787-
const status: {
788-
icon?: MynahIcons | MynahIconsType
789-
status?: {
790-
status?: Status
791-
icon?: MynahIcons | MynahIconsType
792-
text?: string
793-
}
794-
} = {
795-
status: {
796-
text: 'Accepted',
797-
status: 'success',
798-
},
799-
}
800788
header = {
801789
buttons,
802-
...status,
803790
fileList,
804791
}
805792
} else if (toolUse?.name === ToolType.ListDirectory || toolUse?.name === ToolType.FsRead) {

0 commit comments

Comments
 (0)