Skip to content

Commit 270d448

Browse files
authored
Customer not to share personal details in feedback (#3570)
* Provide alert message in feedback dialog * Changed alert info placement * Removed paranthesis to a alert message * Changed text color of feedback limit label * Added feedback label as gray color
1 parent c901371 commit 270d448

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

jetbrains-core/src/software/aws/toolkits/jetbrains/ui/feedback/FeedbackDialog.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class FeedbackDialog(val project: Project, initialSentiment: Sentiment = Sentime
4848
private val sadIcon = IconUtil.scale(AwsIcons.Misc.FROWN, null, 3f)
4949
private var commentText: String = initialComment
5050
private lateinit var comment: Cell<JBTextArea>
51-
private var lengthLimitLabel = JBLabel(message("feedback.comment.textbox.initial.length"))
51+
private var lengthLimitLabel = JBLabel(message("feedback.comment.textbox.initial.length")).also { it.foreground = UIUtil.getLabelInfoForeground() }
5252

5353
private val dialogPanel = panel {
5454
row {
@@ -90,8 +90,9 @@ class FeedbackDialog(val project: Project, initialSentiment: Sentiment = Sentime
9090
}.bind({ sentiment }, { sentiment = it })
9191

9292
row(message("feedback.comment.textbox.title")) {}
93+
row { comment(message("feedback.customer.alert.info")) }
9394
row {
94-
comment = textArea().rows(6).columns(50).bindText(::commentText).applyToComponent {
95+
comment = textArea().rows(6).columns(52).bindText(::commentText).applyToComponent {
9596
this.emptyText.text = message("feedback.comment.emptyText")
9697
this.lineWrap = true
9798

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,11 +766,12 @@ explorer.stack.no.serverless.resources=Stack has no Lambda Functions
766766
explorer.toolwindow.title=Explorer
767767
explorer.view_documentation=View Documentation
768768
explorer.view_source=View Source on GitHub
769-
feedback.comment.emptyText=(optional)
769+
feedback.comment.emptyText=optional
770770
feedback.comment.label=Please enter your feedback
771771
feedback.comment.textbox.initial.length=2000 characters remaining
772772
feedback.comment.textbox.title=What do you like about the AWS Toolkit? What can we improve?
773773
feedback.connect.with.github.title=Join us on GitHub
774+
feedback.customer.alert.info=<html>Please don't add personally identifiable information (PII), confidential or sensitive information in your feedback.<br>Remove any PII when sharing file paths, error messages, etc.</html>
774775
feedback.description=Submit quick feedback about the AWS Toolkit for JetBrains
775776
feedback.github.link=<html>Have an issue or feature request?<br><a href="{0}">Talk to us on GitHub instead!</a></html>
776777
feedback.initial.help.text=<br>Looking for help? View the <a href = "https://docs.aws.amazon.com/toolkit-for-jetbrains/latest/userguide/welcome.html#welcome-">Getting Started Guide</a> or search our <a href="https://docs.aws.amazon.com/toolkit-for-jetbrains/latest/userguide/welcome.html">documentation</a>

0 commit comments

Comments
 (0)