-
Notifications
You must be signed in to change notification settings - Fork 16
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
2548: Split up web feedback at the first level into two smileys again #3004
Conversation
Oooooh, good catch, thanks! |
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.
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 this PR. Tested on firefox with big and small size, works as expected 🚀
<ToolbarItem | ||
icon={HappySmileyIcon} | ||
text={t('useful')} | ||
onClick={() => { | ||
setIsFeedbackOpen(true) | ||
setIsPositiveRating(true) | ||
}} | ||
/> | ||
<ToolbarItem | ||
icon={SadSmileyIcon} | ||
text={t('notUseful')} | ||
onClick={() => { | ||
setIsFeedbackOpen(true) | ||
setIsPositiveRating(false) | ||
}} | ||
/> |
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.
❓ Wouldn't it make more sense to just render the FeedbackToolbarItem
twice? I think this way its pretty confusing that one feedback toolbar item renders two toolbar items. That way, there would also be no need to raise the ispositiveRating
state to this compoennt
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.
Hmm, interesting idea, I guess we could do that? Or at least rename the component. I guess I'll open another PR for that 😅
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.
Sorry, I didn't get that the PR is already merged. If you feel motivated, otherwise this is alright as well.
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.
All good, you're right, it's a good idea :)
Short description
The municipalities have been receiving way less feedback since we made some changes there about half a year ago. In this PR, I changed the sidebar in web desktop / the footer in web mobile to show the two smileys instead of the button saying Feedback.
Proposed changes
Side effects
Testing
Resolved issues
Fixes: #2548