-
Notifications
You must be signed in to change notification settings - Fork 93
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
Make rating mandatory #197
Make rating mandatory #197
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.
thank you for taking care of this 👍
there is no backend validation for this rating mechanism ?
@matthieu-rolland No, this PR just add rating not Chosen check like Review's title, author and content Empty check in the same front-end validation |
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.
Hello @leemyongpakvn ,
On classic theme it works like expected.
Although, I think the color should be the same red as the red in the message alert :
Also, it should the vertically alight to the right.
But on hummingbird, it doesn't work.
Could you make it compatible for both themes ?
Screen.Recording.2024-01-23.at.14.30.55.mov
Could you check ? :)
Thanks!
@florine2623 |
Hello @leemyongpakvn, I tested your PR on classic theme and hummingbird and I got this : Can you check it please? Thanks! |
@paulnoelcholot Did you remember to apply FO - clear Browser cache, BO - clear PS cache before testing ? |
Thank you for your PR, I tested it and it seems to works as you can see : recording.79.webmUnfortunately, you can also see that if you clic again on "Write your review" after put none rate on the product, you still have "* Please choose a rating for your review." Can you check it ? Thank you |
@AureRita I saw and fixed it with my 5th commit. Please check again. |
Thank you for your changes, now the problem is on the other way, when you put a rate, press send (to have the message that is hidden) close the modal and want to write a new review without rate, you didn't have the error message, as you can see : recording.81.webmWaiting for your next changes 🚀 Thank you |
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.
Code is good for me 👍
@AureRita As discussed in Slack, Krystian agreed with you, so I have changed the code following your opinion. Please check again. |
@leemyongpakvn thanks for making the effort 🤗 |
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.
Thank you for your PR, I tested it and it seems to works as you can see :
recording.91.webm
Because the PR seems to works as expected on develop and 8.1.x, It's QA ✔️
Thank you for all your best efforts ! 🚀
Thanks to all ;) |
(Don't forget to use a clean dev branch, FO - clear Browser cache, BO - clear PS cache before testing ;)