Skip to content

Commit 054efa0

Browse files
authored
Update more customer facing texts and doc link (#4895)
1 parent 1bab3ce commit 054efa0

File tree

4 files changed

+22
-26
lines changed

4 files changed

+22
-26
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/controller/FeatureDevController.kt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,6 @@ class FeatureDevController(
335335
)
336336
)
337337

338-
// Ensure that chat input is enabled so that customers can iterate over code generation if they choose to do so
339-
messenger.sendChatInputEnabledMessage(tabId = tabId, enabled = true)
340338
messenger.sendUpdatePlaceholder(
341339
tabId = tabId,
342340
newPlaceholder = message("amazonqFeatureDev.placeholder.additional_improvements")
@@ -353,7 +351,13 @@ class FeatureDevController(
353351
}
354352

355353
private suspend fun newTask(tabId: String) {
356-
closeSession(tabId)
354+
val session = getSessionInfo(tabId)
355+
val sessionLatency = System.currentTimeMillis() - session.sessionStartTime
356+
AmazonqTelemetry.endChat(
357+
amazonqConversationId = session.conversationId,
358+
amazonqEndOfTheConversationLatency = sessionLatency.toDouble(),
359+
credentialStartUrl = getStartUrl(project = context.project)
360+
)
357361
chatSessionStorage.deleteSession(tabId)
358362

359363
newTabOpened(tabId)

plugins/amazonq/chat/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/controller/FeatureDevControllerTest.kt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,6 @@ class FeatureDevControllerTest : FeatureDevTestBase() {
157157
mockitoVerify(chatSessionStorage, times(1)).deleteSession(testTabId)
158158

159159
coVerifyOrder {
160-
messenger.sendAnswer(
161-
tabId = testTabId,
162-
message = message("amazonqFeatureDev.chat_message.closed_session"),
163-
messageType = FeatureDevMessageType.Answer,
164-
canBeVoted = true
165-
)
166-
messenger.sendUpdatePlaceholder(testTabId, message("amazonqFeatureDev.placeholder.closed_session"))
167-
messenger.sendChatInputEnabledMessage(testTabId, false)
168160
messenger.sendAnswer(testTabId, message("amazonqFeatureDev.chat_message.ask_for_new_task"), FeatureDevMessageType.Answer)
169161
messenger.sendUpdatePlaceholder(testTabId, message("amazonqFeatureDev.placeholder.new_plan"))
170162
}
@@ -249,7 +241,6 @@ class FeatureDevControllerTest : FeatureDevTestBase() {
249241
FollowUp(FollowUpTypes.CLOSE_SESSION, message("amazonqFeatureDev.follow_up.close_session"), status = FollowUpStatusType.Info)
250242
)
251243
)
252-
messenger.sendChatInputEnabledMessage(testTabId, true)
253244
messenger.sendUpdatePlaceholder(testTabId, message("amazonqFeatureDev.placeholder.additional_improvements"))
254245
}
255246
}

plugins/amazonq/mynah-ui/src/mynah-ui/ui/tabs/generator.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class TabDataGenerator {
2727
private tabInputPlaceholder: Map<TabType, string> = new Map([
2828
['unknown', 'Ask a question or enter "/" for quick commands'],
2929
['cwc', 'Ask a question or enter "/" for quick commands'],
30-
['featuredev', 'Describe your task or issue in as much detail as possible'],
30+
['featuredev', 'Describe your task or issue in detail'],
3131
])
3232

3333
private tabWelcomeMessage: Map<TabType, string> = new Map([
@@ -45,10 +45,11 @@ export class TabDataGenerator {
4545
],
4646
[
4747
'featuredev',
48-
`I can generate code to implement new functionality across your workspace. To get started, describe the task you're trying to accomplish, and I'll generate code. If you want to make changes, you can provide feedback and I'll regenerate code.
49-
50-
What would you like work on?
51-
`,
48+
`Hi! I'm the Amazon Q Developer Agent for software development.
49+
50+
I can generate code to implement new functionality across your workspace. To get started, describe the task you're trying to accomplish, and I'll generate code to implement it. If you want to make changes to the code, you can tell me what to improve and I'll generate new code based on your feedback.
51+
52+
What would you like to work on?`,
5253
],
5354
[
5455
'codetransform',

plugins/core/resources/resources/software/aws/toolkits/resources/MessagesBundle.properties

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ amazonqFeatureDev.chat_message.closed_session=Okay, I've ended this chat session
4242
amazonqFeatureDev.chat_message.requesting_changes=Requesting changes ...
4343
amazonqFeatureDev.chat_message.start_code_generation=Okay, I'll generate code for that. This might take a few minutes.\n\nYou can navigate away from this chat, but please keep this tab open. I'll notify you when I'm done.
4444
amazonqFeatureDev.chat_message.start_code_generation_retry=Okay, I'll generate new code. This might take a few minutes.\n\nYou can navigate away from this chat, but please keep this tab open. I'll notify you when I'm done.
45-
amazonqFeatureDev.chat_message.uploading_code=Uploading code ...
45+
amazonqFeatureDev.chat_message.uploading_code=Uploading code...
4646
amazonqFeatureDev.code_generation.error_message=I'm sorry, I ran into an issue while trying to generate your code. Please try again.
4747
amazonqFeatureDev.code_generation.failed_generation=Code generation failed
4848
amazonqFeatureDev.code_generation.generating_code=Generating code ...
49-
amazonqFeatureDev.code_generation.iteration_counts=Would you like me to add this code to your project, or provide feedback for new code? You have {0} out of {1} code iterations remaining.
49+
amazonqFeatureDev.code_generation.iteration_counts=Would you like me to add this code to your project, or provide feedback for new code? You have {0} out of {1} code generations left.
5050
amazonqFeatureDev.code_generation.iteration_limit.error_text=Sorry, you've reached the quota for number of iterations on code generation. You can insert this code in your files or discuss a new plan. For more information on quotas, see the [Amazon Q Developer documentation](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/software-dev.html#quotas).
51-
amazonqFeatureDev.code_generation.iteration_zero=Would you like me to add this code to your files?
51+
amazonqFeatureDev.code_generation.iteration_zero=Would you like me to add this code to your project?
5252
amazonqFeatureDev.code_generation.no_file_changes=Unable to generate any file changes
5353
amazonqFeatureDev.code_generation.no_retries.error_message=I'm sorry, I'm having trouble generating your code and can't continue at the moment. Please try again later, and share feedback to help me improve.
5454
amazonqFeatureDev.code_generation.notification_message=Your code suggestions from Amazon Q are ready to review
@@ -58,7 +58,7 @@ amazonqFeatureDev.code_generation.provide_code_feedback=How can I improve the co
5858
amazonqFeatureDev.code_generation.updated_code=Okay, I updated your code files. Would you like to work on another task?
5959
amazonqFeatureDev.content_length.error_text=The folder you selected is too large for me to use as context. Please choose a smaller folder to work on. For more information on quotas, see the [Amazon Q Developer documentation](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/software-dev.html#quotas).
6060
amazonqFeatureDev.error_text=Sorry, we encountered a problem when processing your request.
61-
amazonqFeatureDev.example_text=You can use /dev to:\n- Add a new feature or logic\n- Write tests\n- Fix a bug in your project\n- Generate a README for a file, folder, or project\n\nTo learn more, visit the [Amazon Q User Guide](https://docs.aws.amazon.com/amazonq/latest/aws-builder-use-ug/getting-started.html)
61+
amazonqFeatureDev.example_text=You can use /dev to:\n- Add a new feature or logic\n- Write tests\n- Fix a bug in your project\n- Generate a README for a file, folder, or project\n\nTo learn more, visit the [Amazon Q Developer User Guide](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/software-dev.html)
6262
amazonqFeatureDev.exception.conversation_not_found=I'm sorry, I'm having technical difficulties at the moment. Please try again.
6363
amazonqFeatureDev.exception.export_parsing_error=I'm sorry, I'm having trouble producing your code. Please try again.
6464
amazonqFeatureDev.exception.guardrails=I'm sorry, I'm having trouble generating your code. Please try again.
@@ -73,22 +73,22 @@ amazonqFeatureDev.exception.upload_code=I'm sorry, I couldn't upload your worksp
7373
amazonqFeatureDev.follow_instructions_for_authentication=Follow instructions to re-authenticate ...
7474
amazonqFeatureDev.follow_up.close_session=No, thanks
7575
amazonqFeatureDev.follow_up.incorrect_source_folder=The folder you chose isn't in your open workspace folder. You can add this folder to your workspace, or choose a folder in your open workspace.
76-
amazonqFeatureDev.follow_up.insert_code=Insert code
76+
amazonqFeatureDev.follow_up.insert_code=Accept code
7777
amazonqFeatureDev.follow_up.modified_source_folder=Changed source root to: {0}
7878
amazonqFeatureDev.follow_up.modify_source_folder=Select files for context
7979
amazonqFeatureDev.follow_up.new_task=Yes, I have another task
80-
amazonqFeatureDev.follow_up.provide_feedback_and_regenerate=Provide feedback to regenerate
80+
amazonqFeatureDev.follow_up.provide_feedback_and_regenerate=Provide feedback & regenerate
8181
amazonqFeatureDev.follow_up.retry=Retry
8282
amazonqFeatureDev.follow_up.send_feedback=Send feedback
8383
amazonqFeatureDev.no_retries.error_text=I'm sorry, I'm having technical difficulties and can't continue at the moment. Please try again later, and share feedback to help me improve.
84-
amazonqFeatureDev.placeholder.additional_improvements=Provide input on additional improvements
85-
amazonqFeatureDev.placeholder.after_code_generation=Select an option above to proceed
84+
amazonqFeatureDev.placeholder.additional_improvements=Choose an option to proceed
85+
amazonqFeatureDev.placeholder.after_code_generation=Choose an option to proceed
8686
amazonqFeatureDev.placeholder.after_monthly_limit=Chat input is disabled
8787
amazonqFeatureDev.placeholder.closed_session=Open a new chat tab to continue
8888
amazonqFeatureDev.placeholder.context_gathering_complete=Gathering context...
8989
amazonqFeatureDev.placeholder.generating_code=Generating code...
9090
amazonqFeatureDev.placeholder.new_plan=Describe your task or issue in as much detail as possible
91-
amazonqFeatureDev.placeholder.provide_code_feedback=Feedback, comments ...
91+
amazonqFeatureDev.placeholder.provide_code_feedback=Provide feedback or comments
9292
amazonqFeatureDev.placeholder.write_new_prompt=Write a new prompt
9393
apprunner.action.configure=Configure Service
9494
apprunner.action.create.service=Create Service...

0 commit comments

Comments
 (0)