-
Notifications
You must be signed in to change notification settings - Fork 0
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
[74] Enter Evaluators A11y Fix #343
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.
The missing inline error message is probably a blocker given the requirements. Plus some other suggestions to improve the design.
def add_existing_user_as_evaluator(user) | ||
return user_already_added(user) if @phase.evaluators.include?(user) | ||
return invalid_role(user) unless User::VALID_EVALUATOR_ROLES.include?(user.role) | ||
|
||
if @invitation_params[:full_name].present? |
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.
I thought full_name
param was required, why is it optional here?
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.
Yeah you're right - now that full_name
is required and used in the validations, I don't need that check. Some of the tests weren't including the full_name
. I removed that check and updated the tests. Should be good to go, thx! 👍
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.
Looks great 😍
Related ticket: #200 #74
Figma
Changes made in this PR:
when adding that user as an evaluator to a challenge phase,
then require and update the user with the provided first and last name.
Updated UI
Validation errors
Empty form
Only a first name
Missing last name
User with invalid role
Required first and last name for existing user
Existing user without first and last name updated with name entered
Mobile
WAVE