dify/web/app/components/workflow/hooks
lyzno1 7c97ea4a9e fix: correct entry node alignment for wrapper offset
- Add ENTRY_NODE_WRAPPER_OFFSET constant (x: 0, y: 21) for Start/Trigger nodes
- Implement getNodeAlignPosition() to calculate actual inner node positions
- Fix horizontal/vertical helpline rendering to account for wrapper offset
- Fix snap-to-align logic to properly align inner nodes instead of wrapper
- Correct helpline width/height calculation by subtracting offset for entry nodes
- Ensure backward compatibility: only affects Start/Trigger nodes with EntryNodeContainer wrapper

This fix ensures that Start and Trigger nodes (which have an EntryNodeContainer wrapper
with status indicator) align based on their inner node boundaries rather than the wrapper
boundaries, matching the alignment behavior of regular nodes.
2025-09-30 18:36:49 +08:00
..
use-workflow-run-event feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
index.ts chore: time from now i18n support (#26328) 2025-09-28 13:37:42 +08:00
use-DSL.ts feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
use-available-blocks.ts feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
use-checklist.ts fix(workflow): replace hardcoded trigger node logic with metadata-driven approach 2025-09-26 22:35:21 +08:00
use-config-vision.ts Feat/attachments (#9526) 2024-10-21 10:32:37 +08:00
use-dynamic-test-run-options.tsx fix: improve test run menu and checklist ui (#25300) 2025-09-06 22:54:36 +08:00
use-edges-interactions-without-sync.ts Chore/slice workflow (#18351) 2025-04-18 13:59:12 +08:00
use-edges-interactions.ts Chore/slice workflow (#18351) 2025-04-18 13:59:12 +08:00
use-fetch-workflow-inspect-vars.ts feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
use-helpline.ts fix: correct entry node alignment for wrapper offset 2025-09-30 18:36:49 +08:00
use-inspect-vars-crud-common.ts feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
use-inspect-vars-crud.ts feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
use-node-data-update.ts feat: workflow add note node (#5164) 2024-06-14 17:08:11 +08:00
use-nodes-available-var-list.ts feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
use-nodes-interactions-without-sync.ts feat: last run frontend (#21369) 2025-06-24 09:10:30 +08:00
use-nodes-interactions.ts fix: correct entry node alignment for wrapper offset 2025-09-30 18:36:49 +08:00
use-nodes-layout.ts feat: workflow new nodes (#4683) 2024-05-27 21:57:08 +08:00
use-nodes-meta-data.ts feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
use-nodes-sync-draft.ts Chore/slice workflow (#18351) 2025-04-18 13:59:12 +08:00
use-panel-interactions.ts feat: workflow interaction (#4214) 2024-05-09 17:18:51 +08:00
use-selection-interactions.ts Feat workflow node align (#23451) 2025-08-06 11:01:10 +08:00
use-set-workflow-vars-with-value.ts Chore/workflow last run (#21823) 2025-07-02 17:48:07 +08:00
use-shortcuts.ts Fix test run shortcut consistency and improve dropdown styling (#24849) 2025-09-01 14:47:21 +08:00
use-tool-icon.ts Merge remote-tracking branch 'origin/main' into feat/trigger 2025-09-25 17:14:24 +08:00
use-workflow-history.ts feat: change history by supplementary node information (#25294) 2025-09-09 15:18:42 +08:00
use-workflow-interactions.ts Merge remote-tracking branch 'origin/main' into feat/trigger 2025-09-25 17:14:24 +08:00
use-workflow-mode.ts feat: workflow remove preview mode (#3941) 2024-04-28 17:09:56 +08:00
use-workflow-refresh-draft.ts chore: slice workflow refresh draft hook (#19292) 2025-05-06 18:24:10 +08:00
use-workflow-run.ts Chore/slice workflow (#18351) 2025-04-18 13:59:12 +08:00
use-workflow-search.tsx feat: fix i18n missing keys and merge upstream/main (#24615) 2025-08-27 15:07:28 +08:00
use-workflow-start-run.tsx debug webhook node 2025-09-29 09:28:19 +08:00
use-workflow-variables.ts feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
use-workflow.ts Merge remote-tracking branch 'origin/main' into feat/trigger 2025-09-26 13:17:14 +08:00