From 8b9af72a286cafd92fd4aeebc62cb9d5692ebd99 Mon Sep 17 00:00:00 2001 From: Jiang Bohan Date: Sat, 18 Apr 2026 12:57:46 +0800 Subject: [PATCH] fix(autopilots): spin the Loader2 icon while a run is in progress The autopilot detail page mapped `status: "running"` to a `Loader2` icon but rendered it without `animate-spin`, so a manually-triggered run sat on a static circle until the row flipped to completed/failed and the user got no visual feedback that anything was happening. Add an optional `spin: true` flag to the run-status config and apply `animate-spin` when set. Only the running entry is marked. --- .../views/autopilots/components/autopilot-detail-page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/views/autopilots/components/autopilot-detail-page.tsx b/packages/views/autopilots/components/autopilot-detail-page.tsx index ae2f30b33..7fc92f8e4 100644 --- a/packages/views/autopilots/components/autopilot-detail-page.tsx +++ b/packages/views/autopilots/components/autopilot-detail-page.tsx @@ -52,9 +52,9 @@ function formatDate(date: string): string { }); } -const RUN_STATUS_CONFIG: Record = { +const RUN_STATUS_CONFIG: Record = { issue_created: { label: "Issue Created", color: "text-blue-500", icon: Clock }, - running: { label: "Running", color: "text-blue-500", icon: Loader2 }, + running: { label: "Running", color: "text-blue-500", icon: Loader2, spin: true }, completed: { label: "Completed", color: "text-emerald-500", icon: CheckCircle2 }, failed: { label: "Failed", color: "text-destructive", icon: XCircle }, }; @@ -66,7 +66,7 @@ function RunRow({ run }: { run: AutopilotRun }) { const content = ( <> - + {cfg.label} {run.source}