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:
Xin Wang
2026-06-15 15:49:58 +08:00
parent aae0342a57
commit 09a5ffbdbc
3 changed files with 204 additions and 101 deletions

View File

@@ -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"},