diff --git a/src/lib/holocene/accordion/accordion-light.svelte b/src/lib/holocene/accordion/accordion-light.svelte index 0a2b540b4..4ade8a220 100644 --- a/src/lib/holocene/accordion/accordion-light.svelte +++ b/src/lib/holocene/accordion/accordion-light.svelte @@ -33,7 +33,7 @@ id="{id}-trigger" aria-expanded={open} aria-controls="{id}-content" - class="w-full cursor-pointer hover:bg-interactive-secondary-hover focus-visible:bg-interactive focus-visible:outline-none" + class="focus-visible:outline-interactive w-full cursor-pointer hover:bg-interactive-secondary-hover" type="button" on:click={toggleAccordion} > diff --git a/src/lib/i18n/locales/en/workflows.ts b/src/lib/i18n/locales/en/workflows.ts index f79018e84..af59dbff4 100644 --- a/src/lib/i18n/locales/en/workflows.ts +++ b/src/lib/i18n/locales/en/workflows.ts @@ -185,6 +185,7 @@ export const Strings = { summary: 'Summary', details: 'Details', 'summary-and-details': 'Summary & Details', + 'current-details': 'Current Details', 'maximum-attempts': 'Maximum Attempts', 'retry-expiration': 'Retry Expiration', state: 'State', diff --git a/src/lib/layouts/workflow-header.svelte b/src/lib/layouts/workflow-header.svelte index f3f3fe0bb..03d853ad7 100644 --- a/src/lib/layouts/workflow-header.svelte +++ b/src/lib/layouts/workflow-header.svelte @@ -38,15 +38,13 @@ routeForWorkflows, } from '$lib/utilities/route-for'; - export let namespace: string; - + $: ({ namespace, workflow: workflowId, run: runId, id } = $page.params); $: ({ workflow, workers } = $workflowRun); - $: id = $page.params.id; $: routeParameters = { namespace, - workflow: workflow?.id, - run: workflow?.runId, + workflow: workflowId, + run: runId, }; $: isRunning = $workflowRun?.workflow?.isRunning; @@ -57,7 +55,7 @@ $workflowRun?.workflow?.status, $fullEventHistory, ); - $: workflowHasBeenReset = has($resetWorkflows, $workflowRun?.workflow?.runId); + $: workflowHasBeenReset = has($resetWorkflows, runId); $: workflowUsesVersioning = workflow?.assignedBuildId ?? workflow?.mostRecentWorkerVersionStamp?.useVersioning; @@ -70,6 +68,7 @@ $: summary = $workflowRun?.userMetadata?.summary; $: details = $workflowRun?.userMetadata?.details; $: hasUserMetadata = summary || details; + $: currentDetails = $workflowRun?.metadata?.currentDetails;