diff --git a/src/components/application/slideout-menus/slideout-menu.tsx b/src/components/application/slideout-menus/slideout-menu.tsx index c337257..4b6b279 100644 --- a/src/components/application/slideout-menus/slideout-menu.tsx +++ b/src/components/application/slideout-menus/slideout-menu.tsx @@ -16,7 +16,7 @@ export const ModalOverlay = (props: ModalOverlayProps) => { {...props} className={(state) => cx( - "fixed inset-0 flex min-h-dvh w-full items-center justify-end bg-overlay/70 pl-6 outline-hidden ease-linear md:pl-10", + "fixed inset-0 z-50 flex min-h-dvh w-full items-center justify-end bg-overlay/70 pl-6 outline-hidden ease-linear md:pl-10", state.isEntering && "duration-300 animate-in fade-in", state.isExiting && "duration-500 animate-out fade-out", typeof props.className === "function" ? props.className(state) : props.className, @@ -81,7 +81,7 @@ const Menu = ({ children, dialogClassName, ...props }: SlideoutMenuProps) => { Menu.displayName = "SlideoutMenu"; const Content = ({ role = "main", ...props }: ComponentPropsWithRef<"div">) => { - return
; + return ; }; Content.displayName = "SlideoutContent"; diff --git a/src/components/call-desk/active-call-card.tsx b/src/components/call-desk/active-call-card.tsx index 5d88df2..f87acc9 100644 --- a/src/components/call-desk/active-call-card.tsx +++ b/src/components/call-desk/active-call-card.tsx @@ -45,6 +45,7 @@ export const ActiveCallCard = ({ lead, callerPhone, missedCallId, onCallComplete const [enquiryOpen, setEnquiryOpen] = useState(false); const [dispositionOpen, setDispositionOpen] = useState(false); const [callerDisconnected, setCallerDisconnected] = useState(false); + const [suggestedDisposition, setSuggestedDisposition] = useState{fullName || phoneDisplay}
- {fullName &&{phoneDisplay}
} +{fullName || phoneDisplay}
+ {fullName &&{phoneDisplay}
} +{lead.contactPhone.primaryPhoneNumber}
- )} - {lead.aiSummary && ( -{lead.aiSummary}
- )} -- {doc.department} . {doc.specialty} -
- {doc.visitingHours && ( -Hours: {doc.visitingHours}
- )} - {doc.consultationFeeNew && ( -- Fee: {'\u20B9'}{doc.consultationFeeNew.amountMicros / 1_000_000} - {doc.clinic?.clinicName ? ` . ${doc.clinic.clinicName}` : ''} -
- )} -{formatPhone(phone)}
} - {email &&{email}
} -Interested in: {lead.interestedService}
- )} + {/* Expanded context sections */} + {contextExpanded && ( +{lead.aiSummary}
+ {lead.aiSuggestedAction && ( +{lead.aiSuggestedAction}
+ )} +{lead.aiSummary}
} - {lead.aiSuggestedAction && ( -{lead.aiSuggestedAction}
+ {/* Quick Actions — upcoming appointments + follow-ups + linked patient */} + {(leadAppointments.length > 0 || leadFollowUps.length > 0 || linkedPatient) && ( +No history for this lead yet.
)}Loading patient details...
} - - {/* Recent activity */} - {leadActivities.length > 0 && ( -{a.summary}
-- {a.activityType?.replace(/_/g, ' ')}{a.occurredAt ? ` · ${formatShortDate(a.occurredAt)}` : ''} -
-Select a lead from the worklist to see context
-