/* Activity — the control-command queue: every enqueued action and its status * (queued → running → done/failed). The audit log of what the dashboard triggered. */ "use client"; import { useDashboard } from "@/components/store"; import { Button, StatusBadge } from "@/components/ui"; import { fmtFull } from "@/lib/format"; export function ActivitySection() { const s = useDashboard(); return ( <>
Activity
Control commands the worker drains from the queue.
{s.commands.length === 0 ? (
No commands yet.
) : (
{s.commands.map((c) => ( ))}
When Type Repository Agent Status Result / Error
{fmtFull(c.created_at)} {c.type} {c.project_id || "—"} {c.agent_name || "—"} {c.error || (c.result ? JSON.stringify(c.result) : "—")}
)}
); }