@edvak99/voice-receptionist-widget 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/fesm2022/edvak99-voice-receptionist-widget-activities-page.component-DT9UKvQO.mjs +307 -0
- package/fesm2022/edvak99-voice-receptionist-widget-activities-page.component-DT9UKvQO.mjs.map +1 -0
- package/fesm2022/{edvak99-voice-receptionist-widget-edvak99-voice-receptionist-widget-CMhknpGf.mjs → edvak99-voice-receptionist-widget-ai-receptionist-api.service-48cifVPF.mjs} +1351 -579
- package/fesm2022/edvak99-voice-receptionist-widget-ai-receptionist-api.service-48cifVPF.mjs.map +1 -0
- package/fesm2022/edvak99-voice-receptionist-widget-analytics-page.component-C5inEHJw.mjs +278 -0
- package/fesm2022/edvak99-voice-receptionist-widget-analytics-page.component-C5inEHJw.mjs.map +1 -0
- package/fesm2022/edvak99-voice-receptionist-widget-call-history-detail-page.component-sYhM20CE.mjs +418 -0
- package/fesm2022/edvak99-voice-receptionist-widget-call-history-detail-page.component-sYhM20CE.mjs.map +1 -0
- package/fesm2022/edvak99-voice-receptionist-widget-call-history-page.component-DpwajEOE.mjs +194 -0
- package/fesm2022/edvak99-voice-receptionist-widget-call-history-page.component-DpwajEOE.mjs.map +1 -0
- package/fesm2022/{edvak99-voice-receptionist-widget-call-recording-player.component-AN6GcSDq.mjs → edvak99-voice-receptionist-widget-call-recording-player.component-CgkRcFOl.mjs} +5 -4
- package/fesm2022/{edvak99-voice-receptionist-widget-call-recording-player.component-AN6GcSDq.mjs.map → edvak99-voice-receptionist-widget-call-recording-player.component-CgkRcFOl.mjs.map} +1 -1
- package/fesm2022/{edvak99-voice-receptionist-widget-call-review.service-Cy_Bf7AO.mjs → edvak99-voice-receptionist-widget-call-review.service-CIMcjGKX.mjs} +2 -2
- package/fesm2022/{edvak99-voice-receptionist-widget-call-review.service-Cy_Bf7AO.mjs.map → edvak99-voice-receptionist-widget-call-review.service-CIMcjGKX.mjs.map} +1 -1
- package/fesm2022/edvak99-voice-receptionist-widget-call-review.util-Deh3jPgo.mjs +21 -0
- package/fesm2022/edvak99-voice-receptionist-widget-call-review.util-Deh3jPgo.mjs.map +1 -0
- package/fesm2022/edvak99-voice-receptionist-widget-dashboard-page.component-CxbO0eDS.mjs +440 -0
- package/fesm2022/edvak99-voice-receptionist-widget-dashboard-page.component-CxbO0eDS.mjs.map +1 -0
- package/fesm2022/{edvak99-voice-receptionist-widget-eds-elapsed.pipe-ouRlPpwT.mjs → edvak99-voice-receptionist-widget-dashboard-socket.service-BX91r74O.mjs} +5 -21
- package/fesm2022/edvak99-voice-receptionist-widget-dashboard-socket.service-BX91r74O.mjs.map +1 -0
- package/fesm2022/edvak99-voice-receptionist-widget-eds-avatar.component-CWRiJGfv.mjs +38 -0
- package/fesm2022/edvak99-voice-receptionist-widget-eds-avatar.component-CWRiJGfv.mjs.map +1 -0
- package/fesm2022/edvak99-voice-receptionist-widget-eds-button.component-Bg5T5BN8.mjs +27 -0
- package/fesm2022/edvak99-voice-receptionist-widget-eds-button.component-Bg5T5BN8.mjs.map +1 -0
- package/fesm2022/edvak99-voice-receptionist-widget-eds-elapsed.pipe-BFCiJOT3.mjs +22 -0
- package/fesm2022/edvak99-voice-receptionist-widget-eds-elapsed.pipe-BFCiJOT3.mjs.map +1 -0
- package/fesm2022/{edvak99-voice-receptionist-widget-live-calls-list.service-CDtFRW8w.mjs → edvak99-voice-receptionist-widget-eds-pulse-dot.component-BPY6xN7C.mjs} +15 -5
- package/fesm2022/edvak99-voice-receptionist-widget-eds-pulse-dot.component-BPY6xN7C.mjs.map +1 -0
- package/fesm2022/edvak99-voice-receptionist-widget-edvak99-voice-receptionist-widget-BsBQIS_f.mjs +203 -0
- package/fesm2022/edvak99-voice-receptionist-widget-edvak99-voice-receptionist-widget-BsBQIS_f.mjs.map +1 -0
- package/fesm2022/edvak99-voice-receptionist-widget-live-calls-page.component-CaSDMxpV.mjs +81 -0
- package/fesm2022/edvak99-voice-receptionist-widget-live-calls-page.component-CaSDMxpV.mjs.map +1 -0
- package/fesm2022/edvak99-voice-receptionist-widget-live-monitor-page.component-Cy3ND-c-.mjs +1070 -0
- package/fesm2022/edvak99-voice-receptionist-widget-live-monitor-page.component-Cy3ND-c-.mjs.map +1 -0
- package/fesm2022/edvak99-voice-receptionist-widget-modal.component-COfi7biN.mjs +48 -0
- package/fesm2022/edvak99-voice-receptionist-widget-modal.component-COfi7biN.mjs.map +1 -0
- package/fesm2022/edvak99-voice-receptionist-widget-outbound-purpose.util-Bdh4QfFe.mjs +127 -0
- package/fesm2022/edvak99-voice-receptionist-widget-outbound-purpose.util-Bdh4QfFe.mjs.map +1 -0
- package/fesm2022/edvak99-voice-receptionist-widget-outbound-purposes-page.component-fHVzpiVk.mjs +268 -0
- package/fesm2022/edvak99-voice-receptionist-widget-outbound-purposes-page.component-fHVzpiVk.mjs.map +1 -0
- package/fesm2022/edvak99-voice-receptionist-widget-settings-page.component-Bok64X2q.mjs +968 -0
- package/fesm2022/edvak99-voice-receptionist-widget-settings-page.component-Bok64X2q.mjs.map +1 -0
- package/fesm2022/edvak99-voice-receptionist-widget-tasks-page.component-Bb9lPcYi.mjs +317 -0
- package/fesm2022/edvak99-voice-receptionist-widget-tasks-page.component-Bb9lPcYi.mjs.map +1 -0
- package/fesm2022/{edvak99-voice-receptionist-widget-wizard-page.component-CJLa5pia.mjs → edvak99-voice-receptionist-widget-wizard-page.component-BZVlWLWh.mjs} +6 -4
- package/fesm2022/{edvak99-voice-receptionist-widget-wizard-page.component-CJLa5pia.mjs.map → edvak99-voice-receptionist-widget-wizard-page.component-BZVlWLWh.mjs.map} +1 -1
- package/fesm2022/edvak99-voice-receptionist-widget.mjs +1 -1
- package/lib/components/call-conversation-panel/call-conversation-panel.component.d.ts +9 -6
- package/lib/components/call-tasks-panel/call-tasks-panel.component.d.ts +8 -8
- package/lib/components/knowledge-test-modal/knowledge-test-modal.component.d.ts +28 -0
- package/lib/components/live-transcript-panel/live-transcript-panel.component.d.ts +7 -4
- package/lib/components/outbound-dial-modal/outbound-dial-modal.component.d.ts +26 -0
- package/lib/layout/eds-module-nav.component.d.ts +0 -3
- package/lib/mocks/agent-activity.seed.d.ts +2 -0
- package/lib/models/agent-activity.types.d.ts +54 -0
- package/lib/models/ai-receptionist.types.d.ts +26 -0
- package/lib/models/api-dto.types.d.ts +18 -0
- package/lib/models/live-transcript.types.d.ts +2 -1
- package/lib/models/outbound-patient.types.d.ts +23 -0
- package/lib/models/outbound-purpose.types.d.ts +2 -0
- package/lib/models/pagination.d.ts +11 -0
- package/lib/models/staff-media.types.d.ts +36 -0
- package/lib/pages/activities-page/activities-page.component.d.ts +57 -0
- package/lib/pages/analytics-page/analytics-page.component.d.ts +38 -14
- package/lib/pages/call-history-detail-page/call-history-detail-page.component.d.ts +2 -3
- package/lib/pages/call-history-page/call-history-page.component.d.ts +16 -9
- package/lib/pages/dashboard-page/dashboard-page.component.d.ts +12 -8
- package/lib/pages/live-calls-page/live-calls-page.component.d.ts +14 -24
- package/lib/pages/live-monitor-page/live-monitor-page.component.d.ts +34 -1
- package/lib/pages/settings-page/settings-fields.config.d.ts +16 -0
- package/lib/pages/settings-page/settings-page.component.d.ts +48 -14
- package/lib/pages/tasks-page/tasks-page.component.d.ts +6 -0
- package/lib/services/ai-receptionist-api.mock.d.ts +44 -9
- package/lib/services/ai-receptionist-api.service.d.ts +65 -10
- package/lib/services/live-transcript.service.d.ts +1 -0
- package/lib/services/staff-media.service.d.ts +52 -0
- package/lib/ui/eds-avatar.component.d.ts +5 -2
- package/lib/ui/eds-button.component.d.ts +1 -1
- package/lib/utils/call-history-display.util.d.ts +21 -0
- package/lib/utils/outbound-purpose.util.d.ts +19 -0
- package/lib/utils/transcript-timing.util.d.ts +1 -1
- package/lib/utils/welcome-message.util.d.ts +1 -1
- package/package.json +2 -1
- package/styles/_index.scss +5 -40
- package/styles/chat-ui.scss +18 -18
- package/styles/eds.scss +188 -119
- package/fesm2022/edvak99-voice-receptionist-widget-analytics-page.component-CW5OKmik.mjs +0 -113
- package/fesm2022/edvak99-voice-receptionist-widget-analytics-page.component-CW5OKmik.mjs.map +0 -1
- package/fesm2022/edvak99-voice-receptionist-widget-audit-page.component-DL1GfQyF.mjs +0 -35
- package/fesm2022/edvak99-voice-receptionist-widget-audit-page.component-DL1GfQyF.mjs.map +0 -1
- package/fesm2022/edvak99-voice-receptionist-widget-call-history-detail-page.component-CTwfUHUf.mjs +0 -316
- package/fesm2022/edvak99-voice-receptionist-widget-call-history-detail-page.component-CTwfUHUf.mjs.map +0 -1
- package/fesm2022/edvak99-voice-receptionist-widget-call-history-page.component-Cj4wxd4e.mjs +0 -138
- package/fesm2022/edvak99-voice-receptionist-widget-call-history-page.component-Cj4wxd4e.mjs.map +0 -1
- package/fesm2022/edvak99-voice-receptionist-widget-call-review.util-DQLIw7xb.mjs +0 -70
- package/fesm2022/edvak99-voice-receptionist-widget-call-review.util-DQLIw7xb.mjs.map +0 -1
- package/fesm2022/edvak99-voice-receptionist-widget-dashboard-page.component-DzdIt2A7.mjs +0 -248
- package/fesm2022/edvak99-voice-receptionist-widget-dashboard-page.component-DzdIt2A7.mjs.map +0 -1
- package/fesm2022/edvak99-voice-receptionist-widget-eds-avatar.component-PCnIWeOA.mjs +0 -27
- package/fesm2022/edvak99-voice-receptionist-widget-eds-avatar.component-PCnIWeOA.mjs.map +0 -1
- package/fesm2022/edvak99-voice-receptionist-widget-eds-elapsed.pipe-ouRlPpwT.mjs.map +0 -1
- package/fesm2022/edvak99-voice-receptionist-widget-edvak99-voice-receptionist-widget-CMhknpGf.mjs.map +0 -1
- package/fesm2022/edvak99-voice-receptionist-widget-knowledge-hub.page-cZqBuull.mjs +0 -575
- package/fesm2022/edvak99-voice-receptionist-widget-knowledge-hub.page-cZqBuull.mjs.map +0 -1
- package/fesm2022/edvak99-voice-receptionist-widget-live-calls-list.service-CDtFRW8w.mjs.map +0 -1
- package/fesm2022/edvak99-voice-receptionist-widget-live-calls-page.component-DrYzXJQW.mjs +0 -115
- package/fesm2022/edvak99-voice-receptionist-widget-live-calls-page.component-DrYzXJQW.mjs.map +0 -1
- package/fesm2022/edvak99-voice-receptionist-widget-live-monitor-page.component-D7dlk0y2.mjs +0 -574
- package/fesm2022/edvak99-voice-receptionist-widget-live-monitor-page.component-D7dlk0y2.mjs.map +0 -1
- package/fesm2022/edvak99-voice-receptionist-widget-outbound-purpose.util-BQECIuJu.mjs +0 -54
- package/fesm2022/edvak99-voice-receptionist-widget-outbound-purpose.util-BQECIuJu.mjs.map +0 -1
- package/fesm2022/edvak99-voice-receptionist-widget-outbound-purposes-page.component-CJ8NEjcj.mjs +0 -265
- package/fesm2022/edvak99-voice-receptionist-widget-outbound-purposes-page.component-CJ8NEjcj.mjs.map +0 -1
- package/fesm2022/edvak99-voice-receptionist-widget-settings-page.component-Bo3XNK3b.mjs +0 -509
- package/fesm2022/edvak99-voice-receptionist-widget-settings-page.component-Bo3XNK3b.mjs.map +0 -1
- package/fesm2022/edvak99-voice-receptionist-widget-task.util-DdtI0CR3.mjs +0 -52
- package/fesm2022/edvak99-voice-receptionist-widget-task.util-DdtI0CR3.mjs.map +0 -1
- package/fesm2022/edvak99-voice-receptionist-widget-tasks-page.component-CBwl15NP.mjs +0 -237
- package/fesm2022/edvak99-voice-receptionist-widget-tasks-page.component-CBwl15NP.mjs.map +0 -1
- package/lib/knowledge/components/faq-empty-state/faq-empty-state.component.d.ts +0 -22
- package/lib/knowledge/components/faq-form/faq-form.component.d.ts +0 -27
- package/lib/knowledge/components/faq-search-tester/faq-search-tester.component.d.ts +0 -17
- package/lib/knowledge/mocks/practice-faq.seed.d.ts +0 -2
- package/lib/knowledge/models/practice-faq.model.d.ts +0 -47
- package/lib/knowledge/pages/knowledge-hub.page.d.ts +0 -47
- package/lib/knowledge/services/practice-faq-api.mock.d.ts +0 -16
- package/lib/knowledge/services/practice-faq-api.service.d.ts +0 -22
- package/lib/knowledge/utils/faq.util.d.ts +0 -3
- package/lib/layout/eds-topbar.component.d.ts +0 -29
- package/lib/pages/audit-page/audit-page.component.d.ts +0 -14
- package/lib/ui/eds-waveform.component.d.ts +0 -8
package/fesm2022/edvak99-voice-receptionist-widget-call-history-detail-page.component-sYhM20CE.mjs
ADDED
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, input, output, viewChild, signal, computed, effect, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { RouterLink, ActivatedRoute } from '@angular/router';
|
|
4
|
+
import { DatePipe } from '@angular/common';
|
|
5
|
+
import { A as AiReceptionistApiService, g as toolEventTrackKey, l as activityTypeLabel, i as isUnknownCaller } from './edvak99-voice-receptionist-widget-ai-receptionist-api.service-48cifVPF.mjs';
|
|
6
|
+
import { T as ToastService, a as EdsBadgeComponent, E as EdsIconComponent } from './edvak99-voice-receptionist-widget-edvak99-voice-receptionist-widget-BsBQIS_f.mjs';
|
|
7
|
+
import { C as CallRecordingPlayerComponent } from './edvak99-voice-receptionist-widget-call-recording-player.component-CgkRcFOl.mjs';
|
|
8
|
+
import { E as EdsButtonComponent } from './edvak99-voice-receptionist-widget-eds-button.component-Bg5T5BN8.mjs';
|
|
9
|
+
import { C as CallReviewService } from './edvak99-voice-receptionist-widget-call-review.service-CIMcjGKX.mjs';
|
|
10
|
+
import { i as isNeedsReview } from './edvak99-voice-receptionist-widget-call-review.util-Deh3jPgo.mjs';
|
|
11
|
+
|
|
12
|
+
/** Parse tool timestamp strings like "1:02" or "0:42" into seconds. */
|
|
13
|
+
function parseClockTime(value) {
|
|
14
|
+
const trimmed = value?.trim();
|
|
15
|
+
if (!trimmed)
|
|
16
|
+
return null;
|
|
17
|
+
const parts = trimmed.split(':').map((p) => Number(p));
|
|
18
|
+
if (parts.some((n) => Number.isNaN(n)))
|
|
19
|
+
return null;
|
|
20
|
+
if (parts.length === 2)
|
|
21
|
+
return parts[0] * 60 + parts[1];
|
|
22
|
+
if (parts.length === 3)
|
|
23
|
+
return parts[0] * 3600 + parts[1] * 60 + parts[2];
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
function resolveLineStart(line) {
|
|
27
|
+
if (line.at != null && line.at >= 0)
|
|
28
|
+
return line.at;
|
|
29
|
+
const raw = line;
|
|
30
|
+
if (raw.offsetSeconds != null && raw.offsetSeconds >= 0)
|
|
31
|
+
return raw.offsetSeconds;
|
|
32
|
+
if (raw.startTime != null && raw.startTime >= 0)
|
|
33
|
+
return raw.startTime;
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Assign start/end seconds to transcript lines for audio sync.
|
|
38
|
+
* Uses explicit `at` when present; otherwise estimates from call duration.
|
|
39
|
+
*/
|
|
40
|
+
function buildTimedTranscript(lines, durationSeconds) {
|
|
41
|
+
if (!lines.length)
|
|
42
|
+
return [];
|
|
43
|
+
const total = Math.max(durationSeconds, 1);
|
|
44
|
+
const explicit = lines.map((line) => resolveLineStart(line));
|
|
45
|
+
const allExplicit = explicit.every((t) => t != null);
|
|
46
|
+
const starts = new Array(lines.length).fill(0);
|
|
47
|
+
if (allExplicit) {
|
|
48
|
+
for (let i = 0; i < lines.length; i += 1) {
|
|
49
|
+
starts[i] = explicit[i];
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
const speakableCount = lines.filter((l) => l.who !== 'system').length;
|
|
54
|
+
const step = total / Math.max(speakableCount, 1);
|
|
55
|
+
let speakableIdx = 0;
|
|
56
|
+
for (let i = 0; i < lines.length; i += 1) {
|
|
57
|
+
if (explicit[i] != null) {
|
|
58
|
+
starts[i] = explicit[i];
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
const line = lines[i];
|
|
62
|
+
if (line.who === 'system') {
|
|
63
|
+
starts[i] = i > 0 ? starts[i - 1] : 0;
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
starts[i] = speakableIdx * step;
|
|
67
|
+
speakableIdx += 1;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return lines.map((line, index) => {
|
|
71
|
+
const startSec = starts[index];
|
|
72
|
+
const nextStart = starts.slice(index + 1).find((s) => s > startSec);
|
|
73
|
+
const endSec = nextStart ?? total;
|
|
74
|
+
return { ...line, startSec, endSec: Math.max(endSec, startSec + 0.5), index };
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
function activeTranscriptIndex(lines, currentSec) {
|
|
78
|
+
if (!lines.length || currentSec < 0)
|
|
79
|
+
return -1;
|
|
80
|
+
for (let i = lines.length - 1; i >= 0; i -= 1) {
|
|
81
|
+
if (currentSec >= lines[i].startSec)
|
|
82
|
+
return i;
|
|
83
|
+
}
|
|
84
|
+
return 0;
|
|
85
|
+
}
|
|
86
|
+
function formatPlaybackTime(seconds) {
|
|
87
|
+
const s = Math.max(0, Math.floor(seconds));
|
|
88
|
+
const m = Math.floor(s / 60);
|
|
89
|
+
const r = s % 60;
|
|
90
|
+
return `${m}:${r.toString().padStart(2, '0')}`;
|
|
91
|
+
}
|
|
92
|
+
function toolStateClass(state) {
|
|
93
|
+
const map = {
|
|
94
|
+
ok: 'call-conversation__tool--ok',
|
|
95
|
+
warn: 'call-conversation__tool--warn',
|
|
96
|
+
error: 'call-conversation__tool--error',
|
|
97
|
+
active: 'call-conversation__tool--active',
|
|
98
|
+
};
|
|
99
|
+
return map[state] ?? '';
|
|
100
|
+
}
|
|
101
|
+
function transcriptRoleLabel(who, callerName, callerMatched) {
|
|
102
|
+
if (who === 'patient') {
|
|
103
|
+
const name = String(callerName ?? '').trim();
|
|
104
|
+
if (!name || callerMatched === false || /^unknown/i.test(name) || name === '?') {
|
|
105
|
+
return 'Unknown caller';
|
|
106
|
+
}
|
|
107
|
+
return name;
|
|
108
|
+
}
|
|
109
|
+
const labels = {
|
|
110
|
+
ai: 'AI receptionist',
|
|
111
|
+
staff: 'Staff',
|
|
112
|
+
system: 'System',
|
|
113
|
+
};
|
|
114
|
+
return labels[who] ?? who;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
class CallConversationPanelComponent {
|
|
118
|
+
roleLabel(who) {
|
|
119
|
+
return transcriptRoleLabel(who, this.callerName(), this.callerMatched() ?? undefined);
|
|
120
|
+
}
|
|
121
|
+
speakerIcon(who) {
|
|
122
|
+
switch (who) {
|
|
123
|
+
case 'ai':
|
|
124
|
+
return 'graphic_eq';
|
|
125
|
+
case 'staff':
|
|
126
|
+
return 'support_agent';
|
|
127
|
+
case 'patient':
|
|
128
|
+
return 'person';
|
|
129
|
+
default:
|
|
130
|
+
return 'info';
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
toolTone(state) {
|
|
134
|
+
switch (state) {
|
|
135
|
+
case 'ok':
|
|
136
|
+
return 'pos';
|
|
137
|
+
case 'warn':
|
|
138
|
+
return 'notice';
|
|
139
|
+
case 'error':
|
|
140
|
+
return 'neg';
|
|
141
|
+
case 'active':
|
|
142
|
+
return 'brand';
|
|
143
|
+
default:
|
|
144
|
+
return 'gray';
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
constructor() {
|
|
148
|
+
this.api = inject(AiReceptionistApiService);
|
|
149
|
+
this.toast = inject(ToastService);
|
|
150
|
+
this.callId = input.required();
|
|
151
|
+
this.summary = input.required();
|
|
152
|
+
this.transcript = input.required();
|
|
153
|
+
this.tools = input.required();
|
|
154
|
+
this.callDurationSec = input(0);
|
|
155
|
+
this.allowRegenerate = input(true);
|
|
156
|
+
this.callerName = input(null);
|
|
157
|
+
this.callerMatched = input(null);
|
|
158
|
+
this.summaryRegenerated = output();
|
|
159
|
+
this.player = viewChild(CallRecordingPlayerComponent);
|
|
160
|
+
this.scrollHost = viewChild('scrollHost');
|
|
161
|
+
this.currentTime = signal(0);
|
|
162
|
+
this.playbackDuration = signal(0);
|
|
163
|
+
this.summaryExpanded = signal(false);
|
|
164
|
+
this.regeneratedSummary = signal(null);
|
|
165
|
+
this.displaySummary = computed(() => this.regeneratedSummary() ?? this.summary());
|
|
166
|
+
this.regenerating = signal(false);
|
|
167
|
+
this.summaryMeta = signal(null);
|
|
168
|
+
this.timedLines = computed(() => buildTimedTranscript(this.transcript(), this.playbackDuration() || this.callDurationSec() || 120));
|
|
169
|
+
this.activeIndex = computed(() => activeTranscriptIndex(this.timedLines(), this.currentTime()));
|
|
170
|
+
this.hasExplicitTiming = computed(() => this.transcript().some((line) => line.at != null));
|
|
171
|
+
this.toolClass = toolStateClass;
|
|
172
|
+
this.formatTime = formatPlaybackTime;
|
|
173
|
+
this.toolTrackKey = toolEventTrackKey;
|
|
174
|
+
effect(() => {
|
|
175
|
+
this.callId();
|
|
176
|
+
this.regeneratedSummary.set(null);
|
|
177
|
+
}, { allowSignalWrites: true });
|
|
178
|
+
effect(() => {
|
|
179
|
+
const idx = this.activeIndex();
|
|
180
|
+
const host = this.scrollHost()?.nativeElement;
|
|
181
|
+
if (idx < 0 || !host)
|
|
182
|
+
return;
|
|
183
|
+
const row = host.querySelector(`[data-line-index="${idx}"]`);
|
|
184
|
+
if (row instanceof HTMLElement) {
|
|
185
|
+
row.scrollIntoView({ block: 'nearest', behavior: 'smooth' });
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
onPlaybackTime(sec) {
|
|
190
|
+
this.currentTime.set(sec);
|
|
191
|
+
}
|
|
192
|
+
onPlaybackDuration(sec) {
|
|
193
|
+
this.playbackDuration.set(sec);
|
|
194
|
+
}
|
|
195
|
+
seekLine(line) {
|
|
196
|
+
if (line.who === 'system')
|
|
197
|
+
return;
|
|
198
|
+
this.player()?.seekTo(line.startSec);
|
|
199
|
+
}
|
|
200
|
+
toggleSummary() {
|
|
201
|
+
this.summaryExpanded.update((v) => !v);
|
|
202
|
+
}
|
|
203
|
+
regenerateSummary() {
|
|
204
|
+
if (this.regenerating())
|
|
205
|
+
return;
|
|
206
|
+
this.regenerating.set(true);
|
|
207
|
+
this.api.regenerateCallSummary(this.callId()).subscribe({
|
|
208
|
+
next: ({ data }) => {
|
|
209
|
+
this.regenerating.set(false);
|
|
210
|
+
this.regeneratedSummary.set(data.summary);
|
|
211
|
+
this.summaryExpanded.set(true);
|
|
212
|
+
this.summaryMeta.set({
|
|
213
|
+
model: data.summaryModel,
|
|
214
|
+
generatedAt: data.summaryGeneratedAt,
|
|
215
|
+
turnCount: data.transcriptTurnCount,
|
|
216
|
+
});
|
|
217
|
+
this.summaryRegenerated.emit();
|
|
218
|
+
this.toast.show('Call summary regenerated', 'success');
|
|
219
|
+
},
|
|
220
|
+
error: (err) => {
|
|
221
|
+
this.regenerating.set(false);
|
|
222
|
+
this.toast.show(err.message ?? 'Failed to regenerate summary', 'error');
|
|
223
|
+
},
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: CallConversationPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
227
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: CallConversationPanelComponent, isStandalone: true, selector: "eds-call-conversation-panel", inputs: { callId: { classPropertyName: "callId", publicName: "callId", isSignal: true, isRequired: true, transformFunction: null }, summary: { classPropertyName: "summary", publicName: "summary", isSignal: true, isRequired: true, transformFunction: null }, transcript: { classPropertyName: "transcript", publicName: "transcript", isSignal: true, isRequired: true, transformFunction: null }, tools: { classPropertyName: "tools", publicName: "tools", isSignal: true, isRequired: true, transformFunction: null }, callDurationSec: { classPropertyName: "callDurationSec", publicName: "callDurationSec", isSignal: true, isRequired: false, transformFunction: null }, allowRegenerate: { classPropertyName: "allowRegenerate", publicName: "allowRegenerate", isSignal: true, isRequired: false, transformFunction: null }, callerName: { classPropertyName: "callerName", publicName: "callerName", isSignal: true, isRequired: false, transformFunction: null }, callerMatched: { classPropertyName: "callerMatched", publicName: "callerMatched", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { summaryRegenerated: "summaryRegenerated" }, viewQueries: [{ propertyName: "player", first: true, predicate: CallRecordingPlayerComponent, descendants: true, isSignal: true }, { propertyName: "scrollHost", first: true, predicate: ["scrollHost"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"call-conversation\">\n <div class=\"call-conversation__overview\">\n <section class=\"call-conversation__summary eds-card\">\n <div class=\"call-conversation__summary-head\">\n <button type=\"button\" class=\"call-conversation__summary-toggle\" (click)=\"toggleSummary()\">\n <eds-icon [name]=\"summaryExpanded() ? 'expand_less' : 'expand_more'\" [size]=\"20\" />\n <h2 class=\"eds-h2\">Call summary</h2>\n </button>\n @if (allowRegenerate()) {\n <eds-button\n variant=\"secondary\"\n type=\"button\"\n [disabled]=\"regenerating()\"\n (click)=\"regenerateSummary()\"\n >\n <eds-icon name=\"autorenew\" [size]=\"18\" />\n {{ regenerating() ? 'Regenerating\u2026' : 'Regenerate' }}\n </eds-button>\n }\n </div>\n @if (summaryExpanded() || displaySummary().length < 180) {\n <p class=\"call-conversation__summary-text eds-body\">{{ displaySummary() }}</p>\n } @else {\n <p class=\"call-conversation__summary-text eds-body call-conversation__summary-text--clip\">\n {{ displaySummary() }}\n </p>\n <button type=\"button\" class=\"call-conversation__read-more\" (click)=\"toggleSummary()\">Read full summary</button>\n }\n @if (summaryMeta(); as meta) {\n <p class=\"call-conversation__summary-meta eds-body-sm\">\n @if (meta.model) {\n <span>Model: {{ meta.model }}</span>\n }\n @if (meta.generatedAt) {\n <span>Generated {{ meta.generatedAt | date: 'medium' }}</span>\n }\n @if (meta.turnCount != null) {\n <span>{{ meta.turnCount }} transcript turns</span>\n }\n </p>\n }\n </section>\n <ng-content select=\"[summary-side]\" />\n </div>\n\n <section class=\"call-conversation__recording eds-card\">\n <eds-call-recording-player\n [callId]=\"callId()\"\n (currentTimeChange)=\"onPlaybackTime($event)\"\n (durationChange)=\"onPlaybackDuration($event)\"\n />\n </section>\n\n <div class=\"call-conversation__grid\">\n <section class=\"eds-card call-conversation__transcript\" aria-labelledby=\"call-transcript-title\">\n <header class=\"call-conversation__section-head\">\n <h2 id=\"call-transcript-title\" class=\"eds-h2\">Transcript</h2>\n @if (playbackDuration() > 0) {\n <span class=\"eds-mono-sm call-conversation__playback-clock\">\n {{ formatTime(currentTime()) }} / {{ formatTime(playbackDuration()) }}\n </span>\n }\n </header>\n\n <div #scrollHost class=\"call-conversation__scroll\" role=\"log\">\n @for (line of timedLines(); track line.index) {\n @if (line.who === 'system') {\n <div\n class=\"call-conversation__system\"\n [attr.data-line-index]=\"line.index\"\n [class.call-conversation__system--active]=\"line.index === activeIndex()\"\n >\n <eds-icon name=\"info\" [size]=\"14\" />\n <span>{{ line.text }}</span>\n </div>\n } @else {\n <article\n class=\"call-conversation__msg\"\n [class]=\"'call-conversation__msg--' + line.who\"\n [class.call-conversation__msg--active]=\"line.index === activeIndex()\"\n [attr.data-line-index]=\"line.index\"\n [attr.data-who]=\"line.who\"\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-current]=\"line.index === activeIndex() ? 'true' : null\"\n (click)=\"seekLine(line)\"\n (keyup.enter)=\"seekLine(line)\"\n >\n <div class=\"call-conversation__avatar\" [attr.data-who]=\"line.who\">\n <eds-icon [name]=\"speakerIcon(line.who)\" [size]=\"16\" />\n </div>\n <div class=\"call-conversation__content\">\n <span class=\"call-conversation__label\">\n {{ roleLabel(line.who) }}\n <span class=\"call-conversation__stamp\">{{ formatTime(line.startSec) }}</span>\n </span>\n <div class=\"call-conversation__bubble\">\n <p>{{ line.text }}</p>\n </div>\n </div>\n </article>\n }\n } @empty {\n <p class=\"eds-body-sm call-conversation__empty\">No transcript available for this call.</p>\n }\n </div>\n </section>\n\n <aside class=\"eds-card call-conversation__tools\" aria-labelledby=\"call-tools-title\">\n <header class=\"call-conversation__section-head\">\n <h2 id=\"call-tools-title\" class=\"eds-h2\">Tools used</h2>\n <span class=\"eds-body-sm\">{{ tools().length }}</span>\n </header>\n\n <ul class=\"call-conversation__tool-list\">\n @for (tool of tools(); track toolTrackKey(tool, $index)) {\n <li class=\"call-conversation__tool\" [class]=\"toolClass(tool.state)\">\n <span class=\"eds-mono-sm call-conversation__tool-time\">{{ tool.t }}</span>\n <div class=\"call-conversation__tool-body\">\n <span class=\"eds-body-sm-bold\">{{ tool.name }}</span>\n <span class=\"eds-body-sm\">{{ tool.result }}</span>\n </div>\n <eds-badge [tone]=\"toolTone(tool.state)\">{{ tool.state }}</eds-badge>\n </li>\n } @empty {\n <li class=\"eds-body-sm call-conversation__empty\">No tool activity recorded.</li>\n }\n </ul>\n </aside>\n </div>\n</div>\n", styles: [".call-conversation{display:flex;flex-direction:column;gap:16px}.call-conversation__overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:stretch}.call-conversation__recording{padding:0;overflow:hidden;background:var(--eds-surface-l0)}.call-conversation__sync-hint{margin:0;padding:0 16px 12px;color:var(--eds-text-secondary)}.call-conversation__summary{padding:16px}.call-conversation__summary-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.call-conversation__summary-toggle{display:flex;align-items:center;gap:4px;flex:1;min-width:0;border:none;background:none;padding:0;cursor:pointer;text-align:left}.call-conversation__summary-toggle .eds-h2{margin:0}.call-conversation__summary-text{margin:10px 0 0;line-height:1.55}.call-conversation__summary-text--clip{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.call-conversation__read-more{border:none;background:none;color:var(--eds-brand-500, #0d9488);font-size:13px;cursor:pointer;padding:4px 0 0}.call-conversation__summary-meta{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0 0;color:var(--eds-text-secondary)}.call-conversation__grid{display:grid;grid-template-columns:1fr 300px;gap:16px;align-items:start}.call-conversation__section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.call-conversation__section-head .eds-h2{margin:0}.call-conversation__playback-clock{color:var(--eds-text-secondary)}.call-conversation__transcript,.call-conversation__tools{padding:16px}.call-conversation__scroll{display:flex;flex-direction:column;gap:12px;max-height:min(62vh,640px);overflow-y:auto;padding:12px;background:#fafafa;border:1px solid var(--eds-border-default, #e4e4e7);border-radius:12px}.call-conversation__system{display:inline-flex;align-items:center;gap:8px;align-self:center;max-width:90%;padding:6px 12px;border-radius:999px;background:#f4f4f5;color:var(--eds-text-secondary, #71717a);font:400 12px/1.3 var(--eds-font-inter)}.call-conversation__system--active{outline:2px solid rgba(33,98,240,.35)}.call-conversation__msg{display:flex;gap:10px;max-width:72%;border:none;background:transparent;padding:0;cursor:pointer;text-align:left;font:inherit;color:inherit}.call-conversation__msg--patient{align-self:flex-start;margin-right:auto}.call-conversation__msg--patient .call-conversation__content{align-items:flex-start}.call-conversation__msg--patient .call-conversation__bubble{border-radius:4px 12px 12px;background:#fff;border-color:var(--eds-border-default, #e4e4e7)}.call-conversation__msg--ai,.call-conversation__msg--staff{align-self:flex-end;margin-left:auto;flex-direction:row-reverse}.call-conversation__msg--ai .call-conversation__content,.call-conversation__msg--staff .call-conversation__content{align-items:flex-end}.call-conversation__msg--ai .call-conversation__bubble,.call-conversation__msg--staff .call-conversation__bubble{border-radius:12px 4px 12px 12px}.call-conversation__msg--ai .call-conversation__bubble{background:#eff6ff;border-color:#bfdbfe}.call-conversation__msg--staff .call-conversation__bubble{background:#f5f3ff;border-color:#ddd6fe}.call-conversation__msg--staff .call-conversation__bubble p{color:#4c1d95}.call-conversation__msg--active .call-conversation__bubble{box-shadow:0 0 0 2px #2162f047}.call-conversation__avatar{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#fff}.call-conversation__avatar[data-who=ai]{background:linear-gradient(135deg,var(--eds-brand-500, #2162f0),var(--eds-violet-500, #8e51ff))}.call-conversation__avatar[data-who=staff]{background:#f5f3ff;color:#6d28d9;border:1px solid #ddd6fe}.call-conversation__avatar[data-who=patient]{background:#e4e4e7;color:#52525b}.call-conversation__content{display:flex;flex-direction:column;gap:4px;min-width:0}.call-conversation__label{display:inline-flex;align-items:center;gap:8px;font:500 12px/1 var(--eds-font-inter);color:var(--eds-text-secondary, #71717a)}.call-conversation__msg--ai .call-conversation__label{color:var(--eds-brand-600, #2563eb)}.call-conversation__msg--staff .call-conversation__label{color:#6d28d9}.call-conversation__stamp{font:400 11px/1 var(--eds-font-mono, ui-monospace, monospace);color:var(--eds-text-tertiary, #a1a1aa)}.call-conversation__bubble{padding:9px 13px;border-radius:12px;border:1px solid transparent}.call-conversation__bubble p{margin:0;font:400 13px/19px var(--eds-font-inter);color:var(--eds-text-primary, #18181b)}.call-conversation__tool-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;max-height:min(62vh,640px);overflow-y:auto}.call-conversation__tool{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:start;padding:10px;border-radius:var(--eds-radius-md);background:var(--eds-surface-l1);border-left:3px solid var(--eds-gray-400)}.call-conversation__tool--ok{border-left-color:#22c55e}.call-conversation__tool--warn{border-left-color:#f59e0b}.call-conversation__tool--error{border-left-color:#ef4444}.call-conversation__tool--active{border-left-color:var(--eds-brand-500, #0d9488)}.call-conversation__tool-body{display:flex;flex-direction:column;gap:2px;min-width:0}.call-conversation__tool-tech{color:var(--eds-text-secondary)}.call-conversation__tool-time{color:var(--eds-text-secondary);white-space:nowrap}.call-conversation__empty{color:var(--eds-text-secondary);padding:12px 0}@media(max-width:960px){.call-conversation__overview,.call-conversation__grid{grid-template-columns:1fr}.call-conversation__msg{max-width:92%}}\n"], dependencies: [{ kind: "pipe", type: DatePipe, name: "date" }, { kind: "component", type: CallRecordingPlayerComponent, selector: "eds-call-recording-player", inputs: ["callId"], outputs: ["currentTimeChange", "durationChange"] }, { kind: "component", type: EdsBadgeComponent, selector: "eds-badge", inputs: ["tone"] }, { kind: "component", type: EdsButtonComponent, selector: "eds-button", inputs: ["variant", "type", "disabled"] }, { kind: "component", type: EdsIconComponent, selector: "eds-icon", inputs: ["name", "size", "fill", "weight"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
228
|
+
}
|
|
229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: CallConversationPanelComponent, decorators: [{
|
|
230
|
+
type: Component,
|
|
231
|
+
args: [{ selector: 'eds-call-conversation-panel', imports: [
|
|
232
|
+
DatePipe,
|
|
233
|
+
CallRecordingPlayerComponent,
|
|
234
|
+
EdsBadgeComponent,
|
|
235
|
+
EdsButtonComponent,
|
|
236
|
+
EdsIconComponent,
|
|
237
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"call-conversation\">\n <div class=\"call-conversation__overview\">\n <section class=\"call-conversation__summary eds-card\">\n <div class=\"call-conversation__summary-head\">\n <button type=\"button\" class=\"call-conversation__summary-toggle\" (click)=\"toggleSummary()\">\n <eds-icon [name]=\"summaryExpanded() ? 'expand_less' : 'expand_more'\" [size]=\"20\" />\n <h2 class=\"eds-h2\">Call summary</h2>\n </button>\n @if (allowRegenerate()) {\n <eds-button\n variant=\"secondary\"\n type=\"button\"\n [disabled]=\"regenerating()\"\n (click)=\"regenerateSummary()\"\n >\n <eds-icon name=\"autorenew\" [size]=\"18\" />\n {{ regenerating() ? 'Regenerating\u2026' : 'Regenerate' }}\n </eds-button>\n }\n </div>\n @if (summaryExpanded() || displaySummary().length < 180) {\n <p class=\"call-conversation__summary-text eds-body\">{{ displaySummary() }}</p>\n } @else {\n <p class=\"call-conversation__summary-text eds-body call-conversation__summary-text--clip\">\n {{ displaySummary() }}\n </p>\n <button type=\"button\" class=\"call-conversation__read-more\" (click)=\"toggleSummary()\">Read full summary</button>\n }\n @if (summaryMeta(); as meta) {\n <p class=\"call-conversation__summary-meta eds-body-sm\">\n @if (meta.model) {\n <span>Model: {{ meta.model }}</span>\n }\n @if (meta.generatedAt) {\n <span>Generated {{ meta.generatedAt | date: 'medium' }}</span>\n }\n @if (meta.turnCount != null) {\n <span>{{ meta.turnCount }} transcript turns</span>\n }\n </p>\n }\n </section>\n <ng-content select=\"[summary-side]\" />\n </div>\n\n <section class=\"call-conversation__recording eds-card\">\n <eds-call-recording-player\n [callId]=\"callId()\"\n (currentTimeChange)=\"onPlaybackTime($event)\"\n (durationChange)=\"onPlaybackDuration($event)\"\n />\n </section>\n\n <div class=\"call-conversation__grid\">\n <section class=\"eds-card call-conversation__transcript\" aria-labelledby=\"call-transcript-title\">\n <header class=\"call-conversation__section-head\">\n <h2 id=\"call-transcript-title\" class=\"eds-h2\">Transcript</h2>\n @if (playbackDuration() > 0) {\n <span class=\"eds-mono-sm call-conversation__playback-clock\">\n {{ formatTime(currentTime()) }} / {{ formatTime(playbackDuration()) }}\n </span>\n }\n </header>\n\n <div #scrollHost class=\"call-conversation__scroll\" role=\"log\">\n @for (line of timedLines(); track line.index) {\n @if (line.who === 'system') {\n <div\n class=\"call-conversation__system\"\n [attr.data-line-index]=\"line.index\"\n [class.call-conversation__system--active]=\"line.index === activeIndex()\"\n >\n <eds-icon name=\"info\" [size]=\"14\" />\n <span>{{ line.text }}</span>\n </div>\n } @else {\n <article\n class=\"call-conversation__msg\"\n [class]=\"'call-conversation__msg--' + line.who\"\n [class.call-conversation__msg--active]=\"line.index === activeIndex()\"\n [attr.data-line-index]=\"line.index\"\n [attr.data-who]=\"line.who\"\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-current]=\"line.index === activeIndex() ? 'true' : null\"\n (click)=\"seekLine(line)\"\n (keyup.enter)=\"seekLine(line)\"\n >\n <div class=\"call-conversation__avatar\" [attr.data-who]=\"line.who\">\n <eds-icon [name]=\"speakerIcon(line.who)\" [size]=\"16\" />\n </div>\n <div class=\"call-conversation__content\">\n <span class=\"call-conversation__label\">\n {{ roleLabel(line.who) }}\n <span class=\"call-conversation__stamp\">{{ formatTime(line.startSec) }}</span>\n </span>\n <div class=\"call-conversation__bubble\">\n <p>{{ line.text }}</p>\n </div>\n </div>\n </article>\n }\n } @empty {\n <p class=\"eds-body-sm call-conversation__empty\">No transcript available for this call.</p>\n }\n </div>\n </section>\n\n <aside class=\"eds-card call-conversation__tools\" aria-labelledby=\"call-tools-title\">\n <header class=\"call-conversation__section-head\">\n <h2 id=\"call-tools-title\" class=\"eds-h2\">Tools used</h2>\n <span class=\"eds-body-sm\">{{ tools().length }}</span>\n </header>\n\n <ul class=\"call-conversation__tool-list\">\n @for (tool of tools(); track toolTrackKey(tool, $index)) {\n <li class=\"call-conversation__tool\" [class]=\"toolClass(tool.state)\">\n <span class=\"eds-mono-sm call-conversation__tool-time\">{{ tool.t }}</span>\n <div class=\"call-conversation__tool-body\">\n <span class=\"eds-body-sm-bold\">{{ tool.name }}</span>\n <span class=\"eds-body-sm\">{{ tool.result }}</span>\n </div>\n <eds-badge [tone]=\"toolTone(tool.state)\">{{ tool.state }}</eds-badge>\n </li>\n } @empty {\n <li class=\"eds-body-sm call-conversation__empty\">No tool activity recorded.</li>\n }\n </ul>\n </aside>\n </div>\n</div>\n", styles: [".call-conversation{display:flex;flex-direction:column;gap:16px}.call-conversation__overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:stretch}.call-conversation__recording{padding:0;overflow:hidden;background:var(--eds-surface-l0)}.call-conversation__sync-hint{margin:0;padding:0 16px 12px;color:var(--eds-text-secondary)}.call-conversation__summary{padding:16px}.call-conversation__summary-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.call-conversation__summary-toggle{display:flex;align-items:center;gap:4px;flex:1;min-width:0;border:none;background:none;padding:0;cursor:pointer;text-align:left}.call-conversation__summary-toggle .eds-h2{margin:0}.call-conversation__summary-text{margin:10px 0 0;line-height:1.55}.call-conversation__summary-text--clip{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.call-conversation__read-more{border:none;background:none;color:var(--eds-brand-500, #0d9488);font-size:13px;cursor:pointer;padding:4px 0 0}.call-conversation__summary-meta{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0 0;color:var(--eds-text-secondary)}.call-conversation__grid{display:grid;grid-template-columns:1fr 300px;gap:16px;align-items:start}.call-conversation__section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.call-conversation__section-head .eds-h2{margin:0}.call-conversation__playback-clock{color:var(--eds-text-secondary)}.call-conversation__transcript,.call-conversation__tools{padding:16px}.call-conversation__scroll{display:flex;flex-direction:column;gap:12px;max-height:min(62vh,640px);overflow-y:auto;padding:12px;background:#fafafa;border:1px solid var(--eds-border-default, #e4e4e7);border-radius:12px}.call-conversation__system{display:inline-flex;align-items:center;gap:8px;align-self:center;max-width:90%;padding:6px 12px;border-radius:999px;background:#f4f4f5;color:var(--eds-text-secondary, #71717a);font:400 12px/1.3 var(--eds-font-inter)}.call-conversation__system--active{outline:2px solid rgba(33,98,240,.35)}.call-conversation__msg{display:flex;gap:10px;max-width:72%;border:none;background:transparent;padding:0;cursor:pointer;text-align:left;font:inherit;color:inherit}.call-conversation__msg--patient{align-self:flex-start;margin-right:auto}.call-conversation__msg--patient .call-conversation__content{align-items:flex-start}.call-conversation__msg--patient .call-conversation__bubble{border-radius:4px 12px 12px;background:#fff;border-color:var(--eds-border-default, #e4e4e7)}.call-conversation__msg--ai,.call-conversation__msg--staff{align-self:flex-end;margin-left:auto;flex-direction:row-reverse}.call-conversation__msg--ai .call-conversation__content,.call-conversation__msg--staff .call-conversation__content{align-items:flex-end}.call-conversation__msg--ai .call-conversation__bubble,.call-conversation__msg--staff .call-conversation__bubble{border-radius:12px 4px 12px 12px}.call-conversation__msg--ai .call-conversation__bubble{background:#eff6ff;border-color:#bfdbfe}.call-conversation__msg--staff .call-conversation__bubble{background:#f5f3ff;border-color:#ddd6fe}.call-conversation__msg--staff .call-conversation__bubble p{color:#4c1d95}.call-conversation__msg--active .call-conversation__bubble{box-shadow:0 0 0 2px #2162f047}.call-conversation__avatar{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#fff}.call-conversation__avatar[data-who=ai]{background:linear-gradient(135deg,var(--eds-brand-500, #2162f0),var(--eds-violet-500, #8e51ff))}.call-conversation__avatar[data-who=staff]{background:#f5f3ff;color:#6d28d9;border:1px solid #ddd6fe}.call-conversation__avatar[data-who=patient]{background:#e4e4e7;color:#52525b}.call-conversation__content{display:flex;flex-direction:column;gap:4px;min-width:0}.call-conversation__label{display:inline-flex;align-items:center;gap:8px;font:500 12px/1 var(--eds-font-inter);color:var(--eds-text-secondary, #71717a)}.call-conversation__msg--ai .call-conversation__label{color:var(--eds-brand-600, #2563eb)}.call-conversation__msg--staff .call-conversation__label{color:#6d28d9}.call-conversation__stamp{font:400 11px/1 var(--eds-font-mono, ui-monospace, monospace);color:var(--eds-text-tertiary, #a1a1aa)}.call-conversation__bubble{padding:9px 13px;border-radius:12px;border:1px solid transparent}.call-conversation__bubble p{margin:0;font:400 13px/19px var(--eds-font-inter);color:var(--eds-text-primary, #18181b)}.call-conversation__tool-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;max-height:min(62vh,640px);overflow-y:auto}.call-conversation__tool{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:start;padding:10px;border-radius:var(--eds-radius-md);background:var(--eds-surface-l1);border-left:3px solid var(--eds-gray-400)}.call-conversation__tool--ok{border-left-color:#22c55e}.call-conversation__tool--warn{border-left-color:#f59e0b}.call-conversation__tool--error{border-left-color:#ef4444}.call-conversation__tool--active{border-left-color:var(--eds-brand-500, #0d9488)}.call-conversation__tool-body{display:flex;flex-direction:column;gap:2px;min-width:0}.call-conversation__tool-tech{color:var(--eds-text-secondary)}.call-conversation__tool-time{color:var(--eds-text-secondary);white-space:nowrap}.call-conversation__empty{color:var(--eds-text-secondary);padding:12px 0}@media(max-width:960px){.call-conversation__overview,.call-conversation__grid{grid-template-columns:1fr}.call-conversation__msg{max-width:92%}}\n"] }]
|
|
238
|
+
}], ctorParameters: () => [] });
|
|
239
|
+
|
|
240
|
+
const PREVIEW_LIMIT = 4;
|
|
241
|
+
class CallTasksPanelComponent {
|
|
242
|
+
constructor() {
|
|
243
|
+
this.api = inject(AiReceptionistApiService);
|
|
244
|
+
this.callId = input.required();
|
|
245
|
+
this.compact = input(false);
|
|
246
|
+
this.activities = signal([]);
|
|
247
|
+
this.total = signal(0);
|
|
248
|
+
this.loading = signal(true);
|
|
249
|
+
this.previewLimit = PREVIEW_LIMIT;
|
|
250
|
+
this.activityTypeLabel = activityTypeLabel;
|
|
251
|
+
this.previewActivities = computed(() => this.activities().slice(0, PREVIEW_LIMIT));
|
|
252
|
+
}
|
|
253
|
+
ngOnInit() {
|
|
254
|
+
this.api
|
|
255
|
+
.getActivities({
|
|
256
|
+
callId: this.callId(),
|
|
257
|
+
page: 1,
|
|
258
|
+
limit: 50,
|
|
259
|
+
})
|
|
260
|
+
.subscribe({
|
|
261
|
+
next: ({ items, total }) => {
|
|
262
|
+
this.activities.set(items);
|
|
263
|
+
this.total.set(total);
|
|
264
|
+
this.loading.set(false);
|
|
265
|
+
},
|
|
266
|
+
error: () => this.loading.set(false),
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
activitySubline(item) {
|
|
270
|
+
const bits = [
|
|
271
|
+
item.patientName,
|
|
272
|
+
item.visitType,
|
|
273
|
+
item.providerName,
|
|
274
|
+
].filter(Boolean);
|
|
275
|
+
return bits.join(' · ') || item.detail || '—';
|
|
276
|
+
}
|
|
277
|
+
activityTone(type) {
|
|
278
|
+
switch (type) {
|
|
279
|
+
case 'appointment_booked':
|
|
280
|
+
return 'brand';
|
|
281
|
+
case 'patient_created':
|
|
282
|
+
return 'pos';
|
|
283
|
+
case 'task_created':
|
|
284
|
+
return 'notice';
|
|
285
|
+
default:
|
|
286
|
+
return 'gray';
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: CallTasksPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
290
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: CallTasksPanelComponent, isStandalone: true, selector: "eds-call-tasks-panel", inputs: { callId: { classPropertyName: "callId", publicName: "callId", isSignal: true, isRequired: true, transformFunction: null }, compact: { classPropertyName: "compact", publicName: "compact", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<section class=\"call-tasks eds-card\" [class.call-tasks--compact]=\"compact()\">\n <header class=\"call-tasks__head\">\n <h2 class=\"eds-h2\">Activities from this call</h2>\n <a\n routerLink=\"../activities\"\n [queryParams]=\"{ callId: callId() }\"\n class=\"call-tasks__all-link eds-body-sm\"\n >\n View all Activities\n </a>\n </header>\n\n @if (loading()) {\n <p class=\"eds-body-sm call-tasks__empty\">Loading activities\u2026</p>\n } @else if (activities().length === 0) {\n <p class=\"eds-body-sm call-tasks__empty\">No activities linked to this call.</p>\n } @else {\n <ul class=\"call-tasks__list\">\n @for (item of previewActivities(); track item.id) {\n <li class=\"call-tasks__item\">\n <div class=\"call-tasks__row call-tasks__row--static\">\n <div class=\"call-tasks__main\">\n <span class=\"call-tasks__title\">{{ item.title || activityTypeLabel(item.type) }}</span>\n <span class=\"call-tasks__sub\">{{ activitySubline(item) }}</span>\n </div>\n <eds-badge [tone]=\"activityTone(item.type)\">{{ activityTypeLabel(item.type) }}</eds-badge>\n </div>\n </li>\n }\n </ul>\n @if (total() > previewLimit) {\n <p class=\"call-tasks__more eds-body-sm\">\n +{{ total() - previewLimit }} more \u2014\n <a routerLink=\"../activities\" [queryParams]=\"{ callId: callId() }\" class=\"call-tasks__all-link\">\n View all Activities\n </a>\n </p>\n }\n }\n</section>\n", styles: [".call-tasks{padding:16px 20px;margin-top:20px}.call-tasks--compact{margin-top:0;height:100%}.call-tasks__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.call-tasks__head .eds-h2{margin:0}.call-tasks__all-link{color:var(--eds-text-brand, #2162f0);text-decoration:none;font-weight:500}.call-tasks__all-link:hover{text-decoration:underline}.call-tasks__empty{margin:0;color:var(--eds-text-secondary, #53575c)}.call-tasks__list{list-style:none;margin:0;padding:0;border:1px solid var(--eds-border-default, #e5e5e5);border-radius:8px;overflow:hidden}.call-tasks__item{border-bottom:1px solid var(--eds-border-default, #e5e5e5)}.call-tasks__item:last-child{border-bottom:none}.call-tasks__row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 14px;border:none;background:none;text-align:left;font:inherit}.call-tasks__row--static{cursor:default}.call-tasks__main{display:flex;flex-direction:column;gap:2px;min-width:0}.call-tasks__title{font-size:14px;font-weight:600;color:var(--eds-text-primary, #41464c);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.call-tasks__sub{font-size:12px;color:var(--eds-text-secondary, #53575c);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.call-tasks__more{margin:10px 0 0;color:var(--eds-text-secondary, #53575c)}\n"], dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: EdsBadgeComponent, selector: "eds-badge", inputs: ["tone"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
291
|
+
}
|
|
292
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: CallTasksPanelComponent, decorators: [{
|
|
293
|
+
type: Component,
|
|
294
|
+
args: [{ selector: 'eds-call-tasks-panel', imports: [RouterLink, EdsBadgeComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<section class=\"call-tasks eds-card\" [class.call-tasks--compact]=\"compact()\">\n <header class=\"call-tasks__head\">\n <h2 class=\"eds-h2\">Activities from this call</h2>\n <a\n routerLink=\"../activities\"\n [queryParams]=\"{ callId: callId() }\"\n class=\"call-tasks__all-link eds-body-sm\"\n >\n View all Activities\n </a>\n </header>\n\n @if (loading()) {\n <p class=\"eds-body-sm call-tasks__empty\">Loading activities\u2026</p>\n } @else if (activities().length === 0) {\n <p class=\"eds-body-sm call-tasks__empty\">No activities linked to this call.</p>\n } @else {\n <ul class=\"call-tasks__list\">\n @for (item of previewActivities(); track item.id) {\n <li class=\"call-tasks__item\">\n <div class=\"call-tasks__row call-tasks__row--static\">\n <div class=\"call-tasks__main\">\n <span class=\"call-tasks__title\">{{ item.title || activityTypeLabel(item.type) }}</span>\n <span class=\"call-tasks__sub\">{{ activitySubline(item) }}</span>\n </div>\n <eds-badge [tone]=\"activityTone(item.type)\">{{ activityTypeLabel(item.type) }}</eds-badge>\n </div>\n </li>\n }\n </ul>\n @if (total() > previewLimit) {\n <p class=\"call-tasks__more eds-body-sm\">\n +{{ total() - previewLimit }} more \u2014\n <a routerLink=\"../activities\" [queryParams]=\"{ callId: callId() }\" class=\"call-tasks__all-link\">\n View all Activities\n </a>\n </p>\n }\n }\n</section>\n", styles: [".call-tasks{padding:16px 20px;margin-top:20px}.call-tasks--compact{margin-top:0;height:100%}.call-tasks__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.call-tasks__head .eds-h2{margin:0}.call-tasks__all-link{color:var(--eds-text-brand, #2162f0);text-decoration:none;font-weight:500}.call-tasks__all-link:hover{text-decoration:underline}.call-tasks__empty{margin:0;color:var(--eds-text-secondary, #53575c)}.call-tasks__list{list-style:none;margin:0;padding:0;border:1px solid var(--eds-border-default, #e5e5e5);border-radius:8px;overflow:hidden}.call-tasks__item{border-bottom:1px solid var(--eds-border-default, #e5e5e5)}.call-tasks__item:last-child{border-bottom:none}.call-tasks__row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 14px;border:none;background:none;text-align:left;font:inherit}.call-tasks__row--static{cursor:default}.call-tasks__main{display:flex;flex-direction:column;gap:2px;min-width:0}.call-tasks__title{font-size:14px;font-weight:600;color:var(--eds-text-primary, #41464c);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.call-tasks__sub{font-size:12px;color:var(--eds-text-secondary, #53575c);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.call-tasks__more{margin:10px 0 0;color:var(--eds-text-secondary, #53575c)}\n"] }]
|
|
295
|
+
}] });
|
|
296
|
+
|
|
297
|
+
/** Known history outcomes from GET /calls/history (HistoryCallDto.outcome). */
|
|
298
|
+
const HISTORY_OUTCOMES = [
|
|
299
|
+
'completed',
|
|
300
|
+
'failed',
|
|
301
|
+
'transferred',
|
|
302
|
+
'escalated',
|
|
303
|
+
];
|
|
304
|
+
function normalizeHistoryOutcome(outcome) {
|
|
305
|
+
const key = outcome.trim().toLowerCase();
|
|
306
|
+
if (HISTORY_OUTCOMES.includes(key)) {
|
|
307
|
+
return key;
|
|
308
|
+
}
|
|
309
|
+
return 'custom';
|
|
310
|
+
}
|
|
311
|
+
/** Badge tone for history table / detail — separate from lifecycle or live UI status. */
|
|
312
|
+
function outcomeBadgeTone(outcome) {
|
|
313
|
+
switch (normalizeHistoryOutcome(outcome)) {
|
|
314
|
+
case 'completed':
|
|
315
|
+
return 'pos';
|
|
316
|
+
case 'failed':
|
|
317
|
+
return 'neg';
|
|
318
|
+
case 'transferred':
|
|
319
|
+
return 'violet';
|
|
320
|
+
case 'escalated':
|
|
321
|
+
return 'neg';
|
|
322
|
+
default: {
|
|
323
|
+
const key = outcome.trim().toLowerCase();
|
|
324
|
+
if (key.includes('transfer'))
|
|
325
|
+
return 'violet';
|
|
326
|
+
if (key.includes('fail') || key.includes('escalat') || key.includes('abandon'))
|
|
327
|
+
return 'neg';
|
|
328
|
+
if (key.includes('voicemail'))
|
|
329
|
+
return 'gray';
|
|
330
|
+
if (key.includes('complete') || key.includes('book') || key.includes('task'))
|
|
331
|
+
return 'pos';
|
|
332
|
+
return 'brand';
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
function formatOutcomeLabel(outcome) {
|
|
337
|
+
const trimmed = outcome.trim();
|
|
338
|
+
if (!trimmed)
|
|
339
|
+
return 'Unknown';
|
|
340
|
+
const known = normalizeHistoryOutcome(trimmed);
|
|
341
|
+
if (known === 'custom')
|
|
342
|
+
return trimmed;
|
|
343
|
+
return known.charAt(0).toUpperCase() + known.slice(1);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
class CallHistoryDetailPageComponent {
|
|
347
|
+
constructor() {
|
|
348
|
+
this.api = inject(AiReceptionistApiService);
|
|
349
|
+
this.reviewService = inject(CallReviewService);
|
|
350
|
+
this.toast = inject(ToastService);
|
|
351
|
+
this.route = inject(ActivatedRoute);
|
|
352
|
+
this.detail = signal(null);
|
|
353
|
+
this.loading = signal(true);
|
|
354
|
+
this.markingReview = signal(false);
|
|
355
|
+
this.isNeedsReview = isNeedsReview;
|
|
356
|
+
this.outcomeTone = outcomeBadgeTone;
|
|
357
|
+
this.outcomeLabel = formatOutcomeLabel;
|
|
358
|
+
}
|
|
359
|
+
isUnknownName(name) {
|
|
360
|
+
return isUnknownCaller(name);
|
|
361
|
+
}
|
|
362
|
+
ngOnInit() {
|
|
363
|
+
const id = this.route.snapshot.paramMap.get('id') ?? '';
|
|
364
|
+
this.api.getCallDetail(id).subscribe(({ data }) => {
|
|
365
|
+
this.detail.set(data);
|
|
366
|
+
this.loading.set(false);
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
markReviewed() {
|
|
370
|
+
const d = this.detail();
|
|
371
|
+
if (!d || !isNeedsReview(d.review) || this.markingReview())
|
|
372
|
+
return;
|
|
373
|
+
this.markingReview.set(true);
|
|
374
|
+
const prev = d.review;
|
|
375
|
+
this.detail.update((current) => current ? { ...current, review: 'reviewed' } : current);
|
|
376
|
+
this.reviewService.markReviewed(d.id).subscribe({
|
|
377
|
+
next: () => {
|
|
378
|
+
this.markingReview.set(false);
|
|
379
|
+
this.toast.show('Call marked as reviewed', 'success');
|
|
380
|
+
},
|
|
381
|
+
error: () => {
|
|
382
|
+
this.markingReview.set(false);
|
|
383
|
+
this.detail.update((current) => current ? { ...current, review: prev } : current);
|
|
384
|
+
this.toast.show('Failed to mark call as reviewed', 'error');
|
|
385
|
+
},
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
refreshCallDetail() {
|
|
389
|
+
const id = this.detail()?.id;
|
|
390
|
+
if (!id)
|
|
391
|
+
return;
|
|
392
|
+
this.api.getCallDetail(id).subscribe(({ data }) => {
|
|
393
|
+
if (data)
|
|
394
|
+
this.detail.set(data);
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
formatDuration(sec) {
|
|
398
|
+
const m = Math.floor(sec / 60);
|
|
399
|
+
const s = sec % 60;
|
|
400
|
+
return `${m}:${s.toString().padStart(2, '0')}`;
|
|
401
|
+
}
|
|
402
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: CallHistoryDetailPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
403
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: CallHistoryDetailPageComponent, isStandalone: true, selector: "eds-call-history-detail-page", ngImport: i0, template: "<div class=\"eds-page call-history-detail-page\">\n <a routerLink=\"../history\" class=\"call-history-detail-page__back eds-body-sm\">\n <eds-icon name=\"arrow_back\" [size]=\"18\" /> Back to history\n </a>\n\n @if (loading()) {\n <p class=\"eds-body-sm\">Loading call detail\u2026</p>\n } @else if (detail()) {\n <header class=\"call-history-detail-page__header\">\n <div>\n <h1 class=\"eds-h1\">{{ detail()!.name }}</h1>\n <p class=\"eds-body-sm\">{{ detail()!.phone }} \u00B7 {{ detail()!.reason }}</p>\n </div>\n @if (isNeedsReview(detail()!.review)) {\n <eds-button\n variant=\"primary\"\n [disabled]=\"markingReview()\"\n (click)=\"markReviewed()\"\n >\n <eds-icon name=\"check_circle\" [size]=\"18\" />\n {{ markingReview() ? 'Saving\u2026' : 'Mark as reviewed' }}\n </eds-button>\n }\n </header>\n\n <dl class=\"call-history-detail-page__meta\">\n <div><dt class=\"eds-label\">Outcome</dt><dd>\n <eds-badge [tone]=\"outcomeTone(detail()!.outcome)\">\n {{ outcomeLabel(detail()!.outcome) }}\n </eds-badge>\n </dd></div>\n <div><dt class=\"eds-label\">Duration</dt><dd>{{ detail()!.durationLabel ?? formatDuration(detail()!.duration) }}</dd></div>\n <div><dt class=\"eds-label\">Location</dt><dd>{{ detail()!.location }}</dd></div>\n <div><dt class=\"eds-label\">When</dt><dd>{{ detail()!.whenLabel ?? '\u2014' }}</dd></div>\n </dl>\n\n <eds-call-conversation-panel\n [callId]=\"detail()!.id\"\n [summary]=\"detail()!.summary\"\n [transcript]=\"detail()!.transcript\"\n [tools]=\"detail()!.tools\"\n [callDurationSec]=\"detail()!.duration\"\n [callerName]=\"detail()!.name\"\n [callerMatched]=\"!isUnknownName(detail()!.name)\"\n (summaryRegenerated)=\"refreshCallDetail()\"\n >\n <eds-call-tasks-panel\n summary-side\n [callId]=\"detail()!.id\"\n [compact]=\"true\"\n />\n </eds-call-conversation-panel>\n } @else {\n <p class=\"eds-body-sm\">Call not found.</p>\n }\n</div>\n", styles: [".call-history-detail-page__back{display:inline-flex;align-items:center;gap:4px;text-decoration:none;color:var(--eds-text-secondary);margin-bottom:16px}.call-history-detail-page__header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}.call-history-detail-page__badges{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.call-history-detail-page__meta{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:0 0 20px}.call-history-detail-page__meta dd{margin:4px 0 0;font-size:14px}.call-history-detail-page__tabs{display:flex;gap:4px;margin-bottom:16px;border-bottom:1px solid var(--eds-border-default)}.call-history-detail-page__tab{padding:10px 16px;border:none;background:none;font-size:14px;font-weight:500;color:var(--eds-text-secondary);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px}.call-history-detail-page__tab--active{color:var(--eds-text-brand);border-bottom-color:var(--eds-brand-500)}.call-history-detail-page__panel{padding:20px}@media(max-width:800px){.call-history-detail-page__meta{grid-template-columns:repeat(2,1fr)}}\n"], dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: EdsBadgeComponent, selector: "eds-badge", inputs: ["tone"] }, { kind: "component", type: EdsButtonComponent, selector: "eds-button", inputs: ["variant", "type", "disabled"] }, { kind: "component", type: EdsIconComponent, selector: "eds-icon", inputs: ["name", "size", "fill", "weight"] }, { kind: "component", type: CallConversationPanelComponent, selector: "eds-call-conversation-panel", inputs: ["callId", "summary", "transcript", "tools", "callDurationSec", "allowRegenerate", "callerName", "callerMatched"], outputs: ["summaryRegenerated"] }, { kind: "component", type: CallTasksPanelComponent, selector: "eds-call-tasks-panel", inputs: ["callId", "compact"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
404
|
+
}
|
|
405
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: CallHistoryDetailPageComponent, decorators: [{
|
|
406
|
+
type: Component,
|
|
407
|
+
args: [{ selector: 'eds-call-history-detail-page', imports: [
|
|
408
|
+
RouterLink,
|
|
409
|
+
EdsBadgeComponent,
|
|
410
|
+
EdsButtonComponent,
|
|
411
|
+
EdsIconComponent,
|
|
412
|
+
CallConversationPanelComponent,
|
|
413
|
+
CallTasksPanelComponent,
|
|
414
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"eds-page call-history-detail-page\">\n <a routerLink=\"../history\" class=\"call-history-detail-page__back eds-body-sm\">\n <eds-icon name=\"arrow_back\" [size]=\"18\" /> Back to history\n </a>\n\n @if (loading()) {\n <p class=\"eds-body-sm\">Loading call detail\u2026</p>\n } @else if (detail()) {\n <header class=\"call-history-detail-page__header\">\n <div>\n <h1 class=\"eds-h1\">{{ detail()!.name }}</h1>\n <p class=\"eds-body-sm\">{{ detail()!.phone }} \u00B7 {{ detail()!.reason }}</p>\n </div>\n @if (isNeedsReview(detail()!.review)) {\n <eds-button\n variant=\"primary\"\n [disabled]=\"markingReview()\"\n (click)=\"markReviewed()\"\n >\n <eds-icon name=\"check_circle\" [size]=\"18\" />\n {{ markingReview() ? 'Saving\u2026' : 'Mark as reviewed' }}\n </eds-button>\n }\n </header>\n\n <dl class=\"call-history-detail-page__meta\">\n <div><dt class=\"eds-label\">Outcome</dt><dd>\n <eds-badge [tone]=\"outcomeTone(detail()!.outcome)\">\n {{ outcomeLabel(detail()!.outcome) }}\n </eds-badge>\n </dd></div>\n <div><dt class=\"eds-label\">Duration</dt><dd>{{ detail()!.durationLabel ?? formatDuration(detail()!.duration) }}</dd></div>\n <div><dt class=\"eds-label\">Location</dt><dd>{{ detail()!.location }}</dd></div>\n <div><dt class=\"eds-label\">When</dt><dd>{{ detail()!.whenLabel ?? '\u2014' }}</dd></div>\n </dl>\n\n <eds-call-conversation-panel\n [callId]=\"detail()!.id\"\n [summary]=\"detail()!.summary\"\n [transcript]=\"detail()!.transcript\"\n [tools]=\"detail()!.tools\"\n [callDurationSec]=\"detail()!.duration\"\n [callerName]=\"detail()!.name\"\n [callerMatched]=\"!isUnknownName(detail()!.name)\"\n (summaryRegenerated)=\"refreshCallDetail()\"\n >\n <eds-call-tasks-panel\n summary-side\n [callId]=\"detail()!.id\"\n [compact]=\"true\"\n />\n </eds-call-conversation-panel>\n } @else {\n <p class=\"eds-body-sm\">Call not found.</p>\n }\n</div>\n", styles: [".call-history-detail-page__back{display:inline-flex;align-items:center;gap:4px;text-decoration:none;color:var(--eds-text-secondary);margin-bottom:16px}.call-history-detail-page__header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}.call-history-detail-page__badges{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.call-history-detail-page__meta{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:0 0 20px}.call-history-detail-page__meta dd{margin:4px 0 0;font-size:14px}.call-history-detail-page__tabs{display:flex;gap:4px;margin-bottom:16px;border-bottom:1px solid var(--eds-border-default)}.call-history-detail-page__tab{padding:10px 16px;border:none;background:none;font-size:14px;font-weight:500;color:var(--eds-text-secondary);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px}.call-history-detail-page__tab--active{color:var(--eds-text-brand);border-bottom-color:var(--eds-brand-500)}.call-history-detail-page__panel{padding:20px}@media(max-width:800px){.call-history-detail-page__meta{grid-template-columns:repeat(2,1fr)}}\n"] }]
|
|
415
|
+
}] });
|
|
416
|
+
|
|
417
|
+
export { CallHistoryDetailPageComponent };
|
|
418
|
+
//# sourceMappingURL=edvak99-voice-receptionist-widget-call-history-detail-page.component-sYhM20CE.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edvak99-voice-receptionist-widget-call-history-detail-page.component-sYhM20CE.mjs","sources":["../../../projects/voice-receptionist-widget/src/lib/utils/transcript-timing.util.ts","../../../projects/voice-receptionist-widget/src/lib/components/call-conversation-panel/call-conversation-panel.component.ts","../../../projects/voice-receptionist-widget/src/lib/components/call-conversation-panel/call-conversation-panel.component.html","../../../projects/voice-receptionist-widget/src/lib/components/call-tasks-panel/call-tasks-panel.component.ts","../../../projects/voice-receptionist-widget/src/lib/components/call-tasks-panel/call-tasks-panel.component.html","../../../projects/voice-receptionist-widget/src/lib/utils/call-outcome.util.ts","../../../projects/voice-receptionist-widget/src/lib/pages/call-history-detail-page/call-history-detail-page.component.ts","../../../projects/voice-receptionist-widget/src/lib/pages/call-history-detail-page/call-history-detail-page.component.html"],"sourcesContent":["import { ToolEvent, TranscriptLine } from '../models/ai-receptionist.types';\n\nexport interface TimedTranscriptLine extends TranscriptLine {\n startSec: number;\n endSec: number;\n index: number;\n}\n\n/** Parse tool timestamp strings like \"1:02\" or \"0:42\" into seconds. */\nexport function parseClockTime(value: string): number | null {\n const trimmed = value?.trim();\n if (!trimmed) return null;\n const parts = trimmed.split(':').map((p) => Number(p));\n if (parts.some((n) => Number.isNaN(n))) return null;\n if (parts.length === 2) return parts[0] * 60 + parts[1];\n if (parts.length === 3) return parts[0] * 3600 + parts[1] * 60 + parts[2];\n return null;\n}\n\nfunction resolveLineStart(line: TranscriptLine): number | null {\n if (line.at != null && line.at >= 0) return line.at;\n const raw = line as TranscriptLine & { offsetSeconds?: number; startTime?: number };\n if (raw.offsetSeconds != null && raw.offsetSeconds >= 0) return raw.offsetSeconds;\n if (raw.startTime != null && raw.startTime >= 0) return raw.startTime;\n return null;\n}\n\n/**\n * Assign start/end seconds to transcript lines for audio sync.\n * Uses explicit `at` when present; otherwise estimates from call duration.\n */\nexport function buildTimedTranscript(\n lines: TranscriptLine[],\n durationSeconds: number,\n): TimedTranscriptLine[] {\n if (!lines.length) return [];\n\n const total = Math.max(durationSeconds, 1);\n const explicit = lines.map((line) => resolveLineStart(line));\n const allExplicit = explicit.every((t) => t != null);\n\n const starts: number[] = new Array(lines.length).fill(0);\n\n if (allExplicit) {\n for (let i = 0; i < lines.length; i += 1) {\n starts[i] = explicit[i]!;\n }\n } else {\n const speakableCount = lines.filter((l) => l.who !== 'system').length;\n const step = total / Math.max(speakableCount, 1);\n let speakableIdx = 0;\n\n for (let i = 0; i < lines.length; i += 1) {\n if (explicit[i] != null) {\n starts[i] = explicit[i]!;\n continue;\n }\n const line = lines[i];\n if (line.who === 'system') {\n starts[i] = i > 0 ? starts[i - 1] : 0;\n continue;\n }\n starts[i] = speakableIdx * step;\n speakableIdx += 1;\n }\n }\n\n return lines.map((line, index) => {\n const startSec = starts[index];\n const nextStart = starts.slice(index + 1).find((s) => s > startSec);\n const endSec = nextStart ?? total;\n return { ...line, startSec, endSec: Math.max(endSec, startSec + 0.5), index };\n });\n}\n\nexport function activeTranscriptIndex(lines: TimedTranscriptLine[], currentSec: number): number {\n if (!lines.length || currentSec < 0) return -1;\n for (let i = lines.length - 1; i >= 0; i -= 1) {\n if (currentSec >= lines[i].startSec) return i;\n }\n return 0;\n}\n\nexport function formatPlaybackTime(seconds: number): string {\n const s = Math.max(0, Math.floor(seconds));\n const m = Math.floor(s / 60);\n const r = s % 60;\n return `${m}:${r.toString().padStart(2, '0')}`;\n}\n\nexport function toolStateClass(state: ToolEvent['state']): string {\n const map: Record<ToolEvent['state'], string> = {\n ok: 'call-conversation__tool--ok',\n warn: 'call-conversation__tool--warn',\n error: 'call-conversation__tool--error',\n active: 'call-conversation__tool--active',\n };\n return map[state] ?? '';\n}\n\nexport function transcriptRoleLabel(\n who: TranscriptLine['who'],\n callerName?: string | null,\n callerMatched?: boolean,\n): string {\n if (who === 'patient') {\n const name = String(callerName ?? '').trim();\n if (!name || callerMatched === false || /^unknown/i.test(name) || name === '?') {\n return 'Unknown caller';\n }\n return name;\n }\n const labels: Record<Exclude<TranscriptLine['who'], 'patient'>, string> = {\n ai: 'AI receptionist',\n staff: 'Staff',\n system: 'System',\n };\n return labels[who] ?? who;\n}\n","import { DatePipe } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n input,\n output,\n signal,\n viewChild,\n} from '@angular/core';\n\nimport { ToolEvent, TranscriptLine, TranscriptWho } from '../../models/ai-receptionist.types';\nimport { AiReceptionistApiService } from '../../services/ai-receptionist-api.service';\nimport { ToastService } from '../../shared/toast.service';\nimport {\n activeTranscriptIndex,\n buildTimedTranscript,\n formatPlaybackTime,\n TimedTranscriptLine,\n toolStateClass,\n transcriptRoleLabel,\n} from '../../utils/transcript-timing.util';\nimport { toolEventTrackKey } from '../../utils/tool-labels.util';\nimport { CallRecordingPlayerComponent } from '../call-recording-player/call-recording-player.component';\nimport { EdsBadgeComponent, type BadgeTone } from '../../ui/eds-badge.component';\nimport { EdsButtonComponent } from '../../ui/eds-button.component';\nimport { EdsIconComponent } from '../../ui/eds-icon.component';\n\n@Component({\n selector: 'eds-call-conversation-panel',\n imports: [\n DatePipe,\n CallRecordingPlayerComponent,\n EdsBadgeComponent,\n EdsButtonComponent,\n EdsIconComponent,\n ],\n templateUrl: './call-conversation-panel.component.html',\n styleUrl: './call-conversation-panel.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CallConversationPanelComponent {\n private readonly api = inject(AiReceptionistApiService);\n private readonly toast = inject(ToastService);\n\n readonly callId = input.required<string>();\n readonly summary = input.required<string>();\n readonly transcript = input.required<TranscriptLine[]>();\n readonly tools = input.required<ToolEvent[]>();\n readonly callDurationSec = input(0);\n readonly allowRegenerate = input(true);\n readonly callerName = input<string | null>(null);\n readonly callerMatched = input<boolean | null>(null);\n\n readonly summaryRegenerated = output<void>();\n\n private readonly player = viewChild(CallRecordingPlayerComponent);\n private readonly scrollHost = viewChild<ElementRef<HTMLElement>>('scrollHost');\n\n protected readonly currentTime = signal(0);\n protected readonly playbackDuration = signal(0);\n protected readonly summaryExpanded = signal(false);\n private readonly regeneratedSummary = signal<string | null>(null);\n protected readonly displaySummary = computed(\n () => this.regeneratedSummary() ?? this.summary(),\n );\n protected readonly regenerating = signal(false);\n protected readonly summaryMeta = signal<{\n model?: string;\n generatedAt?: string;\n turnCount?: number;\n } | null>(null);\n\n protected readonly timedLines = computed(() =>\n buildTimedTranscript(\n this.transcript(),\n this.playbackDuration() || this.callDurationSec() || 120,\n ),\n );\n\n protected readonly activeIndex = computed(() =>\n activeTranscriptIndex(this.timedLines(), this.currentTime()),\n );\n\n protected readonly hasExplicitTiming = computed(() =>\n this.transcript().some((line) => line.at != null),\n );\n\n protected readonly toolClass = toolStateClass;\n protected readonly formatTime = formatPlaybackTime;\n protected readonly toolTrackKey = toolEventTrackKey;\n\n protected roleLabel(who: TranscriptLine['who']): string {\n return transcriptRoleLabel(who, this.callerName(), this.callerMatched() ?? undefined);\n }\n\n protected speakerIcon(who: TranscriptWho | string): string {\n switch (who) {\n case 'ai':\n return 'graphic_eq';\n case 'staff':\n return 'support_agent';\n case 'patient':\n return 'person';\n default:\n return 'info';\n }\n }\n\n protected toolTone(state: string): BadgeTone {\n switch (state) {\n case 'ok':\n return 'pos';\n case 'warn':\n return 'notice';\n case 'error':\n return 'neg';\n case 'active':\n return 'brand';\n default:\n return 'gray';\n }\n }\n\n constructor() {\n effect(\n () => {\n this.callId();\n this.regeneratedSummary.set(null);\n },\n { allowSignalWrites: true },\n );\n\n effect(() => {\n const idx = this.activeIndex();\n const host = this.scrollHost()?.nativeElement;\n if (idx < 0 || !host) return;\n const row = host.querySelector(`[data-line-index=\"${idx}\"]`);\n if (row instanceof HTMLElement) {\n row.scrollIntoView({ block: 'nearest', behavior: 'smooth' });\n }\n });\n }\n\n protected onPlaybackTime(sec: number): void {\n this.currentTime.set(sec);\n }\n\n protected onPlaybackDuration(sec: number): void {\n this.playbackDuration.set(sec);\n }\n\n protected seekLine(line: TimedTranscriptLine): void {\n if (line.who === 'system') return;\n this.player()?.seekTo(line.startSec);\n }\n\n protected toggleSummary(): void {\n this.summaryExpanded.update((v) => !v);\n }\n\n protected regenerateSummary(): void {\n if (this.regenerating()) return;\n\n this.regenerating.set(true);\n this.api.regenerateCallSummary(this.callId()).subscribe({\n next: ({ data }) => {\n this.regenerating.set(false);\n this.regeneratedSummary.set(data.summary);\n this.summaryExpanded.set(true);\n this.summaryMeta.set({\n model: data.summaryModel,\n generatedAt: data.summaryGeneratedAt,\n turnCount: data.transcriptTurnCount,\n });\n this.summaryRegenerated.emit();\n this.toast.show('Call summary regenerated', 'success');\n },\n error: (err: { message?: string }) => {\n this.regenerating.set(false);\n this.toast.show(err.message ?? 'Failed to regenerate summary', 'error');\n },\n });\n }\n}\n","<div class=\"call-conversation\">\n <div class=\"call-conversation__overview\">\n <section class=\"call-conversation__summary eds-card\">\n <div class=\"call-conversation__summary-head\">\n <button type=\"button\" class=\"call-conversation__summary-toggle\" (click)=\"toggleSummary()\">\n <eds-icon [name]=\"summaryExpanded() ? 'expand_less' : 'expand_more'\" [size]=\"20\" />\n <h2 class=\"eds-h2\">Call summary</h2>\n </button>\n @if (allowRegenerate()) {\n <eds-button\n variant=\"secondary\"\n type=\"button\"\n [disabled]=\"regenerating()\"\n (click)=\"regenerateSummary()\"\n >\n <eds-icon name=\"autorenew\" [size]=\"18\" />\n {{ regenerating() ? 'Regenerating…' : 'Regenerate' }}\n </eds-button>\n }\n </div>\n @if (summaryExpanded() || displaySummary().length < 180) {\n <p class=\"call-conversation__summary-text eds-body\">{{ displaySummary() }}</p>\n } @else {\n <p class=\"call-conversation__summary-text eds-body call-conversation__summary-text--clip\">\n {{ displaySummary() }}\n </p>\n <button type=\"button\" class=\"call-conversation__read-more\" (click)=\"toggleSummary()\">Read full summary</button>\n }\n @if (summaryMeta(); as meta) {\n <p class=\"call-conversation__summary-meta eds-body-sm\">\n @if (meta.model) {\n <span>Model: {{ meta.model }}</span>\n }\n @if (meta.generatedAt) {\n <span>Generated {{ meta.generatedAt | date: 'medium' }}</span>\n }\n @if (meta.turnCount != null) {\n <span>{{ meta.turnCount }} transcript turns</span>\n }\n </p>\n }\n </section>\n <ng-content select=\"[summary-side]\" />\n </div>\n\n <section class=\"call-conversation__recording eds-card\">\n <eds-call-recording-player\n [callId]=\"callId()\"\n (currentTimeChange)=\"onPlaybackTime($event)\"\n (durationChange)=\"onPlaybackDuration($event)\"\n />\n </section>\n\n <div class=\"call-conversation__grid\">\n <section class=\"eds-card call-conversation__transcript\" aria-labelledby=\"call-transcript-title\">\n <header class=\"call-conversation__section-head\">\n <h2 id=\"call-transcript-title\" class=\"eds-h2\">Transcript</h2>\n @if (playbackDuration() > 0) {\n <span class=\"eds-mono-sm call-conversation__playback-clock\">\n {{ formatTime(currentTime()) }} / {{ formatTime(playbackDuration()) }}\n </span>\n }\n </header>\n\n <div #scrollHost class=\"call-conversation__scroll\" role=\"log\">\n @for (line of timedLines(); track line.index) {\n @if (line.who === 'system') {\n <div\n class=\"call-conversation__system\"\n [attr.data-line-index]=\"line.index\"\n [class.call-conversation__system--active]=\"line.index === activeIndex()\"\n >\n <eds-icon name=\"info\" [size]=\"14\" />\n <span>{{ line.text }}</span>\n </div>\n } @else {\n <article\n class=\"call-conversation__msg\"\n [class]=\"'call-conversation__msg--' + line.who\"\n [class.call-conversation__msg--active]=\"line.index === activeIndex()\"\n [attr.data-line-index]=\"line.index\"\n [attr.data-who]=\"line.who\"\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-current]=\"line.index === activeIndex() ? 'true' : null\"\n (click)=\"seekLine(line)\"\n (keyup.enter)=\"seekLine(line)\"\n >\n <div class=\"call-conversation__avatar\" [attr.data-who]=\"line.who\">\n <eds-icon [name]=\"speakerIcon(line.who)\" [size]=\"16\" />\n </div>\n <div class=\"call-conversation__content\">\n <span class=\"call-conversation__label\">\n {{ roleLabel(line.who) }}\n <span class=\"call-conversation__stamp\">{{ formatTime(line.startSec) }}</span>\n </span>\n <div class=\"call-conversation__bubble\">\n <p>{{ line.text }}</p>\n </div>\n </div>\n </article>\n }\n } @empty {\n <p class=\"eds-body-sm call-conversation__empty\">No transcript available for this call.</p>\n }\n </div>\n </section>\n\n <aside class=\"eds-card call-conversation__tools\" aria-labelledby=\"call-tools-title\">\n <header class=\"call-conversation__section-head\">\n <h2 id=\"call-tools-title\" class=\"eds-h2\">Tools used</h2>\n <span class=\"eds-body-sm\">{{ tools().length }}</span>\n </header>\n\n <ul class=\"call-conversation__tool-list\">\n @for (tool of tools(); track toolTrackKey(tool, $index)) {\n <li class=\"call-conversation__tool\" [class]=\"toolClass(tool.state)\">\n <span class=\"eds-mono-sm call-conversation__tool-time\">{{ tool.t }}</span>\n <div class=\"call-conversation__tool-body\">\n <span class=\"eds-body-sm-bold\">{{ tool.name }}</span>\n <span class=\"eds-body-sm\">{{ tool.result }}</span>\n </div>\n <eds-badge [tone]=\"toolTone(tool.state)\">{{ tool.state }}</eds-badge>\n </li>\n } @empty {\n <li class=\"eds-body-sm call-conversation__empty\">No tool activity recorded.</li>\n }\n </ul>\n </aside>\n </div>\n</div>\n","import { ChangeDetectionStrategy, Component, computed, inject, input, OnInit, signal } from '@angular/core';\nimport { RouterLink } from '@angular/router';\n\nimport {\n AgentActivity,\n activityTypeLabel,\n} from '../../models/agent-activity.types';\nimport { AiReceptionistApiService } from '../../services/ai-receptionist-api.service';\nimport { EdsBadgeComponent } from '../../ui/eds-badge.component';\n\nconst PREVIEW_LIMIT = 4;\n\n@Component({\n selector: 'eds-call-tasks-panel',\n imports: [RouterLink, EdsBadgeComponent],\n templateUrl: './call-tasks-panel.component.html',\n styleUrl: './call-tasks-panel.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CallTasksPanelComponent implements OnInit {\n private readonly api = inject(AiReceptionistApiService);\n\n readonly callId = input.required<string>();\n readonly compact = input(false);\n\n protected readonly activities = signal<AgentActivity[]>([]);\n protected readonly total = signal(0);\n protected readonly loading = signal(true);\n protected readonly previewLimit = PREVIEW_LIMIT;\n protected readonly activityTypeLabel = activityTypeLabel;\n\n protected readonly previewActivities = computed(() =>\n this.activities().slice(0, PREVIEW_LIMIT),\n );\n\n ngOnInit(): void {\n this.api\n .getActivities({\n callId: this.callId(),\n page: 1,\n limit: 50,\n })\n .subscribe({\n next: ({ items, total }) => {\n this.activities.set(items);\n this.total.set(total);\n this.loading.set(false);\n },\n error: () => this.loading.set(false),\n });\n }\n\n protected activitySubline(item: AgentActivity): string {\n const bits = [\n item.patientName,\n item.visitType,\n item.providerName,\n ].filter(Boolean);\n return bits.join(' · ') || item.detail || '—';\n }\n\n protected activityTone(type: string): 'brand' | 'pos' | 'notice' | 'violet' | 'gray' {\n switch (type) {\n case 'appointment_booked':\n return 'brand';\n case 'patient_created':\n return 'pos';\n case 'task_created':\n return 'notice';\n default:\n return 'gray';\n }\n }\n}\n","<section class=\"call-tasks eds-card\" [class.call-tasks--compact]=\"compact()\">\n <header class=\"call-tasks__head\">\n <h2 class=\"eds-h2\">Activities from this call</h2>\n <a\n routerLink=\"../activities\"\n [queryParams]=\"{ callId: callId() }\"\n class=\"call-tasks__all-link eds-body-sm\"\n >\n View all Activities\n </a>\n </header>\n\n @if (loading()) {\n <p class=\"eds-body-sm call-tasks__empty\">Loading activities…</p>\n } @else if (activities().length === 0) {\n <p class=\"eds-body-sm call-tasks__empty\">No activities linked to this call.</p>\n } @else {\n <ul class=\"call-tasks__list\">\n @for (item of previewActivities(); track item.id) {\n <li class=\"call-tasks__item\">\n <div class=\"call-tasks__row call-tasks__row--static\">\n <div class=\"call-tasks__main\">\n <span class=\"call-tasks__title\">{{ item.title || activityTypeLabel(item.type) }}</span>\n <span class=\"call-tasks__sub\">{{ activitySubline(item) }}</span>\n </div>\n <eds-badge [tone]=\"activityTone(item.type)\">{{ activityTypeLabel(item.type) }}</eds-badge>\n </div>\n </li>\n }\n </ul>\n @if (total() > previewLimit) {\n <p class=\"call-tasks__more eds-body-sm\">\n +{{ total() - previewLimit }} more —\n <a routerLink=\"../activities\" [queryParams]=\"{ callId: callId() }\" class=\"call-tasks__all-link\">\n View all Activities\n </a>\n </p>\n }\n }\n</section>\n","import { BadgeTone } from '../ui/eds-badge.component';\n\n/** Known history outcomes from GET /calls/history (HistoryCallDto.outcome). */\nexport const HISTORY_OUTCOMES = [\n 'completed',\n 'failed',\n 'transferred',\n 'escalated',\n] as const;\n\nexport type HistoryOutcome = (typeof HISTORY_OUTCOMES)[number] | 'custom';\n\nexport function normalizeHistoryOutcome(outcome: string): HistoryOutcome {\n const key = outcome.trim().toLowerCase();\n if ((HISTORY_OUTCOMES as readonly string[]).includes(key)) {\n return key as HistoryOutcome;\n }\n return 'custom';\n}\n\n/** Badge tone for history table / detail — separate from lifecycle or live UI status. */\nexport function outcomeBadgeTone(outcome: string): BadgeTone {\n switch (normalizeHistoryOutcome(outcome)) {\n case 'completed':\n return 'pos';\n case 'failed':\n return 'neg';\n case 'transferred':\n return 'violet';\n case 'escalated':\n return 'neg';\n default: {\n const key = outcome.trim().toLowerCase();\n if (key.includes('transfer')) return 'violet';\n if (key.includes('fail') || key.includes('escalat') || key.includes('abandon')) return 'neg';\n if (key.includes('voicemail')) return 'gray';\n if (key.includes('complete') || key.includes('book') || key.includes('task')) return 'pos';\n return 'brand';\n }\n }\n}\n\nexport function formatOutcomeLabel(outcome: string): string {\n const trimmed = outcome.trim();\n if (!trimmed) return 'Unknown';\n const known = normalizeHistoryOutcome(trimmed);\n if (known === 'custom') return trimmed;\n return known.charAt(0).toUpperCase() + known.slice(1);\n}\n","import { ChangeDetectionStrategy, Component, inject, OnInit, signal } from '@angular/core';\nimport { ActivatedRoute, RouterLink } from '@angular/router';\n\nimport { CallConversationPanelComponent } from '../../components/call-conversation-panel/call-conversation-panel.component';\nimport { CallTasksPanelComponent } from '../../components/call-tasks-panel/call-tasks-panel.component';\nimport { HistoryDetail } from '../../models/ai-receptionist.types';\nimport { AiReceptionistApiService } from '../../services/ai-receptionist-api.service';\nimport { CallReviewService } from '../../services/call-review.service';\nimport { formatOutcomeLabel, outcomeBadgeTone } from '../../utils/call-outcome.util';\nimport {\n isNeedsReview,\n} from '../../utils/call-review.util';\nimport { isUnknownCaller } from '../../utils/call-history-display.util';\nimport { EdsBadgeComponent } from '../../ui/eds-badge.component';\nimport { EdsButtonComponent } from '../../ui/eds-button.component';\nimport { EdsIconComponent } from '../../ui/eds-icon.component';\nimport { ToastService } from '../../shared/toast.service';\n\n@Component({\n selector: 'eds-call-history-detail-page',\n imports: [\n RouterLink,\n EdsBadgeComponent,\n EdsButtonComponent,\n EdsIconComponent,\n CallConversationPanelComponent,\n CallTasksPanelComponent,\n ],\n templateUrl: './call-history-detail-page.component.html',\n styleUrl: './call-history-detail-page.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class CallHistoryDetailPageComponent implements OnInit {\n private readonly api = inject(AiReceptionistApiService);\n private readonly reviewService = inject(CallReviewService);\n private readonly toast = inject(ToastService);\n private readonly route = inject(ActivatedRoute);\n\n protected readonly detail = signal<HistoryDetail | null>(null);\n protected readonly loading = signal(true);\n protected readonly markingReview = signal(false);\n\n protected isNeedsReview = isNeedsReview;\n protected outcomeTone = outcomeBadgeTone;\n protected outcomeLabel = formatOutcomeLabel;\n\n protected isUnknownName(name: string | null | undefined): boolean {\n return isUnknownCaller(name);\n }\n\n ngOnInit(): void {\n const id = this.route.snapshot.paramMap.get('id') ?? '';\n this.api.getCallDetail(id).subscribe(({ data }) => {\n this.detail.set(data);\n this.loading.set(false);\n });\n }\n\n protected markReviewed(): void {\n const d = this.detail();\n if (!d || !isNeedsReview(d.review) || this.markingReview()) return;\n\n this.markingReview.set(true);\n const prev = d.review;\n this.detail.update((current) =>\n current ? { ...current, review: 'reviewed' } : current,\n );\n\n this.reviewService.markReviewed(d.id).subscribe({\n next: () => {\n this.markingReview.set(false);\n this.toast.show('Call marked as reviewed', 'success');\n },\n error: () => {\n this.markingReview.set(false);\n this.detail.update((current) =>\n current ? { ...current, review: prev } : current,\n );\n this.toast.show('Failed to mark call as reviewed', 'error');\n },\n });\n }\n\n protected refreshCallDetail(): void {\n const id = this.detail()?.id;\n if (!id) return;\n this.api.getCallDetail(id).subscribe(({ data }) => {\n if (data) this.detail.set(data);\n });\n }\n\n protected formatDuration(sec: number): string {\n const m = Math.floor(sec / 60);\n const s = sec % 60;\n return `${m}:${s.toString().padStart(2, '0')}`;\n }\n}\n","<div class=\"eds-page call-history-detail-page\">\n <a routerLink=\"../history\" class=\"call-history-detail-page__back eds-body-sm\">\n <eds-icon name=\"arrow_back\" [size]=\"18\" /> Back to history\n </a>\n\n @if (loading()) {\n <p class=\"eds-body-sm\">Loading call detail…</p>\n } @else if (detail()) {\n <header class=\"call-history-detail-page__header\">\n <div>\n <h1 class=\"eds-h1\">{{ detail()!.name }}</h1>\n <p class=\"eds-body-sm\">{{ detail()!.phone }} · {{ detail()!.reason }}</p>\n </div>\n @if (isNeedsReview(detail()!.review)) {\n <eds-button\n variant=\"primary\"\n [disabled]=\"markingReview()\"\n (click)=\"markReviewed()\"\n >\n <eds-icon name=\"check_circle\" [size]=\"18\" />\n {{ markingReview() ? 'Saving…' : 'Mark as reviewed' }}\n </eds-button>\n }\n </header>\n\n <dl class=\"call-history-detail-page__meta\">\n <div><dt class=\"eds-label\">Outcome</dt><dd>\n <eds-badge [tone]=\"outcomeTone(detail()!.outcome)\">\n {{ outcomeLabel(detail()!.outcome) }}\n </eds-badge>\n </dd></div>\n <div><dt class=\"eds-label\">Duration</dt><dd>{{ detail()!.durationLabel ?? formatDuration(detail()!.duration) }}</dd></div>\n <div><dt class=\"eds-label\">Location</dt><dd>{{ detail()!.location }}</dd></div>\n <div><dt class=\"eds-label\">When</dt><dd>{{ detail()!.whenLabel ?? '—' }}</dd></div>\n </dl>\n\n <eds-call-conversation-panel\n [callId]=\"detail()!.id\"\n [summary]=\"detail()!.summary\"\n [transcript]=\"detail()!.transcript\"\n [tools]=\"detail()!.tools\"\n [callDurationSec]=\"detail()!.duration\"\n [callerName]=\"detail()!.name\"\n [callerMatched]=\"!isUnknownName(detail()!.name)\"\n (summaryRegenerated)=\"refreshCallDetail()\"\n >\n <eds-call-tasks-panel\n summary-side\n [callId]=\"detail()!.id\"\n [compact]=\"true\"\n />\n </eds-call-conversation-panel>\n } @else {\n <p class=\"eds-body-sm\">Call not found.</p>\n }\n</div>\n"],"names":[],"mappings":";;;;;;;;;;;AAQA;AACM,SAAU,cAAc,CAAC,KAAa,EAAA;AAC1C,IAAA,MAAM,OAAO,GAAG,KAAK,EAAE,IAAI,EAAE;AAC7B,IAAA,IAAI,CAAC,OAAO;AAAE,QAAA,OAAO,IAAI;IACzB,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC;AACtD,IAAA,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAAE,QAAA,OAAO,IAAI;AACnD,IAAA,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE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