Skip to content

Commit a19f358

Browse files
authored
feat(amazonq): Copy changes for falcon features (#6703)
Problem: - We need to update copy text Solution: - Move hardcoded strings to language file - Update titles/descriptions of new Context menu options - Update welcome message to include new context menu options - Update mynah-ui to latest - add changelog for all falcon features --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent a687b2a commit a19f358

File tree

8 files changed

+30
-22
lines changed

8 files changed

+30
-22
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "Amazon Q chat: Use `@` to add folders, files, and saved prompts as context"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "Amazon Q chat: Show list of files sent as context in chat response"
4+
}

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@
510510
"@aws-sdk/property-provider": "<3.696.0",
511511
"@aws-sdk/smithy-client": "<3.696.0",
512512
"@aws-sdk/util-arn-parser": "<3.696.0",
513-
"@aws/mynah-ui": "^4.23.0-beta.14",
513+
"@aws/mynah-ui": "^4.23.0",
514514
"@gerhobbelt/gitignore-parser": "^0.2.0-9",
515515
"@iarna/toml": "^2.2.5",
516516
"@smithy/middleware-retry": "^3.0.0",

packages/core/package.nls.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,12 @@
309309
"AWS.codewhisperer.customization.notification.new_customizations.learn_more": "Learn More",
310310
"AWS.amazonq.title": "Amazon Q",
311311
"AWS.amazonq.chat": "Chat",
312+
"AWS.amazonq.context.folders.title": "Folders",
313+
"AWS.amazonq.context.folders.description": "Add all files in a folder to context",
314+
"AWS.amazonq.context.files.title": "Files",
315+
"AWS.amazonq.context.files.description": "Add a file to context",
316+
"AWS.amazonq.context.prompts.title": "Prompts",
317+
"AWS.amazonq.context.prompts.description": "Add a saved prompt to context",
312318
"AWS.amazonq.savedPrompts.title": "Prompt name",
313319
"AWS.amazonq.savedPrompts.create": "Create",
314320
"AWS.amazonq.savedPrompts.action": "Create a new prompt",

packages/core/src/amazonq/webview/ui/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ export const createMynahUI = (
375375
fileTreeTitle: '',
376376
filePaths: item.contextList.map((file) => file.relativeFilePath),
377377
rootFolderTitle: 'Context',
378+
flatList: true,
378379
collapsed: true,
379380
hideFileCount: true,
380381
details: Object.fromEntries(

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const commonTabData: TabTypeData = {
2828
placeholder: 'Ask a question. Use @ to add context, / for quick actions',
2929
welcome: `Hi, I'm Amazon Q. I can answer your software development questions.
3030
Ask me to explain, debug, or optimize your code.
31-
You can enter \`/\` to see a list of quick actions. Add @workspace to the beginning of your message to include your entire workspace as context.`,
31+
You can enter \`/\` to see a list of quick actions. Use \`@\` to add saved prompts, files, folders, or your entire workspace as context.`,
3232
contextCommands: [workspaceCommand],
3333
}
3434

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

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -424,43 +424,36 @@ export class ChatController {
424424
commands: [
425425
...workspaceCommand.commands,
426426
{
427-
command: 'folder',
427+
command: i18n('AWS.amazonq.context.folders.title'),
428428
children: [
429429
{
430-
groupName: 'Folders',
430+
groupName: i18n('AWS.amazonq.context.folders.title'),
431431
commands: [],
432432
},
433433
],
434-
description: 'All files within a specific folder',
434+
description: i18n('AWS.amazonq.context.folders.description'),
435435
icon: 'folder' as MynahIconsType,
436436
},
437437
{
438-
command: 'file',
438+
command: i18n('AWS.amazonq.context.files.title'),
439439
children: [
440440
{
441-
groupName: 'Files',
441+
groupName: i18n('AWS.amazonq.context.files.title'),
442442
commands: [],
443443
},
444444
],
445-
description: 'File',
445+
description: i18n('AWS.amazonq.context.files.description'),
446446
icon: 'file' as MynahIconsType,
447447
},
448448
{
449-
command: 'prompts',
449+
command: i18n('AWS.amazonq.context.prompts.title'),
450450
children: [
451451
{
452-
groupName: 'Prompts',
453-
actions: [
454-
{
455-
id: createSavedPromptCommandId,
456-
icon: 'plus',
457-
description: i18n('AWS.amazonq.savedPrompts.action'),
458-
},
459-
],
452+
groupName: i18n('AWS.amazonq.context.prompts.title'),
460453
commands: [],
461454
},
462455
],
463-
description: 'Prompts',
456+
description: i18n('AWS.amazonq.context.prompts.description'),
464457
icon: 'magic' as MynahIconsType,
465458
},
466459
],

0 commit comments

Comments
 (0)