mirror of
https://github.com/langgenius/dify.git
synced 2026-01-14 06:07:33 +08:00
Major fixes to workflow checklist validation: ## Fixed getValidTreeNodes function (workflow.ts) - Restore original function signature: (nodes, edges) instead of (startNode, nodes, edges) - Re-implement automatic start node discovery for all entry types - Unified traversal from Start, TriggerWebhook, TriggerSchedule, TriggerPlugin nodes - Single call now discovers all valid connected nodes correctly ## Simplified useChecklist validation (use-checklist.ts) - Remove complex manual start node iteration and result aggregation - Unified entry node validation concept for all start node types - Remove dependency on getStartNodes() utility - Simplified validation logic matching backup branch approach ## Resolved Issues - ✅ End node connectivity: Now correctly detects connections from any entry node - ✅ Unified entry validation: All start types (Start/Triggers) validated consistently - ✅ Simplified architecture: Restored proven validation approach from backup branch This restores the reliable workflow validation system while maintaining trigger node support. |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| block-selector | ||
| constants | ||
| datasets-detail-store | ||
| header | ||
| help-line | ||
| hooks | ||
| hooks-store | ||
| nodes | ||
| note-node | ||
| operator | ||
| panel | ||
| plugin-dependency | ||
| run | ||
| simple-node | ||
| store | ||
| utils | ||
| variable-inspect | ||
| workflow-preview | ||
| block-icon.tsx | ||
| candidate-node.tsx | ||
| constants.ts | ||
| context.tsx | ||
| custom-connection-line.tsx | ||
| custom-edge-linear-gradient-render.tsx | ||
| custom-edge.tsx | ||
| dsl-export-confirm-modal.tsx | ||
| features.tsx | ||
| index.tsx | ||
| node-contextmenu.tsx | ||
| panel-contextmenu.tsx | ||
| selection-contextmenu.tsx | ||
| shortcuts-name.tsx | ||
| style.css | ||
| syncing-data-modal.tsx | ||
| types.ts | ||
| update-dsl-modal.tsx | ||
| workflow-history-store.tsx | ||