From 05361e04f142a7fe25d3c2b2c482bffe4d7310a5 Mon Sep 17 00:00:00 2001 From: scosman Date: Thu, 17 Oct 2024 11:42:32 -0400 Subject: [PATCH] better layout --- app/web_ui/src/lib/utils/form_element.svelte | 2 +- app/web_ui/src/routes/(app)/run/+page.svelte | 79 +++++++++++--------- app/web_ui/src/routes/(app)/run/run.svelte | 8 +- 3 files changed, 47 insertions(+), 42 deletions(-) diff --git a/app/web_ui/src/lib/utils/form_element.svelte b/app/web_ui/src/lib/utils/form_element.svelte index d97ebe6..5afd7f9 100644 --- a/app/web_ui/src/lib/utils/form_element.svelte +++ b/app/web_ui/src/lib/utils/form_element.svelte @@ -106,7 +106,7 @@ autocomplete="off" /> {:else if inputType === "select"} - {#if select_options_grouped.length > 0} {#each select_options_grouped as group} diff --git a/app/web_ui/src/routes/(app)/run/+page.svelte b/app/web_ui/src/routes/(app)/run/+page.svelte index 42844f7..9263fd6 100644 --- a/app/web_ui/src/routes/(app)/run/+page.svelte +++ b/app/web_ui/src/routes/(app)/run/+page.svelte @@ -108,17 +108,28 @@ -
- -
-
Inputs
-
+
+
+
+
Input
+ +
+ +
+
+
+
Options
- - -
- {#if $current_task && !submitting && response != null && $current_project} - {#if response.run != null} -
- + {#if $current_task && !submitting && response != null && $current_project} + {#if response.run != null} +
+ +
+ {:else if response?.raw_output} + +
Run Output
+ -
- {:else if response?.raw_output} - -
Run Output
- + {/if} {/if} - {/if} +
diff --git a/app/web_ui/src/routes/(app)/run/run.svelte b/app/web_ui/src/routes/(app)/run/run.svelte index 01bc4bc..034c40d 100644 --- a/app/web_ui/src/routes/(app)/run/run.svelte +++ b/app/web_ui/src/routes/(app)/run/run.svelte @@ -120,7 +120,7 @@
-
+
Outputs
{#if task.output_json_schema} @@ -143,7 +143,7 @@ />
-
+
Output Rating {#if save_rating_error} @@ -160,8 +160,8 @@ {/if}
-
-
+
+
Overall Rating: