|
3 | 3 | * SPDX-License-Identifier: Apache-2.0 |
4 | 4 | */ |
5 | 5 |
|
| 6 | +import { getTransformationActionString } from '../../amazonqGumby/models/constants' |
| 7 | + |
6 | 8 | /** |
7 | 9 | * Automated and manual trigger |
8 | 10 | */ |
@@ -450,6 +452,8 @@ export const codeTransformLocThreshold = 100000 |
450 | 452 | export const jobStartedChatMessage = |
451 | 453 | 'I am starting to transform your code. It can take 10 to 30 minutes to upgrade your code, depending on the size of your project. To monitor progress, go to the Transformation Hub. If I run into any issues, I might pause the transformation to get input from you on how to proceed.' |
452 | 454 |
|
| 455 | +export const chooseTransformationObjective = 'Enter "language upgrade" or "sql conversion"' |
| 456 | + |
453 | 457 | export const uploadingCodeStepMessage = 'Upload your code' |
454 | 458 |
|
455 | 459 | export const buildCodeStepMessage = 'Build uploaded code in secure build environment' |
@@ -490,8 +494,7 @@ export const startTransformationButtonText = 'Start a new transformation' |
490 | 494 |
|
491 | 495 | export const stopTransformationButtonText = 'Stop transformation' |
492 | 496 |
|
493 | | -export const checkingForProjectsChatMessage = |
494 | | - 'I am checking for open projects that are eligible for Code Transformation.' |
| 497 | +export const checkingForProjectsChatMessage = 'Checking for eligible projects...' |
495 | 498 |
|
496 | 499 | export const buildStartedChatMessage = |
497 | 500 | 'I am building your project. This can take up to 10 minutes, depending on the size of your project.' |
@@ -578,17 +581,13 @@ export const jobCancelledChatMessage = |
578 | 581 |
|
579 | 582 | export const jobCancelledNotification = 'You cancelled the transformation.' |
580 | 583 |
|
581 | | -export const jobCompletedChatMessage = |
582 | | - 'I upgraded your code. You can review the diff to see my proposed changes and accept or reject them. The transformation summary has details about the files I updated.' |
| 584 | +export const jobCompletedChatMessage = `I ${getTransformationActionString()} your code. You can review the diff to see my proposed changes and accept or reject them. The transformation summary has details about the files I updated.` |
583 | 585 |
|
584 | | -export const jobCompletedNotification = |
585 | | - 'Amazon Q upgraded your code. You can review the diff to see my proposed changes and accept or reject them. The transformation summary has details about the files I updated.' |
| 586 | +export const jobCompletedNotification = `Amazon Q ${getTransformationActionString()} your code. You can review the diff to see my proposed changes and accept or reject them. The transformation summary has details about the files I updated.` |
586 | 587 |
|
587 | | -export const jobPartiallyCompletedChatMessage = |
588 | | - 'I upgraded part of your code. You can review the diff to see my proposed changes and accept or reject them. The transformation summary has details about the files I updated and the errors that prevented a complete transformation.' |
| 588 | +export const jobPartiallyCompletedChatMessage = `I ${getTransformationActionString()} part of your code. You can review the diff to see my proposed changes and accept or reject them. The transformation summary has details about the files I updated and the errors that prevented a complete transformation.` |
589 | 589 |
|
590 | | -export const jobPartiallyCompletedNotification = |
591 | | - 'Amazon Q upgraded part of your code. You can review the diff to see my proposed changes and accept or reject them. The transformation summary has details about the files I updated and the errors that prevented a complete transformation.' |
| 590 | +export const jobPartiallyCompletedNotification = `Amazon Q ${getTransformationActionString()} part of your code. You can review the diff to see my proposed changes and accept or reject them. The transformation summary has details about the files I updated and the errors that prevented a complete transformation.` |
592 | 591 |
|
593 | 592 | export const noPomXmlFoundChatMessage = `Sorry, I couldn\'t find a project that I can upgrade. I couldn\'t find a pom.xml file in any of your open projects. Currently, I can only upgrade Java 8 or Java 11 projects built on Maven. For more information, see the [Amazon Q documentation](${codeTransformPrereqDoc}).` |
594 | 593 |
|
|
0 commit comments