/* 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 ( <>
| 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) : "—")} |