diff --git a/frontend/src/lib/components/HistoricInputs.svelte b/frontend/src/lib/components/HistoricInputs.svelte index be49a0dce9..2f3ac70672 100644 --- a/frontend/src/lib/components/HistoricInputs.svelte +++ b/frontend/src/lib/components/HistoricInputs.svelte @@ -103,7 +103,7 @@ - import { Button } from '$lib/components/common' import { InputService, @@ -22,16 +21,14 @@ import Skeleton from './common/skeleton/Skeleton.svelte' import SaveInputsButton from './SaveInputsButton.svelte' - - interface Props { - scriptHash?: string | null; - scriptPath?: string | null; - flowPath?: string | null; - canSaveInputs?: boolean; + scriptHash?: string | null + scriptPath?: string | null + flowPath?: string | null + canSaveInputs?: boolean // Are the current Inputs valid and able to be saved? - isValid: boolean; - args: object; + isValid: boolean + args: object } let { @@ -41,7 +38,7 @@ canSaveInputs = true, isValid, args - }: Props = $props(); + }: Props = $props() interface EditableInput extends Input { isEditing?: boolean @@ -57,14 +54,9 @@ let runnableId = $derived(scriptHash || scriptPath || flowPath || undefined) - let runnableType: RunnableType | undefined = $derived(scriptHash - ? 'ScriptHash' - : scriptPath - ? 'ScriptPath' - : flowPath - ? 'FlowPath' - : undefined) - + let runnableType: RunnableType | undefined = $derived( + scriptHash ? 'ScriptHash' : scriptPath ? 'ScriptPath' : flowPath ? 'FlowPath' : undefined + ) let hasAlreadyFailed = false async function loadInputHistory() { @@ -131,11 +123,11 @@ $effect(() => { if ($workspaceStore && (scriptHash || scriptPath || flowPath)) { untrack(() => { - loadInputHistory() - loadSavedInputs() + loadInputHistory() + loadSavedInputs() }) } - }); + }) let previewArgs: any = $state(undefined) @@ -162,7 +154,7 @@
- +
{#snippet header()} Skipped flows are flows that did an early break diff --git a/frontend/src/routes/(root)/(logged)/runs/[...path]/+page.svelte b/frontend/src/routes/(root)/(logged)/runs/[...path]/+page.svelte index 743cb81dd4..79a6e89882 100644 --- a/frontend/src/routes/(root)/(logged)/runs/[...path]/+page.svelte +++ b/frontend/src/routes/(root)/(logged)/runs/[...path]/+page.svelte @@ -76,9 +76,9 @@ | 'failure' | undefined ) - let isSkipped: boolean | undefined = $state( - page.url.searchParams.get('is_skipped') != undefined - ? page.url.searchParams.get('is_skipped') == 'true' + let showSkipped: boolean | undefined = $state( + page.url.searchParams.get('show_skipped') != undefined + ? page.url.searchParams.get('show_skipped') == 'true' : false ) @@ -131,9 +131,9 @@ | 'success' | 'failure' | undefined - isSkipped = - page.url.searchParams.get('is_skipped') != undefined - ? page.url.searchParams.get('is_skipped') == 'true' + showSkipped = + page.url.searchParams.get('show_skipped') != undefined + ? page.url.searchParams.get('show_skipped') == 'true' : false showSchedules = @@ -241,10 +241,10 @@ searchParams.delete('success') } - if (isSkipped) { - searchParams.set('is_skipped', isSkipped.toString()) + if (showSkipped) { + searchParams.set('show_skipped', showSkipped.toString()) } else { - searchParams.delete('is_skipped') + searchParams.delete('show_skipped') } if (showSchedules) { @@ -524,7 +524,7 @@ : success == 'waiting' ? false : undefined, - isSkipped: isSkipped ? undefined : false, + isSkipped: showSkipped ? undefined : false, // isFlowStep: jobKindsCat != 'all' ? false : undefined, hasNullParent: path != undefined || path != undefined || jobKindsCat != 'all' ? true : undefined, @@ -735,7 +735,7 @@ folder, path, success !== undefined, - isSkipped, + showSkipped, showSchedules, showFutureJobs, argFilter, @@ -818,7 +818,7 @@ {worker} {label} {success} - {isSkipped} + {showSkipped} {argFilter} {resultFilter} {showSchedules} @@ -1025,7 +1025,7 @@