+ {/* Header */}
+
+
+
Agent Performance
+
+ Success rate, completion time, and rejection rate per agent
+
+
+
+ {[7, 14, 30, 90].map(d => (
+
+ ))}
+
+
+
+
+ {/* Summary Cards */}
+
+
+
+
+
+
+
+ {/* Agent Cards */}
+ {performances.length === 0 ? (
+
+ No agent performance data for the last {days} days
+
+ ) : (
+
+ {performances.map(perf => (
+
setExpandedAgent(expandedAgent === perf.agent ? null : perf.agent)}
+ />
+ ))}
+
+ )}
+
+ )
+}
+
+function SummaryCard({ label, value, color }: { label: string; value: number; color: string }) {
+ return (
+