-
Notifications
You must be signed in to change notification settings - Fork 275
feat(amazonq): Implementing the feedback system for internal users to improve unit test generation quality. #5465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 7 commits
cb8f915
d6df7be
25c7caf
5b06b08
6b71955
a75ad3e
3cd6af5
6c18a16
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,6 @@ | |
| } | ||
|
|
||
| init { | ||
| title = message("feedback.title.amazonq.feature_dev") | ||
| title = message("feedback.title.amazonq.send_feedback") | ||
|
Check warning on line 19 in plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/ui/feedback/FeatureDevFeedbackDialog.kt
|
||
|
||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| // Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| package software.aws.toolkits.jetbrains.ui.feedback | ||
|
|
||
| import com.intellij.openapi.project.Project | ||
| import software.aws.toolkits.jetbrains.services.telemetry.TelemetryService | ||
| import software.aws.toolkits.resources.message | ||
|
||
|
|
||
| class TestGenFeedbackDialog( | ||
| project: Project, | ||
| private val requestId: String? = null, | ||
| private val jobId: String? = null, | ||
| ) : FeedbackDialog(project) { | ||
| override fun notificationTitle() = message("aws.notification.title.amazonq.test_generation") | ||
|
Check warning on line 15 in plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/ui/feedback/TestGenFeedbackDialog.kt
|
||
|
||
| override fun feedbackPrompt() = message("feedback.comment.textbox.title.amazonq.test_generation") | ||
|
Check warning on line 16 in plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/ui/feedback/TestGenFeedbackDialog.kt
|
||
|
||
| override fun productName() = "Amazon Q Test Generation" | ||
| override suspend fun sendFeedback() { | ||
| TelemetryService.getInstance().sendFeedback(sentiment, "UserComment: $commentText, RequestId: $requestId, TestGenerationJobId: $jobId") | ||
| } | ||
|
|
||
| init { | ||
| title = message("feedback.title.amazonq.send_feedback") | ||
|
Check warning on line 23 in plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/ui/feedback/TestGenFeedbackDialog.kt
|
||
|
||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we need a discussion on why this is proliferating
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is aimed for only internal users to get feedback about quality of UTG. So, I used this, but LMK if there is a better way todo this!
Thank you.