Skip to content

Commit 496e076

Browse files
dhasani23David Hasani
andauthored
fix(amazonq): emit metric (#7584)
## Problem Modify text in some places, and modify the manifest to include the `IDE` field. ## Solution Above --- - 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. Co-authored-by: David Hasani <[email protected]>
1 parent 8d1020f commit 496e076

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ To learn more, visit the [User Guide](${userGuideURL}).`,
6464
title: 'Q - Code Transformation',
6565
placeholder: 'Open a new tab to chat with Q',
6666
welcome:
67-
'Welcome to Code Transformation! You can also run transformations from the command line. To install the tool, see the [documentation](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/run-CLI-transformations.html).',
67+
'Welcome to Code Transformation! **You can also run transformations from the command line. To install the tool, see the [documentation](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/run-CLI-transformations.html).**',
6868
},
6969
review: {
7070
title: 'Q - Review',

packages/core/src/codewhisperer/models/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ If you'd like to update and test your code with fewer changes at a time, I can d
515515

516516
export const uploadingCodeStepMessage = 'Upload your code'
517517

518-
export const buildCodeStepMessage = 'Build uploaded code in secure build environment'
518+
export const buildCodeStepMessage = 'Analyze uploaded code in secure environment'
519519

520520
export const generatePlanStepMessage = 'Generate transformation plan'
521521

@@ -734,7 +734,7 @@ export const cleanTestCompileErrorNotification = `Amazon Q could not run \`mvn c
734734
export const enterJavaHomeChatMessage = 'Enter the path to JDK'
735735

736736
export const projectPromptChatMessage =
737-
"I can upgrade your Java project. To start the transformation, I need some information from you. Choose the project you want to upgrade and the target code version to upgrade to. Then, choose Confirm.\n\nAfter successfully transforming to Java 17 or 21, an additional transformation is required to upgrade your libraries and dependencies. Choose the same source code version and target code version (for example, 17 to 17) to do this.\n\nI will perform the transformation based on your project's requests, descriptions, and content. To maintain security, avoid including external, unvetted artifacts in your project repository prior to starting the transformation and always validate transformed code for both functionality and security."
737+
"I can upgrade your Java project. To start the transformation, I need some information from you. Choose the project you want to upgrade and the target code version to upgrade to. Then, choose Confirm.\n\nAfter successfully transforming to Java 17 or 21, an additional transformation is required to upgrade your libraries and dependencies. Choose the same source code version and target code version (for example, 17 to 17) to do this.\n\nI will perform the transformation based on your project's requests, descriptions, and content. To maintain security, avoid including external, unvetted artifacts in your project repository prior to starting the transformation and always validate transformed code for both functionality and security. Do not turn off or close your machine during the transformation because a stable network connection is required."
738738

739739
export const windowsJavaHomeHelpChatMessage =
740740
'To find the JDK path, run the following commands in a new terminal: `cd "C:/Program Files/Java"` and then `dir`. If you see your JDK version, run `cd <version>` and then `cd` to show the path.'

packages/core/src/codewhisperer/models/model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ export class ZipManifest {
680680
dependenciesRoot: string = 'dependencies/'
681681
version: string = '1.0'
682682
hilCapabilities: string[] = ['HIL_1pDependency_VersionUpgrade']
683-
transformCapabilities: string[] = ['EXPLAINABILITY_V1', 'SELECTIVE_TRANSFORMATION_V2', 'CLIENT_SIDE_BUILD']
683+
transformCapabilities: string[] = ['EXPLAINABILITY_V1', 'SELECTIVE_TRANSFORMATION_V2', 'CLIENT_SIDE_BUILD', 'IDE']
684684
noInteractiveMode: boolean = true
685685
dependencyUpgradeConfigFile?: string = undefined
686686
compilationsJsonFile: string = 'compilations.json'

0 commit comments

Comments
 (0)