From 09772be2e2685399efa34627945816360a7c8ded Mon Sep 17 00:00:00 2001 From: Avi Alpert Date: Thu, 9 Jan 2025 12:54:00 -0500 Subject: [PATCH] fix(amazonq): update messaging for /doc --- ...Bug Fix-21e0fd75-299f-4f16-8fd6-ef6211ddd06b.json | 4 ++++ packages/core/package.nls.json | 7 +++++-- packages/core/src/amazonqDoc/constants.ts | 12 ++++++------ .../src/amazonqDoc/controllers/chat/controller.ts | 8 +++----- 4 files changed, 18 insertions(+), 13 deletions(-) create mode 100644 packages/amazonq/.changes/next-release/Bug Fix-21e0fd75-299f-4f16-8fd6-ef6211ddd06b.json diff --git a/packages/amazonq/.changes/next-release/Bug Fix-21e0fd75-299f-4f16-8fd6-ef6211ddd06b.json b/packages/amazonq/.changes/next-release/Bug Fix-21e0fd75-299f-4f16-8fd6-ef6211ddd06b.json new file mode 100644 index 00000000000..db05e633033 --- /dev/null +++ b/packages/amazonq/.changes/next-release/Bug Fix-21e0fd75-299f-4f16-8fd6-ef6211ddd06b.json @@ -0,0 +1,4 @@ +{ + "type": "Bug Fix", + "description": "Amazon Q /doc: Improve button text phrasing" +} diff --git a/packages/core/package.nls.json b/packages/core/package.nls.json index cab4f52dcee..024a2a3cc9f 100644 --- a/packages/core/package.nls.json +++ b/packages/core/package.nls.json @@ -373,8 +373,8 @@ "AWS.amazonq.doc.answer.scanning": "Scanning source files", "AWS.amazonq.doc.answer.summarizing": "Summarizing source files", "AWS.amazonq.doc.answer.generating": "Generating documentation", - "AWS.amazonq.doc.answer.creating": "Okay, I'm creating a README for your project. This may take a few minutes.", - "AWS.amazonq.doc.answer.updating": "Okay, I'm updating the README to reflect your code changes. This may take a few minutes.", + "AWS.amazonq.doc.answer.creating": "Okay, I'm creating a README for your project. This might take a few minutes.", + "AWS.amazonq.doc.answer.updating": "Okay, I'm updating the README. This might take a few minutes.", "AWS.amazonq.doc.answer.chooseFolder": "Choose a folder to continue.", "AWS.amazonq.doc.error.noFolderSelected": "It looks like you didn't choose a folder. Choose a folder to continue.", "AWS.amazonq.doc.error.contentLengthError": "Your workspace is too large for me to review. Your workspace must be within the quota, even if you choose a smaller folder. For more information on quotas, see the Amazon Q Developer documentation.", @@ -387,6 +387,9 @@ "AWS.amazonq.doc.error.promptRefusal": "I'm sorry, I can't generate documentation for this folder. Please make sure your message and code files comply with the Please make sure your message and code files comply with the AWS Responsible AI Policy.", "AWS.amazonq.doc.placeholder.editReadme": "Describe documentation changes", "AWS.amazonq.doc.pillText.closeSession": "End session", + "AWS.amazonq.doc.pillText.newTask": "Start a new documentation task", + "AWS.amazonq.doc.pillText.update": "Update README to reflect code", + "AWS.amazonq.doc.pillText.makeChange": "Make a specific change", "AWS.amazonq.inline.invokeChat": "Inline chat", "AWS.toolkit.lambda.walkthrough.quickpickTitle": "Application Builder Walkthrough", "AWS.toolkit.lambda.walkthrough.title": "Get started building your application", diff --git a/packages/core/src/amazonqDoc/constants.ts b/packages/core/src/amazonqDoc/constants.ts index ab872bd93e5..5d1d938c940 100644 --- a/packages/core/src/amazonqDoc/constants.ts +++ b/packages/core/src/amazonqDoc/constants.ts @@ -93,15 +93,15 @@ export const FolderSelectorFollowUps = [ ] export const SynchronizeDocumentation = { - pillText: 'Update README with recent code changes', - prompt: 'Update README with recent code changes', - type: 'SynchronizeDocumentation', + pillText: i18n('AWS.amazonq.doc.pillText.update'), + prompt: i18n('AWS.amazonq.doc.pillText.update'), + type: FollowUpTypes.SynchronizeDocumentation, } export const EditDocumentation = { - pillText: 'Make a specific change', - prompt: 'Make a specific change', - type: 'EditDocumentation', + pillText: i18n('AWS.amazonq.doc.pillText.makeChange'), + prompt: i18n('AWS.amazonq.doc.pillText.makeChange'), + type: FollowUpTypes.EditDocumentation, } export enum Mode { diff --git a/packages/core/src/amazonqDoc/controllers/chat/controller.ts b/packages/core/src/amazonqDoc/controllers/chat/controller.ts index 40fcf037181..da1103babf9 100644 --- a/packages/core/src/amazonqDoc/controllers/chat/controller.ts +++ b/packages/core/src/amazonqDoc/controllers/chat/controller.ts @@ -307,7 +307,7 @@ export class DocController { message: 'Your changes have been discarded.', followUps: [ { - pillText: i18n('AWS.amazonq.featureDev.pillText.newTask'), + pillText: i18n('AWS.amazonq.doc.pillText.newTask'), type: FollowUpTypes.NewTask, status: 'info', }, @@ -706,14 +706,12 @@ export class DocController { tabID: message.tabID, followUps: [ { - pillText: 'Start a new documentation task', - prompt: 'Start a new documentation task', + pillText: i18n('AWS.amazonq.doc.pillText.newTask'), type: FollowUpTypes.NewTask, status: 'info', }, { - pillText: 'End session', - prompt: 'End session', + pillText: i18n('AWS.amazonq.doc.pillText.closeSession'), type: FollowUpTypes.CloseSession, status: 'info', },