mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-24 08:01:38 +00:00
cdc76994f8
* feat(frontend): wip * feat(frontend): button refactor wip * feat(frontend): button refactor wip * feat(frontend): fix build * feat(frontend): fix build * fix(frontend): fix build * fix(frontend): fix buttons styles * fix(frontend): remove dev file * feat(frontend): clean up * feat(frontend): done * feat(frontend): done * feat(frontend): remove duplicated componnet * feat(frontend): wip * feat(frontend): wip * feat(frontend): forked Flow icons * feat(frontend): remove legacy dropdown * feat(frontend): migrated all + remove dependencies * feat(frontend): clean up
20 lines
767 B
Svelte
20 lines
767 B
Svelte
<script lang="ts">
|
|
import { msToSec } from '$lib/utils'
|
|
import { Badge } from './common'
|
|
import Tooltip from './Tooltip.svelte'
|
|
import { Hourglass } from 'lucide-svelte'
|
|
|
|
export let duration_ms: number
|
|
</script>
|
|
|
|
<Badge large icon={{ icon: Hourglass, position: 'left' }}>
|
|
Ran in {msToSec(duration_ms)}s
|
|
<Tooltip>
|
|
For scripts, this is the time that it took to execute from the time it was picked by a worker,
|
|
to the time the result was stored.<br />
|
|
For flows, it is the cumulative time of the execution of each steps. Suspend/sleep/transition times
|
|
are not accounted for, and each step's duration in a parallel branch would be added. Hence the time
|
|
here can differ from the time it took for the flow to have a result from start.
|
|
</Tooltip>
|
|
</Badge>
|