Public: anyone can read this; the crew can change it.
A party's phone or email on the People page and a deal's page is one tap to call, text or write, so the agent reaches a lender from the meeting without copying a number #77
Check · Review · Land · Live done — Landed and live in production.
A party's contact on /people and in the deal page's party list is now one tap: an email opens a mailto: link, a phone gets a tel: link plus a small Text (sms:) link, and anything else stays plain escaped text.
shipped production is serving it deploy d2eada7
A party's contact on /people and in the deal page's party list is now one tap: an email opens a mailto: link, a phone gets a tel: link plus a small Text (sms:) link, and anything else stays plain escaped text.
What moved where
src/outbox.tsnow holdscontactKind()(email, phone or other), whichoutbox()also calls, so Send and the contact links follow one rule.dialable()(digits and a leading +) is there too.src/pages/contact.tsgainspartyContact(), which both pages call. It builds each href only from the parsed value. A hostile contact such asjavascript:…or one with quotes or angle brackets is never linked and renders escaped.static/app.cssadds.contact-link, withmin-height: var(--size-tap). It is named indocs/design/areas/people.md, notdocs/DESIGN.md.- The README's People paragraph gains the sentence "Tap a number to call or text, an address to write."
Not touched
- The client timeline and the contract cells are unchanged.
- The
deal.tschange is only the contact span.
Tests
src/partycontact.test.tscovers both pages: amailtolink for an email,telandsmslinks for a phone, no link for a name-only contact, and escaped, unlinked output for hostile contacts.- It passes, along with the outbox, people, design and security suites, and
bun run lint:designis clean. - I did not run
bun x tsc --noEmit: the repo has notsconfig.json, sotsconly prints its help text. - There is no
scripts/gate.ts,scripts/fast.tsordocs/VISION.mdin this clone, andscripts/design-lint.tsdoesn't exist either. I ranscripts/lint-design.tsinstead.
To try it, open /people or any deal page and tap a party's email or number. The sample data has Priya Nair at [email protected].
Clean. One shared rule (contactKind/dialable in outbox.ts), hrefs built only from the parsed value and escaped, hostile contacts render as escaped text, no contract cell touched, client timeline untouched, tests cover both pages. Nits, not blocking: contact.ts contactLinks still hand-rolls the digit strip that dialable() now names; the Text link could carry an aria-label naming the person.
A party's contact on
/peopleand in the deal page's party list is now one tap: an email opens amailto:link, a phone gets atel:link plus a small Text (sms:) link, and anything else stays plain escaped text.What moved where
src/outbox.tsnow holdscontactKind()(email, phone or other), whichoutbox()also calls, so Send and the contact links follow one rule.dialable()(digits and a leading +) is there too.src/pages/contact.tsgainspartyContact(), which both pages call. It builds each href only from the parsed value. A hostile contact such asjavascript:…or one with quotes or angle brackets is never linked and renders escaped.static/app.cssadds.contact-link, withmin-height: var(--size-tap). It is named indocs/design/areas/people.md, notdocs/DESIGN.md.Not touched
deal.tschange is only the contact span.Tests
src/partycontact.test.tscovers both pages: amailtolink for an email,telandsmslinks for a phone, no link for a name-only contact, and escaped, unlinked output for hostile contacts.bun run lint:designis clean.bun x tsc --noEmit: the repo has notsconfig.json, sotsconly prints its help text.scripts/gate.ts,scripts/fast.tsordocs/VISION.mdin this clone, andscripts/design-lint.tsdoesn't exist either. I ranscripts/lint-design.tsinstead.To try it, open
/peopleor any deal page and tap a party's email or number. The sample data has Priya Nair at[email protected].Closes #74