Closed igawaclawska closed 2 months ago
Name | Link |
---|---|
Latest commit | f229b9ff47f331c920961042e84ac12768a7fbf7 |
Latest deploy log | https://app.netlify.com/sites/voluble-nougat-015dd1/deploys/663914b40a719000087a6422 |
Deploy Preview | https://deploy-preview-346--voluble-nougat-015dd1.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Hi @mircealungu and @tfnribeiro
The changes that we discussed last Monday are now addressed:
Additionally, I have adapted this PR to the newest updates on main
so that it no longer has merge conflicts.
Also, This PR mainly introduces changes to the following pages: Log-in, Registration, Password Reset, and Language Selection. However, I have also worked on the Keywords Exclusion pages (from another branch that is dependent on this one because I needed components introduced here). Should I incorporate these changes into this PR or make a separate one after this one is approved/merged?
Overall changes:
Language preferences settings are separated from the registration page and have their own page and endpoint:
language_preferences
Input
As we discussed and agreed on Monday, the 15th, I kept the validation logic unchanged for now. It's still a global message displayed on the form field, but it has now been redesigned to be visually distinct from the input fields.
If we want in the future to implement a real-time validation that supports error messages displayed directly below input fields - the new custom input field component will allow us to do so now (similarly to how it can be achieved using mui input fields).
The
useFormField
custom hook controls the behavior of the new form fields. For now, it handles basic state updates, but it can be expanded to handle individual error messages per input field, etc.The hook:
Usage example in
CreateAccount.js
:Privacy Notice
The
Privacy Notice
text has now been removed from the Registration page and is available as a link.For now, the validation does not consider the Privacy notice checkbox, as I left it open for discussion. Let's discuss our approach on Monday.
Buttons:
OrangeRoundButton
styled component but I have discovered it is not keyboard focusable and does not submit the form on key down.RoundButton
is made of adiv
, not a button. This is why it lacked the button behavior.