From 938384151311b300a4b378eb067ab3975a7810d7 Mon Sep 17 00:00:00 2001 From: Jose Selesan Date: Wed, 11 Nov 2026 13:37:55 -0300 Subject: [PATCH] feat(web): WhatsApp and call actions on attendee phone rows The phone row in the attendee contact and guardian sections was a single tel: link. It now shows WhatsApp and call icon buttons for that number. Co-Authored-By: Claude Opus 5.5 --- .../AttendeeContactSection.tsx | 16 ++++++--- .../attendee-detail/GuardianSection.tsx | 10 +++++- .../attendee-detail/PhoneRowActions.tsx | 36 +++++++++++++++++++ 3 files changed, 57 insertions(+), 5 deletions(-) create mode 100644 apps/web/src/features/attendee-detail/PhoneRowActions.tsx diff --git a/apps/web/src/features/attendee-detail/AttendeeContactSection.tsx b/apps/web/src/features/attendee-detail/AttendeeContactSection.tsx index b842406..05369a6 100644 --- a/apps/web/src/features/attendee-detail/AttendeeContactSection.tsx +++ b/apps/web/src/features/attendee-detail/AttendeeContactSection.tsx @@ -1,10 +1,11 @@ -import { useEffect, useState } from 'react' +import { type ReactNode, useEffect, useState } from 'react' import { Mail, Phone } from 'lucide-react' import { ApiError } from '../../lib/api' import { formatPhoneDisplay } from '../../lib/format' import { cn } from '../../lib/utils' import { AttendeeContactForm } from './AttendeeContactForm' import { contactEmailError } from './detail' +import { PhoneRowActions } from './PhoneRowActions' import { Section } from './Section' import { useAttendeeDetail } from './AttendeeDetailProvider' import { useTranslation } from 'react-i18next' @@ -99,8 +100,12 @@ export function AttendeeContactSection() { icon={Phone} label={t('contact.phone')} value={formatPhoneDisplay(attendee.phone) ?? t('contact.addPhone')} - href={attendee.phone ? `tel:${attendee.phone.replace(/\D/g, '')}` : undefined} placeholder={!attendee.phone} + actions={ + attendee.phone ? ( + + ) : undefined + } />