Update node specifications and enhance GenericNode component
- Change the 'addable' property of a specific node type to true, allowing for dynamic addition of nodes. - Modify the GenericNode component to include a new icon and adjust styles for better visual representation. - Update node handling logic to prevent deletion of 'startCall' nodes and improve node change handling in the workflow editor. - Refactor layout and styling in the WorkflowEditor for a more polished user interface.
This commit is contained in:
@@ -56,7 +56,7 @@ NODE_SPECS: list[dict[str, Any]] = [
|
||||
"description": "终止节点,礼貌结束对话。可有多个,均无出边。",
|
||||
"icon": "Flag",
|
||||
"accent": "rose",
|
||||
"addable": False,
|
||||
"addable": True,
|
||||
"constraints": {"minIncoming": 1, "minOutgoing": 0, "maxOutgoing": 0},
|
||||
"fields": [
|
||||
{"key": "name", "label": "节点名称", "type": "text"},
|
||||
|
||||
Reference in New Issue
Block a user