Skip to content
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

Improve client share error message #4784

Merged

Conversation

McEileen
Copy link
Contributor

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 the Served 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

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  1. sign in as org_admin1@example.com

  2. Click "Partner Agencies", then "All Partners". Click a Partner, then scroll down and click "Edit information".
  3. Find the Area Served section
  4. Click "Add Another County".
  5. Choose a "County or Equivalent". Do not fill in the client share % field beside it.
  6. Go to the bottom of the page and click "Update Information".

Screenshots

New inline error message

Issue4673InlineError

New error message at top of page

Issue4673TopOfPageError

@dorner
Copy link
Collaborator

dorner commented Nov 16, 2024

Looks good on my end.

@dorner dorner requested a review from cielf November 16, 2024 23:18
Copy link
Collaborator

@cielf cielf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me too.

@cielf cielf merged commit 20cf220 into rubyforgood:main Nov 20, 2024
11 checks passed
Copy link
Contributor

@McEileen: Your PR Improve client share error message is part of today's Human Essentials production release: 2024.11.24.
Thank you very much for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better error message where partner's served areas % client share left blank.
3 participants