Workflow Tab ============ Overview -------- The Workflow tab provides a node-graph editor and live input/output previews. Nodes are connected through typed sockets to build processing pipelines. Canvas and nodes ---------------- - Right-click on empty canvas to add nodes. - Drag nodes to reposition them. - Click sockets to create connections (input to output). - Click the delete icon on a node to remove it. - Click the help icon on a node to show its help text. Inspecting inputs and outputs ----------------------------- - Double-click a node to show its input/output preview panels. - The top panel shows inputs; the bottom panel shows outputs. - Drag a rectangle on a preview to zoom; right-click to reset zoom. Saving and loading ------------------ - Use "Save workflow" to write a JSON file in Workflows/. - Use "Load workflow" to open an existing JSON file. - Results are written under Results// when a workflow is saved. - Unsaved workflows write to a temporary Results/temp_workflow_* folder. Related code ------------ - UI: diplo_lib/ui/workflow_tab/workflow_tab.py - Graph view: diplo_lib/ui/workflow_tab/graph_vis.py - Add-node menu: diplo_lib/ui/workflow_tab/add_node_menu.py