department-of-veterans-affairs / va.gov-cms

Editor-centered management for Veteran-centered content.
https://prod.cms.va.gov
GNU General Public License v2.0
99 stars 69 forks source link

Improve UX and content quality for phone numbers #7963

Closed kevwalsh closed 8 months ago

kevwalsh commented 2 years ago

Background

User Story or Problem Statement

The existing phone number paragraph type has a "phone number" field built with plain text, not the phone number field type. It's unclear what was behind that decision.

This presents a number of UX and data quality risk. We don't perform form validation on this, and it's unclear how to enter a phone number. There's help text, but it's less than ideal (users tend not to read help text, especially for common fields like phone numbers because they assume the system will autoformat or validate for them).

Current state ​ ![image](https://user-images.githubusercontent.com/643678/153457253-d2b6b14f-436d-40dd-af1a-e49b6312b5e5.png)
Ideal future state with localized input masks ![image](https://user-images.githubusercontent.com/643678/153457447-cafc20b5-7ebd-4af3-95f2-75266ba1d8d9.png) [some background on this approach](https://baymard.com/blog/input-masking-form-field)

Affected users and stakeholders

Hypothesis

We believe that a dedicate phone number field with input masking will improve the UX and data quality.

Constraints

(How will these assumptions be validated?)

Acceptance Criteria

Design principles

Veteran-centered

Editor-centered

Possible runbook

CMS Team

Please check the team(s) that will do this work.

kevwalsh commented 2 years ago

As mentioned on #8167, https://www.drupal.org/project/telephone_validation and https://www.drupal.org/project/mask look like great options.

EWashb commented 2 years ago

@kevwalsh I found this Phone numbers in rich text fields https://github.com/department-of-veterans-affairs/va.gov-cms/issues/1964

Should we close one in favor of another? Or move the above into this epic?