-
Notifications
You must be signed in to change notification settings - Fork 20
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
2861: Add data privacy agreement for feedback help form #3041
base: main
Are you sure you want to change the base?
2861: Add data privacy agreement for feedback help form #3041
Conversation
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 the PR, really well done! I have a few (mostly minor) things that could perhaps still be improved. Let me know if you have some questions or think that I am wrong about something :)
Use You can always check if everything is good before pushing by running the following commands: |
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, looks great!
Tested on firefox.
Three minor things that would be nice to have, even though they are not a must:
- If possible, adding a small test each for Checkbox and PrivacyCheckbox (native) and PrivacyCheckbox (web) would be cool that just asserts clicking one selects the checkbox and twice deselects the checkbox (should be possible to nearly copy/paste 1:1)
- The checkbox on web could be a little bigger in my opinion, I think the touch target is quite small (even though clicking the text works as well)
- CodeScene is complaining about increased complexity on both native and web Feedback.tsx. This can probably be fixed by extracting the condition like this:
const sendFeedbackDisabled = ... || privacyPolicyAccepted
...
<StyledTextButton disabled={sendFeedbackDisabled} onClick={onSubmit} text={t('send')} />
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.
4455706
to
465eb57
Compare
Short description
Add a checkbox in the feedback form with a label about "if you read the privacy policy" with the link to said policy in it
Proposed Changes
Side effects
Testing
Fixes: 2861