Add debugging
This commit is contained in:
@@ -138,6 +138,29 @@ export function CallRow({ call, systemName, isAdmin }: Props) {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Correlation debug — admin only */}
|
||||
{isAdmin && call.corr_path && (
|
||||
<div className="flex flex-wrap gap-x-3 gap-y-0.5 text-xs font-mono text-gray-600">
|
||||
<span>corr:</span>
|
||||
<span className="text-gray-400">{call.corr_path}</span>
|
||||
{call.corr_incident_idle_min != null && (
|
||||
<span>idle {call.corr_incident_idle_min}min</span>
|
||||
)}
|
||||
{call.corr_score != null && (
|
||||
<span>sim={call.corr_score.toFixed(3)}</span>
|
||||
)}
|
||||
{call.corr_distance_km != null && (
|
||||
<span>dist={call.corr_distance_km}km</span>
|
||||
)}
|
||||
{call.corr_shared_units != null && (
|
||||
<span>{call.corr_shared_units} shared units</span>
|
||||
)}
|
||||
{call.corr_candidates != null && (
|
||||
<span>{call.corr_candidates} candidates</span>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Transcript */}
|
||||
{editing ? (
|
||||
<div className="space-y-2" onClick={(e) => e.stopPropagation()}>
|
||||
|
||||
@@ -56,6 +56,13 @@ export interface CallRecord {
|
||||
location: string | null;
|
||||
tags: string[];
|
||||
status: "active" | "ended";
|
||||
// Correlation debug — written by the correlator, present after a call is linked
|
||||
corr_path?: string | null;
|
||||
corr_score?: number | null;
|
||||
corr_distance_km?: number | null;
|
||||
corr_incident_idle_min?: number | null;
|
||||
corr_shared_units?: number | null;
|
||||
corr_candidates?: number | null;
|
||||
}
|
||||
|
||||
export interface IncidentRecord {
|
||||
|
||||
Reference in New Issue
Block a user