Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Update Feedback #1091

wants to merge 5 commits into from

Conversation

Akhtam
Copy link
Member

@Akhtam Akhtam commented Jan 9, 2022

Closed this PR since it was outdated and opened new PR

  1. Removed feedback(review) requirement if user chooses Other tag and make it optional, product team want it to be a lightweight feedback experience
  2. Send empty array for tags params if vote is upvote (below added more info on this)
  3. Removed unnecessary css

@Akhtam Akhtam added the WIP label Jan 9, 2022
@@ -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}>
Copy link
Member Author

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;
Copy link
Member Author

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)
: [];
Copy link
Member Author

@Akhtam Akhtam Jan 9, 2022

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.

@Akhtam Akhtam removed the WIP label Jan 9, 2022
@Akhtam Akhtam marked this pull request as ready for review January 9, 2022 22:25
Copy link
Member

@richardxia richardxia left a 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)"
Copy link
Member

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)":

Suggested change
placeholder="Type your feedback here(optional)"
placeholder="Type your feedback here (optional)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants