nits progress bar

This commit is contained in:
Ruben Fiszel
2025-11-27 17:48:07 +00:00
parent f88fd0e61e
commit 697ed6711d
2 changed files with 12 additions and 11 deletions
@@ -11,6 +11,7 @@
import ResolveConfig from '../helpers/ResolveConfig.svelte'
import ResolveStyle from '../helpers/ResolveStyle.svelte'
import InitializeComponent from '../helpers/InitializeComponent.svelte'
import FlowProgressBar from '$lib/components/flows/FlowProgressBar.svelte'
interface Props {
id: string
@@ -100,27 +101,27 @@
bind:this={jobLoader}
bind:isLoading={testIsLoading}
bind:job={testJob}
bind:scriptProgress
/>
<InitializeComponent {id} />
{#if render}
<div class="flex flex-col w-full h-full component-wrapper">
<div
class={twMerge(
'w-full border-b p-2 text-xs font-semibold text-primary bg-surface-secondary',
css?.header?.class
)}
style={css?.header?.style}
>
Progress
</div>
<div
style={css?.container?.style}
class={twMerge('p-2 grow overflow-auto', css?.container?.class)}
>
{#if testJob}
<JobProgressBar job={testJob} {scriptProgress} />
{#if testJob.job_kind == 'flow' || testJob.job_kind == 'flowpreview'}
<FlowProgressBar
job={testJob}
bind:currentSubJobProgress={scriptProgress}
class="py-4 max-w-7xl mx-auto px-4"
/>
{:else}
<JobProgressBar hideStepTitle job={testJob} {scriptProgress} />
{/if}
{:else}
<span class="text-secondary text-xs">No job</span>
{/if}
@@ -1280,7 +1280,7 @@ export const components = {
},
jobprogressbarcomponent: {
name: 'Progress Bar by Job Id',
icon: Clock,
icon: Monitor,
documentationLink: `${documentationBaseUrl}/progress_bar`,
dims: '2:2-6:2' as AppComponentDimensions,
customCss: {