From b329b3ba1e06a47188f7d6987c52ffca8f23c217 Mon Sep 17 00:00:00 2001 From: Clement Zhang Date: Fri, 8 Nov 2024 18:49:52 +0100 Subject: [PATCH] in modal, basic interface: select jobs, set args, reset args --- .../components/runs/RunnableBatchModal.svelte | 110 ++++++++++++++++++ .../src/lib/components/runs/RunsTable.svelte | 3 + 2 files changed, 113 insertions(+) create mode 100644 frontend/src/lib/components/runs/RunnableBatchModal.svelte diff --git a/frontend/src/lib/components/runs/RunnableBatchModal.svelte b/frontend/src/lib/components/runs/RunnableBatchModal.svelte new file mode 100644 index 0000000000..85551c9063 --- /dev/null +++ b/frontend/src/lib/components/runs/RunnableBatchModal.svelte @@ -0,0 +1,110 @@ + + + { + modalIsOpen = false + // dispatch('confirmed') + }} + on:canceled + title="Runnable batch" + class="w-full max-w-full xl:max-w-7xl" +> + + +
+ +
+

Runnable Jobs

+
    + {#each innerJobs as job} +
  • + + {job.id} + {job.script_path} + {job.tag} +
  • + {/each} +
+
+ + +
+

Job Configurations

+ + + {#each innerJobs as job} + {#if job.isSelected} +
+

{job.id} Config

+
+ {#if job.args !== undefined} + {#each Object.keys(job.args) as key} +
+ + +
+ {/each} + {/if} +
+
+ {/if} + {/each} +
+
+
diff --git a/frontend/src/lib/components/runs/RunsTable.svelte b/frontend/src/lib/components/runs/RunsTable.svelte index 340eaeba9b..fc62d3a57c 100644 --- a/frontend/src/lib/components/runs/RunsTable.svelte +++ b/frontend/src/lib/components/runs/RunsTable.svelte @@ -9,6 +9,7 @@ import { workspaceStore } from '$lib/stores' import { twMerge } from 'tailwind-merge' import { isJobCancelable } from '$lib/utils' + import RunnableBatchModal from './RunnableBatchModal.svelte' //import InfiniteLoading from 'svelte-infinite-loading' export let jobs: Job[] | undefined = undefined @@ -189,6 +190,8 @@ computeHeight()} /> + +