dify/web/app/components/workflow/store/workflow
yyh 31a7db2657
refactor(skill): unify root/blank constants and eliminate magic strings
- Add constants.ts with ROOT_ID, CONTEXT_MENU_TYPE, NODE_MENU_TYPE
- Add root utilities to tree-utils.ts (isRootId, toApiParentId, etc.)
- Replace '__root__' with ROOT_ID for consistent root identifier
- Replace inline 'blank'/'root' strings with constants
- Use NodeMenuType for type-safe menu type props
- Remove duplicate ContextMenuType from types.ts, use from constants.ts
2026-01-19 23:07:49 +08:00
..
debug chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
skill-editor refactor(skill): unify root/blank constants and eliminate magic strings 2026-01-19 23:07:49 +08:00
chat-variable-slice.ts feat: introduce trigger functionality (#27644) 2025-11-12 17:59:37 +08:00
env-variable-slice.ts feat: introduce trigger functionality (#27644) 2025-11-12 17:59:37 +08:00
form-slice.ts feat: run with params from logs (#26787) 2025-10-16 11:01:11 +08:00
help-line-slice.ts chore: slice workflow store (#17254) 2025-04-01 16:02:52 +08:00
history-slice.ts chore: slice workflow store (#17254) 2025-04-01 16:02:52 +08:00
index.ts refactor(skill-editor): split slice into separate files for better organization 2026-01-17 17:28:25 +08:00
layout-slice.ts feat: persist debug-and-preview panel width in localstorage (#21434) 2025-06-24 20:34:11 +08:00
node-slice.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
panel-slice.ts Feat workflow node align (#23451) 2025-08-06 11:01:10 +08:00
tool-slice.ts feat: introduce trigger functionality (#27644) 2025-11-12 17:59:37 +08:00
use-nodes.ts pref: reduce the times of useNodes reRender (#28682) 2025-11-26 16:52:47 +08:00
version-slice.ts chore: slice workflow store (#17254) 2025-04-01 16:02:52 +08:00
workflow-draft-slice.ts chore(web): migrate lodash-es to es-toolkit compat (#30126) 2025-12-25 09:44:57 +08:00
workflow-slice.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00