dify/web/app/components/workflow/skill/file-tree
yyh 9f444f1f6a
refactor(skill): split file operations hook and extract TreeNodeIcon component
Split use-file-operations.ts (248 lines) into smaller focused hooks:
- use-create-operations.ts for file/folder creation and upload
- use-modify-operations.ts for rename and delete operations
- use-file-operations.ts now serves as orchestrator maintaining backward compatibility

Extract TreeNodeIcon component from tree-node.tsx for cleaner separation of concerns.

Add brief comments to drag hooks explaining their purpose and relationships.
2026-01-19 19:13:09 +08:00
..
index.tsx refactor file drop handlers into hooks 2026-01-19 18:05:58 +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): merge BlankAreaMenu into NodeMenu 2026-01-19 14:22:25 +08:00
tree-context-menu.tsx fix(skill): pass root nodeId for blank-area context menu 2026-01-19 14:23:38 +08:00
tree-edit-input.tsx feat(skill): add inline rename and guide lines to file tree 2026-01-15 21:30:02 +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