food-oasis
food-oasis copied to clipboard
Implement Client-Side Validation of Phone Number and Email
Overview
On the OrganizationEdit page (StakeholderEdit.js component), the email and phone number fields are currently free-form text entry. Both should have client-side validation that the field complies with a standard format:
- email should have a @ character in it somewhere and a "." later in the string. I think spaces are generally not allowed.
- phone number should be in the format (999) 999-9999 with a possble extension and/or comment (typically something like "Ask for Susan". We really should have a way to enter multliple phone numbers, but this isn't supported by the database yet.
Epic Issue #996 Ideate a self-service system for pantries to verify/update their own info
Dependent Issues #376 Implement Organization Audit UI #379 Improve Client-Side Validation of Hours