fix(ui): keep execution overlay active when drilled down into sub-routes
This commit is contained in:
@@ -69,10 +69,10 @@ export function ProcessDiagram({
|
|||||||
const currentRouteId = routeStack[routeStack.length - 1];
|
const currentRouteId = routeStack[routeStack.length - 1];
|
||||||
const isDrilledDown = currentRouteId !== routeId;
|
const isDrilledDown = currentRouteId !== routeId;
|
||||||
|
|
||||||
// Disable overlay when drilled down — the execution data is for the root route
|
// Keep overlay active when drilled down — the execution tree includes
|
||||||
// and doesn't map to sub-route node IDs. Sub-route shows topology only.
|
// sub-route processors as nested children, so their IDs are in the overlay map.
|
||||||
const overlayActive = !!executionOverlay && !isDrilledDown;
|
const overlayActive = !!executionOverlay;
|
||||||
const effectiveOverlay = isDrilledDown ? undefined : executionOverlay;
|
const effectiveOverlay = executionOverlay;
|
||||||
|
|
||||||
// Only use the pre-fetched diagramLayout for the root route.
|
// Only use the pre-fetched diagramLayout for the root route.
|
||||||
const effectiveLayout = isDrilledDown ? undefined : diagramLayout;
|
const effectiveLayout = isDrilledDown ? undefined : diagramLayout;
|
||||||
|
|||||||
Reference in New Issue
Block a user