dify/web/app/components/workflow/skill/utils
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
..
drag-utils.ts refactor file drop handlers into hooks 2026-01-19 18:05:58 +08:00
file-utils.ts refactor(skill-editor): extract hooks and utils into separate directories 2026-01-15 16:00:42 +08:00
tree-utils.ts refactor(skill): unify root/blank constants and eliminate magic strings 2026-01-19 23:07:49 +08:00