feat(phone): render stored phone numbers with separators (MAPPS-283) #303
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
psa-systems/mokosh-apps!303
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/MAPPS-283-phone-format"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The server stores phone numbers as the trimmed-formatting output of
validate_phone_field(digits with an optional leading+). The QA report flagged that '(555) 123-4567' was being displayed back as '5551234567' on every read surface. Add aformat_phonehelper that re-applies NANP separators - 10 digits render as(555) 123-4567, 11 digits starting with1as+1 (555) 123-4567, and anything else passes through unchanged so non-NANP E.164 values keep their canonical form. Route every Phone / Mobile render on the contacts list, the company detail Phone line, the company-detail contacts preview, and the contact detail Phone / Mobile lines through it. Live input masking is heavier and would need editing-cursor coordination; tracked as a follow-up under MAPPS-283 - this captures the read-side win.#MAPPS-283