From bdd109597f4635341f26fba94d478efd8d0f3fc9 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Thu, 7 May 2026 13:30:02 -0700 Subject: [PATCH] style(web): always format event row durations in seconds Co-Authored-By: Claude Opus 4.7 (1M context) --- apps/fabro-web/app/routes/run-stages.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/apps/fabro-web/app/routes/run-stages.tsx b/apps/fabro-web/app/routes/run-stages.tsx index af13ab374..fb353789f 100644 --- a/apps/fabro-web/app/routes/run-stages.tsx +++ b/apps/fabro-web/app/routes/run-stages.tsx @@ -298,7 +298,6 @@ function durationBetween(startTs: string | undefined, endTs: string): number { } function formatDurationMs(ms: number): string { - if (ms < 1000) return `${ms}ms`; return `${(ms / 1000).toFixed(1)}s`; } @@ -517,13 +516,7 @@ function EventDetails({ turn, runStart }: { turn: TurnType; runStart: string | u {turn.running ? "Running…" : `exit ${turn.exitCode ?? "?"}${ - turn.durationMs - ? ` · ${ - turn.durationMs < 1000 - ? `${turn.durationMs}ms` - : `${(turn.durationMs / 1000).toFixed(1)}s` - }` - : "" + turn.durationMs ? ` · ${formatDurationMs(turn.durationMs)}` : "" }`}