feat: data table improvements — SLA column, pagination, column resize, ordinal dates

- Call Recordings: pagination (15/page), column toggle, sortable SLA/duration/date, ordinal dates, SSE refresh
- Missed Calls: full rewrite matching data table pattern (pagination, column toggle, sort, SLA from entity)
- Call History: SLA column from entity field
- Table component: ResizableTableContainer + ColumnResizer for all tables
- Date formatting: formatDateOrdinal utility (1st April, 2nd March, etc.)
- SLA reads from platform call.sla field (seeded for 200 records)
- AI button long-press triggers OTP-gated cache clear for re-analysis

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-01 16:51:45 +05:30
parent b90740e009
commit 4f5370abdc
8 changed files with 461 additions and 160 deletions

View File

@@ -272,6 +272,7 @@ export type Call = {
patientId: string | null;
appointmentId: string | null;
leadId: string | null;
sla?: number | null;
// Denormalized for display
leadName?: string;
leadPhone?: string;