mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-11-25 00:08:25 +00:00
have timeline callers say when a wait bar is followed by a bar (#12441)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d09336d8df
commit
8398e34465
@@ -245,6 +245,7 @@
|
||||
{min}
|
||||
{compact}
|
||||
gray
|
||||
followedByBar={!!b.started_at}
|
||||
spacerClass="bg-gray-100 dark:bg-gray-800/50 rounded-l-md"
|
||||
started_at={b.created_at}
|
||||
len={waitingLen < 100 ? 0 : waitingLen - 100}
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
tooltip?: string
|
||||
/** A thin bar with no duration inside it: the caller shows the duration elsewhere. */
|
||||
compact?: boolean
|
||||
/** Another bar starts where this one ends, so a narrow bar's outside label would collide with its label. */
|
||||
followedByBar?: boolean
|
||||
}
|
||||
|
||||
let {
|
||||
@@ -35,7 +37,8 @@
|
||||
spacerClass = '',
|
||||
colorClass = undefined,
|
||||
tooltip = undefined,
|
||||
compact = false
|
||||
compact = false,
|
||||
followedByBar = false
|
||||
}: Props = $props()
|
||||
</script>
|
||||
|
||||
@@ -73,8 +76,7 @@
|
||||
{@const narrow = len / total < 0.09}
|
||||
{@const endPos =
|
||||
started_at != undefined && min != undefined ? (started_at - min + len) / total : 1}
|
||||
<!-- Once the job has started, a narrow wait bar is directly followed by its execution bar, whose label would collide. -->
|
||||
{#if !(narrow && gray && !running)}
|
||||
{#if !(narrow && followedByBar)}
|
||||
<span
|
||||
title={msToReadableTime(len, 1)}
|
||||
class={narrow
|
||||
|
||||
@@ -354,6 +354,7 @@
|
||||
{total}
|
||||
{min}
|
||||
gray
|
||||
followedByBar={!!startedAt}
|
||||
started_at={scheduledFor}
|
||||
len={waitingLen < 100 ? 0 : waitingLen - 100}
|
||||
running={!flowDone && startedAt == undefined}
|
||||
|
||||
@@ -149,6 +149,7 @@
|
||||
{total}
|
||||
{min}
|
||||
gray
|
||||
followedByBar={!!b.started_at}
|
||||
started_at={b.created_at}
|
||||
len={waitingLen < 100 ? 0 : waitingLen - 100}
|
||||
running={b?.started_at == undefined}
|
||||
|
||||
Reference in New Issue
Block a user