From c6955ed4457c2bdb59fd3ffef4379ce05548c999 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sat, 14 Nov 2026 15:07:04 +0000 Subject: [PATCH] feat: show long step durations in hours and minutes on run timelines (#12437) * feat: show long step durations in hours and minutes on run timelines Co-Authored-By: Claude Opus 5.5 * fix: keep the wait label on a queued step with no execution bar yet Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 --- .../components/FlowStatusViewerInner.svelte | 10 ++++++-- .../src/lib/components/FlowTimeline.svelte | 10 ++++---- .../src/lib/components/TimelineBar.svelte | 22 ++++++++++-------- .../lib/components/WorkflowTimeline.svelte | 8 +++---- .../lib/components/flows/map/MapItem.svelte | 4 ++-- .../renderers/nodes/FailureModuleNode.svelte | 4 ++-- frontend/src/lib/utils.test.ts | 13 ++++++++++- frontend/src/lib/utils.ts | 23 +++++++++++++++++++ 8 files changed, 68 insertions(+), 26 deletions(-) diff --git a/frontend/src/lib/components/FlowStatusViewerInner.svelte b/frontend/src/lib/components/FlowStatusViewerInner.svelte index 764ea18c06..b0ff16fca3 100644 --- a/frontend/src/lib/components/FlowStatusViewerInner.svelte +++ b/frontend/src/lib/components/FlowStatusViewerInner.svelte @@ -25,7 +25,13 @@ import Tabs from './common/tabs/Tabs.svelte' import { type DurationStatus, type FlowStatusViewerContext, type GraphModuleState } from './graph' import ModuleStatus from './ModuleStatus.svelte' - import { clone, isScriptPreview, msToSec, readFieldsRecursively, truncateRev } from '$lib/utils' + import { + clone, + isScriptPreview, + msToCompactDuration, + readFieldsRecursively, + truncateRev + } from '$lib/utils' import { downloadViaClient, shouldDownloadViaClient } from '$lib/utils/downloadFile' import { appendViewToken } from '$lib/viewToken' import JobArgs from './JobArgs.svelte' @@ -2289,7 +2295,7 @@ {#if node.duration_ms} - {msToSec(node.duration_ms)} s + {msToCompactDuration(node.duration_ms)} {/if} {#if node.job_id && !isReplay} diff --git a/frontend/src/lib/components/FlowTimeline.svelte b/frontend/src/lib/components/FlowTimeline.svelte index a8198c1ade..7566b2260a 100644 --- a/frontend/src/lib/components/FlowTimeline.svelte +++ b/frontend/src/lib/components/FlowTimeline.svelte @@ -1,5 +1,5 @@