From 579ae703cac6d5a262d1810596772764115f688a Mon Sep 17 00:00:00 2001 From: Jonathan Dobson Date: Thu, 9 Oct 2025 10:46:54 -0400 Subject: [PATCH] Fix z-ordering of panels in the debugger (#3662) --- .../src/routes/workflows/editor/Workspace.tsx | 92 ++++++------------- 1 file changed, 29 insertions(+), 63 deletions(-) diff --git a/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx b/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx index 80cfa883..c6a5f0ba 100644 --- a/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx +++ b/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx @@ -1136,19 +1136,12 @@ function Workspace({ )} - {/* sub panels when in debug mode */} + {/* sub panels (but not node library panel) when in debug mode */} {showBrowser && !workflowPanelState.data?.showComparison && - workflowPanelState.active && ( -
+ workflowPanelState.active && + workflowPanelState.content !== "nodeLibrary" && ( +
{workflowPanelState.content === "cacheKeyValues" && ( )} + {workflowPanelState.content === "history" && ( + + )}
)} - {/* code, infinite canvas, browser, and timeline when in debug mode */} + {/* code, infinite canvas, browser, timeline, and node library sub panel when in debug mode */} {showBrowser && !workflowPanelState.data?.showComparison && (
- {/* browser & timeline */}
- {/* sub panels */} - {workflowPanelState.active && ( -
- {workflowPanelState.content === "cacheKeyValues" && ( - { - setToDeleteCacheKeyValue(cacheKeyValue); - setOpenConfirmCacheKeyValueDeleteDialogue(true); - }} - onPaginate={(page) => { - setPage(page); - }} - onSelect={(cacheKeyValue) => { - setCacheKeyValue(cacheKeyValue); - setCacheKeyValueFilter(""); - closeWorkflowPanel(); - }} - /> - )} - {workflowPanelState.content === "parameters" && ( - - )} - {workflowPanelState.content === "history" && ( - - )} - {workflowPanelState.content === "nodeLibrary" && ( - { - addNode(props); - }} - /> - )} -
- )} + {/* node library sub panel */} + {workflowPanelState.active && + workflowPanelState.content === "nodeLibrary" && ( +
+
+ { + addNode(props); + }} + /> +
+
+ )} {/* browser & timeline */}