From f52722086e07b40edbaabccf0f030de062747104 Mon Sep 17 00:00:00 2001 From: saridsa2 Date: Thu, 16 Apr 2026 05:41:33 +0530 Subject: [PATCH] fix(call-desk): Book Appt button label reflects New vs Reschedule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug 558: Appointment edit view persisted in Patient 360 after Back to Worklist. Closed as not-a-bug — the edit flow now lives inside the unified Book Appt drawer, so the same button opens either path. Rename makes the intent explicit: - 'New Appt' when the caller has no upcoming appointments - 'New / Reschedule Appt' when upcoming appointments exist (pills inside the drawer let the agent pick which one to reschedule) --- src/components/call-desk/active-call-card.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/call-desk/active-call-card.tsx b/src/components/call-desk/active-call-card.tsx index c0529a9..6d97ac9 100644 --- a/src/components/call-desk/active-call-card.tsx +++ b/src/components/call-desk/active-call-card.tsx @@ -339,7 +339,9 @@ export const ActiveCallCard = ({ lead, callerPhone, missedCallId, onCallComplete + onClick={() => { setAppointmentOpen(!appointmentOpen); setEnquiryOpen(false); setTransferOpen(false); }}> + {leadAppointments.length > 0 ? 'New / Reschedule Appt' : 'New Appt'} +