feat: add execution overlay types and extend ProcessDiagram with diagramLayout prop

Define the execution overlay type system (NodeExecutionState, IterationInfo,
DetailTab) and extend ProcessDiagramProps with optional overlay props. Add
diagramLayout prop so ExecutionDiagram can pass a pre-fetched layout by content
hash, bypassing the internal route-based fetch in useDiagramData.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-03-27 18:40:57 +01:00
parent 3928743ea7
commit ff59dc5d57
4 changed files with 49 additions and 5 deletions

View File

@@ -52,6 +52,7 @@ export function ProcessDiagram({
nodeConfigs,
knownRouteIds,
className,
diagramLayout,
}: ProcessDiagramProps) {
// Route stack for drill-down navigation
const [routeStack, setRouteStack] = useState<string[]>([routeId]);
@@ -64,7 +65,7 @@ export function ProcessDiagram({
const currentRouteId = routeStack[routeStack.length - 1];
const { sections, totalWidth, totalHeight, isLoading, error } = useDiagramData(
application, currentRouteId, direction,
application, currentRouteId, direction, diagramLayout,
);
const zoom = useZoomPan();