|
38 | 38 | routeForWorkflows,
|
39 | 39 | } from '$lib/utilities/route-for';
|
40 | 40 |
|
41 |
| - export let namespace: string; |
42 |
| -
|
| 41 | + $: ({ namespace, workflow: workflowId, run: runId, id } = $page.params); |
43 | 42 | $: ({ workflow, workers } = $workflowRun);
|
44 |
| - $: id = $page.params.id; |
45 | 43 |
|
46 | 44 | $: routeParameters = {
|
47 | 45 | namespace,
|
48 |
| - workflow: workflow?.id, |
49 |
| - run: workflow?.runId, |
| 46 | + workflow: workflowId, |
| 47 | + run: runId, |
50 | 48 | };
|
51 | 49 |
|
52 | 50 | $: isRunning = $workflowRun?.workflow?.isRunning;
|
|
57 | 55 | $workflowRun?.workflow?.status,
|
58 | 56 | $fullEventHistory,
|
59 | 57 | );
|
60 |
| - $: workflowHasBeenReset = has($resetWorkflows, $workflowRun?.workflow?.runId); |
| 58 | + $: workflowHasBeenReset = has($resetWorkflows, runId); |
61 | 59 | $: workflowUsesVersioning =
|
62 | 60 | workflow?.assignedBuildId ??
|
63 | 61 | workflow?.mostRecentWorkerVersionStamp?.useVersioning;
|
|
70 | 68 | $: summary = $workflowRun?.userMetadata?.summary;
|
71 | 69 | $: details = $workflowRun?.userMetadata?.details;
|
72 | 70 | $: hasUserMetadata = summary || details;
|
| 71 | + $: currentDetails = $workflowRun?.metadata?.currentDetails; |
73 | 72 | </script>
|
74 | 73 |
|
75 | 74 | <div class="flex items-center justify-between pb-4">
|
|
124 | 123 | </div>
|
125 | 124 | {#if hasUserMetadata}
|
126 | 125 | <AccordionLight let:open>
|
127 |
| - <div |
128 |
| - slot="title" |
129 |
| - class="flex w-full items-center gap-2 rounded p-2 text-xl" |
130 |
| - > |
| 126 | + <div slot="title" class="flex w-full items-center gap-2 p-2 text-xl"> |
131 | 127 | <Icon
|
132 |
| - name="flag" |
133 |
| - class="text-indigo-600/80" |
| 128 | + name="info" |
| 129 | + class="text-brand" |
134 | 130 | width={32}
|
135 | 131 | height={32}
|
136 | 132 | />{translate('workflows.summary-and-details')}
|
|
145 | 141 | {/if}
|
146 | 142 | </AccordionLight>
|
147 | 143 | {/if}
|
| 144 | + {#if currentDetails} |
| 145 | + <AccordionLight let:open> |
| 146 | + <div |
| 147 | + slot="title" |
| 148 | + class="flex w-full items-center gap-2 rounded p-2 text-xl" |
| 149 | + > |
| 150 | + <Icon |
| 151 | + name="flag" |
| 152 | + class="text-indigo-600/80" |
| 153 | + width={32} |
| 154 | + height={32} |
| 155 | + />{translate('workflows.current-details')} |
| 156 | + </div> |
| 157 | + {#if open} |
| 158 | + <Markdown content={currentDetails} /> |
| 159 | + {/if} |
| 160 | + </AccordionLight> |
| 161 | + {/if} |
148 | 162 | <WorkflowDetails />
|
149 | 163 | {#if cancelInProgress}
|
150 | 164 | <div in:fly={{ duration: 200, delay: 100 }}>
|
|
0 commit comments