You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error message that appears if you leave a client share blank in the partner profile is not helpful. Make it better.
Why?
Reduce partner and bank frustration.
Details
For background, See discussion on PR 4345, but it's probably not necessary to do that to fix this.
Recreation
sign in as [email protected]
Click "Partner Agencies", then "All Partners". Click a Partner, then scroll down and click "Edit information".
Find the Area Served section
Click "Add Another County".
Choose a "County or Equivalent". Do not fill in the client share % field beside it.
Go to the bottom of the page and click "Update Information".
You will get an error like : "Something didn't work quite right -- try again? Validation failed: Served areas client share is not a number, Served areas client share is not included in the list".
What needs to happen
The "is not included in the list" bit is confusing. We'd rather see "must be between 1 and 100".
Hint:
The "is not in list" appears to come from using validates inclusion on served_area.rb line 19 -- add a custom message instead, message: {"Client share must be between 1 and 100 inclusive."}
Criteria for completion
error message changed as described
automated tests to confirm the behaviour.
The text was updated successfully, but these errors were encountered:
Summary
The error message that appears if you leave a client share blank in the partner profile is not helpful. Make it better.
Why?
Reduce partner and bank frustration.
Details
For background, See discussion on PR 4345, but it's probably not necessary to do that to fix this.
Recreation
sign in as [email protected]
Click "Partner Agencies", then "All Partners". Click a Partner, then scroll down and click "Edit information".
Find the Area Served section
Click "Add Another County".
Choose a "County or Equivalent". Do not fill in the client share % field beside it.
Go to the bottom of the page and click "Update Information".
You will get an error like : "Something didn't work quite right -- try again? Validation failed: Served areas client share is not a number, Served areas client share is not included in the list".
What needs to happen
The "is not included in the list" bit is confusing. We'd rather see "must be between 1 and 100".
Hint:
The "is not in list" appears to come from using validates inclusion on served_area.rb line 19 -- add a custom message instead, message: {"Client share must be between 1 and 100 inclusive."}
Criteria for completion
The text was updated successfully, but these errors were encountered: