Format the numbers in call history

Fixkamo-internal
Shipped
August 27, 2026 at 6:05 PM UTC
Author
kamo
Commit
0793726

The History tab was the one softphone surface rendering a raw provider number: the incoming-call banner and every number in SoftphoneCRM already run through formatPhoneDisplay, so a call you took read "(949) 374-7110" while the same call in your history read "9493747110". Reuses the house formatter rather than adding one. It leaves anything that is not ten canonical digits exactly as it found it, which is the property that matters here — a phone system is full of strings that are not phone numbers, and extension 8080 must not be dressed up as one. Only what is shown is formatted. The call-back button and "add to contacts" keep the raw number, because they hand it to the dialpad rather than to the screen. app/lib/phone.ts had no test file despite four surfaces rendering through it; it has one now.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing