Skip to content

Commit ab7cec4

Browse files
authored
feat(feature dev): update more customer facing texts and doc link (#5627)
## Problem We observed a couple customer copy papercuts related to /dev ## Solution - Updated customer facing text copies in /dev - Changed documentation link - Removed a close session messaging when clicking for new task
1 parent d86c603 commit ab7cec4

File tree

5 files changed

+21
-18
lines changed

5 files changed

+21
-18
lines changed

packages/core/package.nls.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -289,29 +289,29 @@
289289
"AWS.amazonq.featureDev.pillText.modifyDefaultSourceFolder": "Choose another folder in your workspace",
290290
"AWS.amazonq.featureDev.pillText.newTask": "Yes, I have another task",
291291
"AWS.amazonq.featureDev.pillText.generateCode": "Generate code",
292-
"AWS.amazonq.featureDev.pillText.uploadingCode": "Uploading code ...",
292+
"AWS.amazonq.featureDev.pillText.uploadingCode": "Uploading code...",
293293
"AWS.amazonq.featureDev.pillText.contextGatheringCompleted": "Gathering context...",
294-
"AWS.amazonq.featureDev.pillText.generatingCode": "Generating code ...",
294+
"AWS.amazonq.featureDev.pillText.generatingCode": "Generating code...",
295295
"AWS.amazonq.featureDev.pillText.requestingChanges": "Requesting changes ...",
296-
"AWS.amazonq.featureDev.pillText.insertCode": "Insert code",
296+
"AWS.amazonq.featureDev.pillText.insertCode": "Accept code",
297297
"AWS.amazonq.featureDev.pillText.sendFeedback": "Send feedback",
298298
"AWS.amazonq.featureDev.pillText.selectFiles": "Select files for context",
299299
"AWS.amazonq.featureDev.pillText.retry": "Retry",
300300
"AWS.amazonq.featureDev.pillText.writeNewPrompt": "Write a new prompt",
301301
"AWS.amazonq.featureDev.pillText.reauthenticate": "Follow instructions to re-authenticate ...",
302302
"AWS.amazonq.featureDev.pillText.closeSession": "No, thanks",
303-
"AWS.amazonq.featureDev.pillText.selectOption": "Select an option above to proceed",
303+
"AWS.amazonq.featureDev.pillText.selectOption": "Choose an option to proceed",
304304
"AWS.amazonq.featureDev.pillText.unableGenerateChanges": "Unable to generate any file changes",
305-
"AWS.amazonq.featureDev.pillText.provideFeedback": "Provide feedback to regenerate",
305+
"AWS.amazonq.featureDev.pillText.provideFeedback": "Provide feedback & regenerate",
306306
"AWS.amazonq.featureDev.answer.generateSuggestion": "Would you like to generate a suggestion for this? You’ll review a file diff before inserting into your project.",
307307
"AWS.amazonq.featureDev.answer.qGeneratedCode": "The Amazon Q Developer Agent for software development has generated code for you to review",
308308
"AWS.amazonq.featureDev.answer.howCodeCanBeImproved": "How can I improve the code for your use case?",
309309
"AWS.amazonq.featureDev.answer.updateCode": "Okay, I updated your code files. Would you like to work on another task?",
310310
"AWS.amazonq.featureDev.answer.sessionClosed": "Okay, I've ended this chat session. You can open a new tab to chat or start another workflow.",
311311
"AWS.amazonq.featureDev.answer.newTaskChanges": "What new task would you like to work on?",
312312
"AWS.amazonq.featureDev.placeholder.chatInputDisabled": "Chat input is disabled",
313-
"AWS.amazonq.featureDev.placeholder.additionalImprovements": "Provide input on additional improvements",
314-
"AWS.amazonq.featureDev.placeholder.feedback": "Feedback, comments ...",
315-
"AWS.amazonq.featureDev.placeholder.describe": "Describe your task or issue in as much detail as possible",
313+
"AWS.amazonq.featureDev.placeholder.additionalImprovements": "Choose an option to proceed",
314+
"AWS.amazonq.featureDev.placeholder.feedback": "Provide feedback or comments",
315+
"AWS.amazonq.featureDev.placeholder.describe": "Describe your task or issue in detail",
316316
"AWS.amazonq.featureDev.placeholder.sessionClosed": "Open a new chat tab to continue"
317317
}

packages/core/src/amazonq/webview/ui/tabs/constants.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ export const TabTypeDataMap: Record<TabType, TabTypeData> = {
2424
featuredev: {
2525
title: 'Q - Dev',
2626
placeholder: 'Describe your task or issue in as much detail as possible',
27-
welcome: `Hi, I'm the Amazon Q Developer Agent for software development.
28-
29-
I can generate code to implement new functionality across your workspace. To get started, describe the task you're trying to accomplish, and I'll generate code. If you want to make changes, you can provide feedback and I'll regenerate code.
27+
welcome: `Hi! I'm the Amazon Q Developer Agent for software development.
28+
29+
I can generate code to implement new functionality across your workspace. To get started, describe the task you're trying to accomplish, and I'll generate code to implement it. If you want to make changes to the code, you can tell me what to improve and I'll generate new code based on your feedback.
3030
3131
What would you like to work on?`,
3232
},

packages/core/src/amazonq/webview/ui/texts/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ export const uiComponentsTexts = {
2626
spinnerText: 'Generating your answer...',
2727
}
2828

29-
export const userGuideURL = 'https://docs.aws.amazon.com/amazonq/latest/aws-builder-use-ug/getting-started.html'
29+
export const userGuideURL = 'https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/software-dev.html'
3030
export const manageAccessGuideURL =
3131
'https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/security_iam_manage-access-with-policies.html'

packages/core/src/amazonqFeatureDev/controllers/chat/controller.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,8 @@ export class FeatureDevController {
397397
tabID: tabID,
398398
message:
399399
remainingIterations === 0
400-
? 'Would you like me to add this code to your files?'
401-
: `Would you like me to add this code to your project, or provide feedback for new code? You have ${remainingIterations} out of ${totalIterations} code iterations remaining.`,
400+
? 'Would you like me to add this code to your project?'
401+
: `Would you like me to add this code to your project, or provide feedback for new code? You have ${remainingIterations} out of ${totalIterations} code generations left.`,
402402
})
403403
}
404404

@@ -474,8 +474,6 @@ export class FeatureDevController {
474474
],
475475
})
476476

477-
// Ensure that chat input is enabled so that they can provide additional iterations if they choose
478-
this.messenger.sendChatInputEnabled(message.tabID, true)
479477
this.messenger.sendUpdatePlaceholder(
480478
message.tabID,
481479
i18n('AWS.amazonq.featureDev.placeholder.additionalImprovements')
@@ -749,7 +747,12 @@ export class FeatureDevController {
749747

750748
private async newTask(message: any) {
751749
// Old session for the tab is ending, delete it so we can create a new one for the message id
752-
await this.closeSession(message)
750+
const session = await this.sessionStorage.getSession(message.tabID)
751+
telemetry.amazonq_endChat.emit({
752+
amazonqConversationId: session.conversationId,
753+
amazonqEndOfTheConversationLatency: performance.now() - session.telemetry.sessionStartTime,
754+
result: 'Succeeded',
755+
})
753756
this.sessionStorage.deleteSession(message.tabID)
754757

755758
// Re-run the opening flow, where we check auth + create a session

packages/core/src/amazonqFeatureDev/userFacingText.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You can use /dev to:
1414
- Fix a bug in your project
1515
- Generate a README for a file, folder, or project
1616
17-
To learn more, visit the _[Amazon Q User Guide](${userGuideURL})_.
17+
To learn more, visit the _[Amazon Q Developer User Guide](${userGuideURL})_.
1818
`
1919

2020
export const uploadCodeError = `I'm sorry, I couldn’t upload your workspace artifacts to Amazon S3 to help you with this task. You might need to allow access to the S3 bucket. For more information, see the [Amazon Q documentation](${manageAccessGuideURL}) or contact your network or organization administrator.`

0 commit comments

Comments
 (0)