mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage
synced 2026-04-11 18:28:15 +00:00
feat: post-call workflow — disposition, appointment booking, follow-up creation
ActiveCallCard now handles the full post-call flow: - Call ends → Disposition form appears (6 options + notes) - "Appointment Booked" → Opens appointment booking slideout - "Follow-up Needed" → Auto-creates follow-up in platform - Other dispositions → Logs call and returns to worklist - "Book Appt" button available during active call too - Creates Call record in platform on disposition submit - Removed auto-reset to idle (ActiveCallCard manages lifecycle) - "Back to Worklist" resets SIP state via Jotai atoms Also fixes: - All 7 GraphQL queries corrected (LINKS subfields, field renames) - Campaign edit button moved to bottom-right - Avg Response Time uses Math.abs for seed data edge case Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -21,7 +21,7 @@ export const CallDeskPage = () => {
|
||||
const [selectedLead, setSelectedLead] = useState<WorklistLead | null>(null);
|
||||
const [contextOpen, setContextOpen] = useState(true);
|
||||
|
||||
const isInCall = callState === 'ringing-in' || callState === 'ringing-out' || callState === 'active';
|
||||
const isInCall = callState === 'ringing-in' || callState === 'ringing-out' || callState === 'active' || callState === 'ended' || callState === 'failed';
|
||||
|
||||
const callerLead = callerNumber
|
||||
? marketingLeads.find((l) => l.contactPhone?.[0]?.number?.endsWith(callerNumber) || callerNumber.endsWith(l.contactPhone?.[0]?.number ?? '---'))
|
||||
|
||||
@@ -115,7 +115,7 @@ export const CampaignsPage = () => {
|
||||
leads={leadsByCampaign.get(campaign.id) ?? []}
|
||||
/>
|
||||
</Link>
|
||||
<div className="absolute top-4 right-14">
|
||||
<div className="absolute bottom-4 right-4 z-10">
|
||||
<Button
|
||||
size="sm"
|
||||
color="secondary"
|
||||
|
||||
Reference in New Issue
Block a user