dify/web/app/components/workflow/skill/hooks
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
..
use-create-operations.ts refactor(skill): split file operations hook and extract TreeNodeIcon component 2026-01-19 19:13:09 +08:00
use-delayed-click.ts fix(skill): address code review issues for tab management 2026-01-16 11:20:49 +08:00
use-file-drop.ts refactor(skill): split file operations hook and extract TreeNodeIcon component 2026-01-19 19:13:09 +08:00
use-file-operations.ts refactor(skill): split file operations hook and extract TreeNodeIcon component 2026-01-19 19:13:09 +08:00
use-folder-file-drop.ts refactor(skill): split file operations hook and extract TreeNodeIcon component 2026-01-19 19:13:09 +08:00
use-inline-create-node.ts feat: auto pin created editable files 2026-01-19 13:51:08 +08:00
use-modify-operations.ts refactor(skill): split file operations hook and extract TreeNodeIcon component 2026-01-19 19:13:09 +08:00
use-root-file-drop.ts refactor(skill): split file operations hook and extract TreeNodeIcon component 2026-01-19 19:13:09 +08:00
use-skill-asset-tree.ts refactor(skill): centralize asset tree data fetching with custom hooks 2026-01-15 19:45:33 +08:00
use-sync-tree-with-active-tab.ts feat: sync tree selection with active tab 2026-01-19 14:05:46 +08:00
use-tree-node-handlers.ts refactor(skill): merge BlankAreaMenu into NodeMenu 2026-01-19 14:22:25 +08:00