Improve client share error message #4784
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #4673
Description
This PR modifies the error message that partners will see when they attempt to add another county to "area served" and do not submit a value for the "client share" field. The error message will now be "Something didn't work quite right -- try again? Validation failed: Served areas client share is not a number, Served areas Client share must be between 1 and 100 inclusive".
I do think it looks a little goofy to have
Client
capitalized in theServed areas Client share must be between 1 and 100 inclusive
message. I included that because I wanted to verbatim copy the error message suggested in issue #4673. I would be happy to refactor and change the capitalization.Type of change
How Has This Been Tested?
spec/models/partners/served_area_spec.rb
spec/services/partner_profile_update_service_spec.rb
to expect the updated message.sign in as org_admin1@example.com
Screenshots
New inline error message
New error message at top of page