Skip to content

Commit 7199f60

Browse files
authored
feat: modify the node display order in the nodelist pane" (#206)
1 parent c3bc72d commit 7199f60

File tree

2 files changed

+23
-21
lines changed

2 files changed

+23
-21
lines changed

web/src/components/WorkFlow/FlowVis/SharedNodeMenu.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ const SharedNodeMenu: React.FC<SharedNodeMenuProps> = ({
119119
border="1px solid"
120120
borderColor="gray.200"
121121
borderRadius="lg"
122-
p={3}
122+
px={3}
123+
py={2}
123124
cursor={isDraggable ? "move" : "pointer"}
124125
onClick={
125126
!isDraggable

web/src/components/WorkFlow/Nodes/nodeConfig.ts

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,26 @@ export const nodeConfig: Record<string, NodeConfigItem> = {
9393
inputVariables: [],
9494
outputVariables: ["response"],
9595
},
96+
agent: {
97+
display: "Agent",
98+
icon: FaUserAstronaut,
99+
colorScheme: "yellow",
100+
properties: AgentNodeProperties,
101+
allowedConnections: {
102+
sources: ["left", "right"],
103+
targets: ["left", "right"],
104+
},
105+
outputVariables: ["response"],
106+
inputVariables: [],
107+
initialData: {
108+
model: "glm-4-flash",
109+
temperature: 0.1,
110+
systemMessage: "",
111+
userMessage: "",
112+
tools: [],
113+
retrievalTools: [],
114+
}
115+
},
96116
tool: {
97117
display: "Tools",
98118
icon: FaTools,
@@ -327,26 +347,7 @@ export const nodeConfig: Record<string, NodeConfigItem> = {
327347
mcp_config: {},
328348
}
329349
},
330-
agent: {
331-
display: "Agent",
332-
icon: FaUserAstronaut,
333-
colorScheme: "yellow",
334-
properties: AgentNodeProperties,
335-
allowedConnections: {
336-
sources: ["left", "right"],
337-
targets: ["left", "right"],
338-
},
339-
outputVariables: ["response"],
340-
inputVariables: [],
341-
initialData: {
342-
model: "glm-4-flash",
343-
temperature: 0.1,
344-
systemMessage: "",
345-
userMessage: "",
346-
tools: [],
347-
retrievalTools: [],
348-
}
349-
},
350+
350351
};
351352

352353
export type NodeType = keyof typeof nodeConfig;

0 commit comments

Comments
 (0)