Skip to content

Commit 072eecd

Browse files
authored
Merge pull request #6327 from avi-alpert/aalpert/text-changes
fix(amazonq): update messaging for /doc
2 parents 02f6d0b + 09772be commit 072eecd

File tree

4 files changed

+18
-13
lines changed

4 files changed

+18
-13
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Bug Fix",
3+
"description": "Amazon Q /doc: Improve button text phrasing"
4+
}

packages/core/package.nls.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,8 @@
373373
"AWS.amazonq.doc.answer.scanning": "Scanning source files",
374374
"AWS.amazonq.doc.answer.summarizing": "Summarizing source files",
375375
"AWS.amazonq.doc.answer.generating": "Generating documentation",
376-
"AWS.amazonq.doc.answer.creating": "Okay, I'm creating a README for your project. This may take a few minutes.",
377-
"AWS.amazonq.doc.answer.updating": "Okay, I'm updating the README to reflect your code changes. This may take a few minutes.",
376+
"AWS.amazonq.doc.answer.creating": "Okay, I'm creating a README for your project. This might take a few minutes.",
377+
"AWS.amazonq.doc.answer.updating": "Okay, I'm updating the README. This might take a few minutes.",
378378
"AWS.amazonq.doc.answer.chooseFolder": "Choose a folder to continue.",
379379
"AWS.amazonq.doc.error.noFolderSelected": "It looks like you didn't choose a folder. Choose a folder to continue.",
380380
"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 <a href=\"https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/doc-generation.html#quotas\" target=\"_blank\">Amazon Q Developer documentation.</a>",
@@ -387,6 +387,9 @@
387387
"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 <a href=\"https://aws.amazon.com/machine-learning/responsible-ai/policy/\">AWS Responsible AI Policy.</a>",
388388
"AWS.amazonq.doc.placeholder.editReadme": "Describe documentation changes",
389389
"AWS.amazonq.doc.pillText.closeSession": "End session",
390+
"AWS.amazonq.doc.pillText.newTask": "Start a new documentation task",
391+
"AWS.amazonq.doc.pillText.update": "Update README to reflect code",
392+
"AWS.amazonq.doc.pillText.makeChange": "Make a specific change",
390393
"AWS.amazonq.inline.invokeChat": "Inline chat",
391394
"AWS.toolkit.lambda.walkthrough.quickpickTitle": "Application Builder Walkthrough",
392395
"AWS.toolkit.lambda.walkthrough.title": "Get started building your application",

packages/core/src/amazonqDoc/constants.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ export const FolderSelectorFollowUps = [
9393
]
9494

9595
export const SynchronizeDocumentation = {
96-
pillText: 'Update README with recent code changes',
97-
prompt: 'Update README with recent code changes',
98-
type: 'SynchronizeDocumentation',
96+
pillText: i18n('AWS.amazonq.doc.pillText.update'),
97+
prompt: i18n('AWS.amazonq.doc.pillText.update'),
98+
type: FollowUpTypes.SynchronizeDocumentation,
9999
}
100100

101101
export const EditDocumentation = {
102-
pillText: 'Make a specific change',
103-
prompt: 'Make a specific change',
104-
type: 'EditDocumentation',
102+
pillText: i18n('AWS.amazonq.doc.pillText.makeChange'),
103+
prompt: i18n('AWS.amazonq.doc.pillText.makeChange'),
104+
type: FollowUpTypes.EditDocumentation,
105105
}
106106

107107
export enum Mode {

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ export class DocController {
307307
message: 'Your changes have been discarded.',
308308
followUps: [
309309
{
310-
pillText: i18n('AWS.amazonq.featureDev.pillText.newTask'),
310+
pillText: i18n('AWS.amazonq.doc.pillText.newTask'),
311311
type: FollowUpTypes.NewTask,
312312
status: 'info',
313313
},
@@ -706,14 +706,12 @@ export class DocController {
706706
tabID: message.tabID,
707707
followUps: [
708708
{
709-
pillText: 'Start a new documentation task',
710-
prompt: 'Start a new documentation task',
709+
pillText: i18n('AWS.amazonq.doc.pillText.newTask'),
711710
type: FollowUpTypes.NewTask,
712711
status: 'info',
713712
},
714713
{
715-
pillText: 'End session',
716-
prompt: 'End session',
714+
pillText: i18n('AWS.amazonq.doc.pillText.closeSession'),
717715
type: FollowUpTypes.CloseSession,
718716
status: 'info',
719717
},

0 commit comments

Comments
 (0)