-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: can toggle feedback required and show validation errors #3939
Conversation
Removed vultr server and associated DNS entries |
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.
One minor comment but overall works as expected & thanks for clear test coverage !!
: number() | ||
.integer() | ||
.min(1, "Feedback score must be at least 1") | ||
.max(5, "Feedback score cannot exceed 5"), |
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.
nit: while this validation schema is totally correct, are min
& max
actually useful user-facing errors here since the user is interacting with a set of emoji expressions rather than inputing a number score? Basically I think I'd vote .required()
or undefined is plenty here?
Also perhaps "Please rate your experience"
would better align to default label text rather than "Please provide a feedback score"
?
In this PR:
public.test.tsx
into two test files (one for accessibility, one for submission tests)