-
Notifications
You must be signed in to change notification settings - Fork 22
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
Update Feedback #1091
base: master
Are you sure you want to change the base?
Update Feedback #1091
Conversation
@@ -102,9 +100,6 @@ const FeedbackModal = ({ service, resource, closeModal }) => { | |||
<img src={icon('feedback-blue-header')} alt="feedback" /> | |||
<span>Share your Feedback</span> | |||
</div> | |||
<div className={styles.feedbackSubheader}> |
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.
As of May of 2021 We didn't have a way of reaching back out so we had to remove sub-header message "Team will usually replies within a day"
@@ -39,19 +40,22 @@ const FeedbackModal = ({ service, resource, closeModal }) => { | |||
setReview(e.target.value); | |||
}; | |||
|
|||
const isDownVote = vote === DOWNVOTE; |
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.
Since this logic been used in multiple places decided to assign it to variable
|
||
const tags = isDownVote | ||
? tagOptions.filter(({ selected }) => selected).map(({ tag }) => tag) | ||
: []; |
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.
We wanna keep review
and tags
state consistent if user toggles between upvote and downvote but need to make sure we send empty tags before submit, since tags associated with downvote only. We need to make sure we don't add unwanted data. Here Feedback Modal for reference.
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.
Thanks for following up, this LGTM!
I think we're having a lot of issues with flaky CI runs, particularly the Cypress end-to-end tests. @jjfreund, @lexholden, @schroerbrian, we may need to prioritize getting CI to be more stable.
placeholder={`Type your feedback here ${ | ||
!isReviewRequired ? '(optional)' : '' | ||
}`} | ||
placeholder="Type your feedback here(optional)" |
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.
It'll look tidier and if you put a space between the word "here" and the parenthetical "(optional)":
placeholder="Type your feedback here(optional)" | |
placeholder="Type your feedback here (optional)" |
Closed this PR since it was outdated and opened new PR
Other
tag and make it optional, product team want it to be a lightweight feedback experienceupvote
(below added more info on this)