dify/web/app/components/workflow/skill/file-tree
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
..
index.tsx refactor(skill): unify root/blank constants and eliminate magic strings 2026-01-19 23:07:49 +08:00
menu-item.tsx refactor(skill): unify node menu components with cva variants 2026-01-16 13:51:49 +08:00
node-menu.tsx refactor(skill): unify root/blank constants and eliminate magic strings 2026-01-19 23:07:49 +08:00
tree-context-menu.tsx refactor(skill): unify root/blank constants and eliminate magic strings 2026-01-19 23:07:49 +08:00
tree-edit-input.tsx feat(skill): add placeholder for inline tree node input 2026-01-19 22:01:31 +08:00
tree-guide-lines.tsx fix: fold indent style 2026-01-19 16:34:46 +08:00
tree-node-icon.tsx refactor(skill): split file operations hook and extract TreeNodeIcon component 2026-01-19 19:13:09 +08:00
tree-node.tsx refactor(skill): split file operations hook and extract TreeNodeIcon component 2026-01-19 19:13:09 +08:00