diff --git a/frontend/src/features/simulations/components/SimulationDetailsView.tsx b/frontend/src/features/simulations/components/SimulationDetailsView.tsx index 014639cb..97300c57 100644 --- a/frontend/src/features/simulations/components/SimulationDetailsView.tsx +++ b/frontend/src/features/simulations/components/SimulationDetailsView.tsx @@ -34,6 +34,15 @@ const ReadonlyInput = ({ value, className }: { value?: string | null; className? ); +const DiffCell = ({ value, className }: { value: unknown; className?: string }) => { + const text = value === null || value === undefined ? '—' : String(value); + return ( +
+ {text} +
+ ); +}; + // -------------------- View Component -------------------- export const SimulationDetailsView = ({ simulation, @@ -180,24 +189,45 @@ export const SimulationDetailsView = ({ {simulation.runConfigDeltas && Object.keys(simulation.runConfigDeltas).length > 0 ? ( - - - - - - - - - - {Object.entries(simulation.runConfigDeltas).map(([field, diff]) => ( - - - - +
+
FieldCanonicalCurrent
{field}{String((diff as Record).canonical ?? '—')}{String((diff as Record).current ?? '—')}
+ + + + + - ))} - -
+ Field + + Canonical + + Current +
+ + + {Object.entries(simulation.runConfigDeltas).map(([field, diff]) => { + const canonical = (diff as Record).canonical; + const current = (diff as Record).current; + return ( + + + + + + + + + + + + ); + })} + + + ) : (

No configuration differences.