From e9ee0395a2e8996e7dc34d74b219635a8067ed89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebubekir=20Y=C4=B1lmaz?= Date: Wed, 18 Nov 2026 13:35:11 +0300 Subject: [PATCH 1/3] Add edit node button to context menu --- .../components/BlueprintFlow/FlowNodeRenderer.tsx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/dashboard/src/components/BlueprintFlow/FlowNodeRenderer.tsx b/dashboard/src/components/BlueprintFlow/FlowNodeRenderer.tsx index 10e93b87..a0ecf045 100644 --- a/dashboard/src/components/BlueprintFlow/FlowNodeRenderer.tsx +++ b/dashboard/src/components/BlueprintFlow/FlowNodeRenderer.tsx @@ -220,8 +220,7 @@ export default function FlowNodeRenderer({ ? truncateDescription(node.description) : node.description, }; - const isReadOnly = - isCompleteNode || (!onAdd && !onEdit && !onSwapBranch && !onDelete); + const isReadOnly = !onAdd && !onEdit && !onSwapBranch && !onDelete; const [contextMenu, setContextMenu] = useState<{ mouseX: number; mouseY: number; @@ -355,7 +354,7 @@ export default function FlowNodeRenderer({ {!isReadOnly && ( <> - {!isLocked && ( + {!isLocked && !isCompleteNode && ( )} - {onEdit && ( + {onEdit && !isCompleteNode && ( )} - {canAddChild && ( + {canAddChild && !isCompleteNode && ( )} - {onPin && canPin && ( + {onPin && canPin && !isCompleteNode && ( theme.zIndex.modal + 3 }} slotProps={{ paper: { sx: { minWidth: 180 } } }} > - {canAddChild && ( + {canAddChild && !isCompleteNode && ( { handleAddClick(e); @@ -449,7 +448,7 @@ export default function FlowNodeRenderer({ Edit node )} - {onToggleForce && !isLocked && ( + {onToggleForce && !isLocked && !isCompleteNode && ( { handleToggleForceClick(e); From d1dc8a63250022f2780331a9a7d63fa0265be7b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebubekir=20Y=C4=B1lmaz?= Date: Wed, 18 Nov 2026 13:35:44 +0300 Subject: [PATCH 2/3] Show only label and description in completed node edit mode --- .../NodeEditor/NodeEditorDrawer.tsx | 83 +++++++++++++++---- .../NodeEditorWidget/NodeEditorWidget.tsx | 6 ++ 2 files changed, 71 insertions(+), 18 deletions(-) diff --git a/dashboard/src/components/NodeEditor/NodeEditorDrawer.tsx b/dashboard/src/components/NodeEditor/NodeEditorDrawer.tsx index e66e24b7..de988148 100644 --- a/dashboard/src/components/NodeEditor/NodeEditorDrawer.tsx +++ b/dashboard/src/components/NodeEditor/NodeEditorDrawer.tsx @@ -73,6 +73,7 @@ const NodeEditorDrawer = ({ handoffTargetBlueprintId = "", setHandoffTargetBlueprintId, availableAgentBlueprints = [], + isCompleteNode = false, }: { parameters?: Record; onParametersChange?: (parameters: Record) => void; @@ -212,6 +213,7 @@ const NodeEditorDrawer = ({ handoffTargetBlueprintId?: string; setHandoffTargetBlueprintId?: (id: string) => void; availableAgentBlueprints?: Array<{ id: string; title: string }>; + isCompleteNode?: boolean; }) => { const theme = useTheme(); const [integrationPage, setIntegrationPage] = useState(1); @@ -808,6 +810,43 @@ const NodeEditorDrawer = ({ ); + const completeNodeFields = ( + + setNewNodeLabel(e.target.value)} + autoComplete="off" + inputProps={{ + "data-cy": "node-label-input", + autoComplete: "off", + autoCorrect: "off", + spellCheck: false, + }} + sx={{ mt: 1 }} + /> + + setNewNodeDescription?.(e.target.value)} + placeholder={descriptionPlaceholder} + autoComplete="off" + inputProps={{ + autoComplete: "off", + autoCorrect: "off", + spellCheck: false, + }} + /> + + ); + const paramsFields = ( {usesIntegration && selectedIntegration?.id && onParametersChange ? ( @@ -879,26 +918,34 @@ const NodeEditorDrawer = ({ height: "100%", }} > - setActiveTab(value)} - sx={{ mb: 2, borderBottom: 1, borderColor: "divider" }} - > - - - - + {!isCompleteNode && ( + setActiveTab(value)} + sx={{ mb: 2, borderBottom: 1, borderColor: "divider" }} + > + + + + + )} - - {nodeFields} - - - {detailsFields} - - - {paramsFields} - + {isCompleteNode ? ( + completeNodeFields + ) : ( + <> + + {nodeFields} + + + {detailsFields} + + + {paramsFields} + + + )} Date: Thu, 19 Nov 2026 12:36:18 +0300 Subject: [PATCH 3/3] Fix potential issue --- dashboard/src/widgets/APITab/APITab.tsx | 15 +++++++++++++-- dashboard/src/widgets/APITab/types.ts | 1 + 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/dashboard/src/widgets/APITab/APITab.tsx b/dashboard/src/widgets/APITab/APITab.tsx index d78d082a..7ae59aaf 100644 --- a/dashboard/src/widgets/APITab/APITab.tsx +++ b/dashboard/src/widgets/APITab/APITab.tsx @@ -47,6 +47,7 @@ const INITIAL_NODE_EDITOR: NodeEditorState = { parentNode: null, editingNodeId: null, label: "", + description: "", instructions: "", pseudocodeEnabled: true, pseudocode: "", @@ -507,6 +508,10 @@ function APITab({ agentId }: { agentId: string }) { editMode: true, editingNodeId: graphNode.id, label: graphNode.label || "", + description: + graphNode.description || + (graphNode.raw?.properties?.description as string) || + "", instructions: (graphNode.raw?.properties?.instructions as string) || "", pseudocodeEnabled: true, pseudocode: (graphNode.raw?.properties?.pseudocode as string) || "", @@ -590,6 +595,7 @@ function APITab({ agentId }: { agentId: string }) { editMode, editingNodeId, label, + description: newNodeDescription, instructions, pseudocodeEnabled, pseudocode, @@ -605,9 +611,10 @@ function APITab({ agentId }: { agentId: string }) { ? "PLATFORM:decision" : nodeEditor.integration?.action; const description = - nodeType === "CONDITION" + newNodeDescription.trim() || + (nodeType === "CONDITION" ? "A decision node that branches the flow based on conditions." - : nodeEditor.integration?.description || ""; + : nodeEditor.integration?.description || ""); const currentNodes = { ...flowGraphData.nodes }; @@ -764,6 +771,10 @@ function APITab({ agentId }: { agentId: string }) { setNewNodeInstructions={(v: string) => setNodeEditor((p) => ({ ...p, instructions: v })) } + newNodeDescription={nodeEditor.description} + setNewNodeDescription={(v: string) => + setNodeEditor((p) => ({ ...p, description: v })) + } newNodePseudocodeEnabled={nodeEditor.pseudocodeEnabled} setNewNodePseudocodeEnabled={handlePseudocodeEnabledChange} newNodeType={nodeEditor.nodeType} diff --git a/dashboard/src/widgets/APITab/types.ts b/dashboard/src/widgets/APITab/types.ts index 907a9ad6..4bcdfe49 100644 --- a/dashboard/src/widgets/APITab/types.ts +++ b/dashboard/src/widgets/APITab/types.ts @@ -46,6 +46,7 @@ export type NodeEditorState = { } | null; editingNodeId: string | null; label: string; + description: string; instructions: string; pseudocodeEnabled: boolean; pseudocode: string;