fix: separate onException/errorHandler into distinct RouteFlow segments
All checks were successful
CI / cleanup-branch (push) Has been skipped
CI / build (push) Successful in 57s
CI / docker (push) Successful in 52s
CI / deploy-feature (push) Has been skipped
CI / deploy (push) Successful in 37s

ON_EXCEPTION and ERROR_HANDLER nodes are now treated as compound containers
in the ELK diagram renderer, nesting their children. The frontend
diagram-mapping builds separate FlowSegments for each error handler,
displayed as distinct sections in the RouteFlow component.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-03-27 09:15:06 +01:00
parent 62709ce80b
commit 78e12f5cf9
6 changed files with 128 additions and 84 deletions

View File

@@ -21,7 +21,7 @@ import {
} from '../../api/queries/executions'
import { useDiagramLayout } from '../../api/queries/diagrams'
import type { ExecutionSummary } from '../../api/types'
import { mapDiagramToRouteNodes, toFlowSegments } from '../../utils/diagram-mapping'
import { buildFlowSegments } from '../../utils/diagram-mapping'
import styles from './Dashboard.module.css'
// Row type extends ExecutionSummary with an `id` field for DataTable
@@ -376,7 +376,7 @@ export default function Dashboard() {
const routeFlows = useMemo(() => {
if (diagram?.nodes) {
return toFlowSegments(mapDiagramToRouteNodes(diagram.nodes || [], procList)).flows
return buildFlowSegments(diagram.nodes || [], procList).flows
}
return []
}, [diagram, procList])