+ {activeTab === "overview" ? (
+
+ {/* Stat Cards */}
+
+
+ Drift Score
+ 40 ? "text-red-600" : details.score > 20 ? "text-amber-500" : "text-gray-900"}`}>
+ {details.score}
+
+ out of 100
+
+
+ Total Requests
+
+ {totalLogs.toLocaleString()}
+
+ last 7 days
+
+
+ Avg. Latency Added
+ {avgLatency}
+ last 24h
+
+
+
+ {/* Drift Chart */}
+
+
Behavioral Drift
+
+ v.toFixed(2)}
+ yAxisWidth={48}
+ showLegend={true}
+ curveType="natural"
+ connectNulls={true}
+ />
+
+
+ {/* Factor Cards */}
+
+
+
+
+
+
+
+
+ ) : (
+
+
+
+
+
+ Logs — {agent.name}
+
+
+ {logsLoading
+ ? "Loading\u2026"
+ : logs.length > 0
+ ? `Showing ${logs.length} of ${totalLogs} entries`
+ : "No logs for this period."}
+
+
+ {totalPages > 1 && (
+
+
+
+ Page {currentPage} of {totalPages}
+
+
+
+ )}
+
+
+
+ {logsLoading && (
+
+
+
+ )}
+ {!logsLoading && logs.length === 0 && (
+
+ No logs to display. Adjust filters or date range.
+
+ )}
+ {!logsLoading && logs.length > 0 && (
+
+ {logs.map((log) => (
+ handleLogClick(log)}
+ />
+ ))}
+
+ )}
+
+ )}
+