Skip to content

Commit e90eae8

Browse files
hayemaxijustinmk3
andauthored
fix(feedback): rename last CodeWhisperer strings to Amazon Q (#4967)
* fix(feedback): rename last CodeWhisperer strings to Amazon Q * Update packages/core/src/feedback/vue/submitFeedback.vue Co-authored-by: Justin M. Keyes <[email protected]> --------- Co-authored-by: Justin M. Keyes <[email protected]>
1 parent 0f24dcc commit e90eae8

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

packages/core/src/codewhisperer/ui/codeWhispererNodes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export function createFeedbackNode(): DataQuickPickItem<'sendFeedback'> {
172172
data: 'sendFeedback',
173173
label: 'Send Feedback',
174174
iconPath: getIcon('vscode-thumbsup'),
175-
onClick: () => submitFeedback(placeholder, 'CodeWhisperer'),
175+
onClick: () => submitFeedback(placeholder, 'Amazon Q'),
176176
} as DataQuickPickItem<'sendFeedback'>
177177
}
178178

packages/core/src/codewhisperer/vue/backend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export class CodeWhispererWebview extends VueWebview {
9393

9494
//This function opens the Feedback CodeWhisperer page in the webview
9595
async openFeedBack(): Promise<void> {
96-
return submitFeedback(placeholder, 'CodeWhisperer') // TODO: update this?
96+
return submitFeedback(placeholder, 'Amazon Q')
9797
}
9898

9999
//------Telemetry------

packages/core/src/feedback/vue/submitFeedback.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ export class FeedbackWebview extends VueWebview {
6767
}
6868
}
6969

70-
// TODO: remove CodeWhisperer from here?
71-
type FeedbackId = 'AWS Toolkit' | 'CodeWhisperer' | 'Amazon Q' | 'Application Composer'
70+
type FeedbackId = 'AWS Toolkit' | 'Amazon Q' | 'Application Composer'
7271

7372
let _submitFeedback: RegisteredCommand<(_: VsCodeCommandArg, id: FeedbackId) => Promise<void>> | undefined
7473
export function submitFeedback(_: VsCodeCommandArg, id: FeedbackId) {

packages/core/src/feedback/vue/submitFeedback.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ export default defineComponent({
8181
this.error = ''
8282
this.isSubmitting = true
8383
console.log('Submitting feedback...')
84-
// identifier to help us (internally) know that feedback came from either CodeWhisperer or AWS Toolkit
84+
// identifier to help us (internally) know that feedback came from either Amazon Q or AWS Toolkit
85+
// TODO: rework this and align with JetBrains?
8586
const resp = await client.submit({
86-
comment:
87-
this.feedbackName === 'CodeWhisperer' ? 'CodeWhisperer onboarding: ' + this.comment : this.comment,
87+
comment: this.feedbackName ? `${this.feedbackName} ${this.comment}` : this.comment,
8888
sentiment: this.sentiment,
8989
})
9090

packages/core/src/test/feedback/commands/submitFeedbackListener.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('submitFeedbackListener', function () {
2121
})
2222

2323
const testCases = [
24-
{ productName: 'CodeWhisperer', expectedError: 'Expected failure' },
24+
{ productName: 'Amazon Q', expectedError: 'Expected failure' },
2525
{ productName: 'AWS Toolkit', expectedError: 'Expected failure' },
2626
]
2727
testCases.forEach(({ productName, expectedError }) => {

0 commit comments

Comments
 (0)