-
{summary}
- {lists.failed.length > 0 && (
-
- failed skills: {summarizeNames(lists.failed, 6)}
-
- )}
- {lists.warning.length > 0 && (
-
- warning skills: {summarizeNames(lists.warning, 6)}
-
- )}
- {lists.low.length > 0 && (
-
- low skills: {summarizeNames(lists.low, 6)}
-
- )}
- {lists.info.length > 0 && (
-
- info skills: {summarizeNames(lists.info, 6)}
-
- )}
-
- );
-}
-
-/* ──────────────────────────────────────────────────────────────────────
- * LogStatsBar — summary stat cards
- * ────────────────────────────────────────────────────────────────────── */
-
-function LogStatsBar({ stats }: { stats: LogStatsResponse }) {
- const commands = Object.entries(stats.by_command).sort((a, b) => b[1].total - a[1].total);
- const rate = stats.total > 0 ? Math.round(stats.success_rate * 100) : 0;
-
- return (
-
- {/* Success rate */}
-
= 90 ? 'var(--color-success)' : rate >= 70 ? 'var(--color-warning)' : 'var(--color-danger)',
- boxShadow: shadows.sm,
- }}
- >
-
= 90 ? 'var(--color-success)' : rate >= 70 ? 'var(--color-warning)' : 'var(--color-danger)',
- color: rate >= 90 ? 'var(--color-success)' : rate >= 70 ? 'var(--color-warning)' : 'var(--color-danger)',
- }}
- >
-
-
-
-
= 90 ? 'var(--color-success)' : rate >= 70 ? 'var(--color-warning)' : 'var(--color-danger)',
- }}>
- {rate}%
-
-
- {stats.total} total
-
-
-
-
- {/* Top commands */}
- {commands.slice(0, 4).map(([cmd, cs]) => {
- const hasErrors = cs.error > 0 || cs.blocked > 0;
- return (
-
-
- {cmd === 'audit' ? : }
-
-
-
- {cmd}
-
-
- {cs.total}
- {cs.ok > 0 && {cs.ok} ok}
- {cs.error > 0 && {cs.error} err}
- {cs.partial > 0 && {cs.partial} partial}
-
-
-
- );
- })}
-
- {/* Last operation */}
- {stats.last_operation && (
-
-
-
-
-
-
- {stats.last_operation.cmd}
-
-
- {statusBadge(stats.last_operation.status)}
-
-
-
- )}
-
- );
-}
-
-/* ──────────────────────────────────────────────────────────────────────
- * LogTable — paginated table with status-colored left stripes
- * ────────────────────────────────────────────────────────────────────── */
-
-const PAGE_SIZES = [10, 25, 50] as const;
+/* ─── LogTable — clean, minimal table ─── */
function LogTable({ entries }: { entries: LogEntry[] }) {
const [page, setPage] = useState(0);
@@ -412,15 +223,14 @@ function LogTable({ entries }: { entries: LogEntry[] }) {
return (