diff --git a/.changeset/tidy-wombats-wait.md b/.changeset/tidy-wombats-wait.md new file mode 100644 index 00000000..8d178f79 --- /dev/null +++ b/.changeset/tidy-wombats-wait.md @@ -0,0 +1,5 @@ +--- +"web": minor +--- + +feat: add parameters in run config ui diff --git a/apps/web/app/page.tsx b/apps/web/app/page.tsx index 81e7c234..015a3dcc 100644 --- a/apps/web/app/page.tsx +++ b/apps/web/app/page.tsx @@ -56,7 +56,7 @@ export default function Page(): JSX.Element {
- showRunDetails(activeRun ? undefined : run) + showRunDetails(activeRun?.id === run.id ? undefined : run) } headers={tableHeaders} /> diff --git a/apps/web/components/run-completion-header.tsx b/apps/web/components/run-completion-header.tsx index 59b35e63..64860123 100644 --- a/apps/web/components/run-completion-header.tsx +++ b/apps/web/components/run-completion-header.tsx @@ -95,31 +95,35 @@ export const RunColumnHeaders = ({ #{header.runResult?.id} - {header.runResult?.run_config.type === "model" && ( - - )} + - + {header.runResult?.stats?.scores && header.runResult?.stats?.scores.length > 0 && ( -
-
- {(header.runResult?.stats?.scores || []).map((s) => ( - <> -
- -
- - ))} + <> + +
+
+ {(header.runResult?.stats?.scores || []).map((s) => ( + <> +
+ +
+ + ))} +
-
+ )}
diff --git a/apps/web/components/run-details.tsx b/apps/web/components/run-details.tsx index 5806b2c9..ff6efbeb 100644 --- a/apps/web/components/run-details.tsx +++ b/apps/web/components/run-details.tsx @@ -39,21 +39,35 @@ export const RunDetails = ({ - - Prompt template + {runResult.run_config.type === "model" && ( + + Prompt template + + )} + + Parameters - - {runResult.run_config.type === "model" && ( + {runResult.run_config.type === "model" && ( + - )} + + )} + + - -