diff --git a/src/app/(app)/runs/[runId]/page.tsx b/src/app/(app)/runs/[runId]/page.tsx index 1c93718..1ac4b9f 100644 --- a/src/app/(app)/runs/[runId]/page.tsx +++ b/src/app/(app)/runs/[runId]/page.tsx @@ -66,7 +66,7 @@ export default async function RunDetailPage({ params }: RunDetailPageProps) { })); return ( -
+
{run.scriptName} @@ -119,7 +119,7 @@ export default async function RunDetailPage({ params }: RunDetailPageProps) { Variables -
+
{variableEntries.map(({ key, label, value }) => (
{label}
diff --git a/src/app/(app)/scripts/[scriptId]/page.tsx b/src/app/(app)/scripts/[scriptId]/page.tsx index 384bd3f..be4de08 100644 --- a/src/app/(app)/scripts/[scriptId]/page.tsx +++ b/src/app/(app)/scripts/[scriptId]/page.tsx @@ -55,7 +55,7 @@ export default async function ScriptPage({ } return ( -
+
{script.name} diff --git a/src/components/forms/dynamic-form.tsx b/src/components/forms/dynamic-form.tsx index f12967b..f0b800a 100644 --- a/src/components/forms/dynamic-form.tsx +++ b/src/components/forms/dynamic-form.tsx @@ -14,6 +14,11 @@ import { defaultValuesForScript } from "@/lib/config/defaults"; import type { ClientScript } from "@/lib/config/serialize"; import { FieldRenderer } from "./field-renderer"; +/** Controls whose content doesn't shrink well into a narrow grid column - long-form text, + * or a group of checkboxes that reads better as a single wide list - so they span the full + * grid width instead of sharing a row with other fields. */ +const WIDE_CONTROLS = new Set(["textarea", "checkboxGroup"]); + /** `initialValues` comes from a previous run's (already-redacted) variables when re-running - * secret fields are deliberately excluded there (their stored value is just "***", not the real * one), so those always fall through to the normal default/empty state and have to be re-entered. */ @@ -93,9 +98,22 @@ export function DynamicForm({ This script takes no parameters.

)} - {script.variables.map((variable) => ( - - ))} + {script.variables.length > 0 && ( +
+ {script.variables.map((variable) => ( +
+ +
+ ))} +
+ )}