dify/web/app/components/workflow/skill/hooks
yyh dc213ca76c
refactor(skill)!: add file node view-state flow and mode-based file data hook
- introduce resolving/ready/missing node view-state to avoid unsupported flicker

- switch useSkillFileData to explicit mode: none/content/download

- add hook tests for view-state transitions and mode query gating

BREAKING CHANGE: useSkillFileData signature changed from (appId, nodeId, isEditable) to (appId, nodeId, mode).
2026-02-06 15:39:00 +08:00
..
sqlite refactor: extract sqlite constants 2026-01-22 16:15:58 +08:00
skill-save-context.ts refactor: extract skill save context, stabilize mutation dependency, and deduplicate cache updates 2026-02-03 21:09:35 +08:00
use-create-operations.ts feat: sync file tree 2026-01-29 16:33:33 +08:00
use-delayed-click.ts chore: optimize code quality and performance 2026-01-20 15:54:31 +08:00
use-download-operation.ts fix(skill): use downloadUrl utility instead of window.open for file downloads 2026-01-29 12:49:15 +08:00
use-fetch-text-content.ts feat(inspect): add read-only file preview in ArtifactsTab 2026-01-29 16:42:22 +08:00
use-file-drop.ts feat: sync file tree 2026-01-29 16:33:33 +08:00
use-file-node-view-state.spec.tsx refactor(skill)!: add file node view-state flow and mode-based file data hook 2026-02-06 15:39:00 +08:00
use-file-node-view-state.ts refactor(skill)!: add file node view-state flow and mode-based file data hook 2026-02-06 15:39:00 +08:00
use-file-operations.ts fix(skill): use downloadUrl utility instead of window.open for file downloads 2026-01-29 12:49:15 +08:00
use-file-type-info.ts feat(web): add inline PDF preview support for skill file viewer 2026-02-05 17:21:01 +08:00
use-folder-file-drop.ts refactor(web): unify auto-expand trigger for drag-and-drop 2026-01-20 18:10:52 +08:00
use-inline-create-node.spec.tsx feat(skill-editor): auto-focus editor on file creation and improve tree-tab sync 2026-02-06 14:21:33 +08:00
use-inline-create-node.ts feat(skill-editor): auto-focus editor on file creation and improve tree-tab sync 2026-02-06 14:21:33 +08:00
use-modify-operations.ts feat: sync file tree 2026-01-29 16:33:33 +08:00
use-node-move.ts feat: sync file tree 2026-01-29 16:33:33 +08:00
use-node-reorder.ts feat: sync file tree 2026-01-29 16:33:33 +08:00
use-paste-operation.ts feat: sync file tree 2026-01-29 16:33:33 +08:00
use-root-file-drop.ts Revert "refactor(web): remove redundant useUnifiedDrag abstraction layer" 2026-01-20 18:09:25 +08:00
use-skill-asset-tree.ts feat(skill): guard template cards against duplicate skill addition 2026-01-30 16:10:19 +08:00
use-skill-auto-save.spec.tsx fix(skill-editor): align autosave fallbacks 2026-01-25 19:51:56 +08:00
use-skill-auto-save.ts refactor: extract skill save context, stabilize mutation dependency, and deduplicate cache updates 2026-02-03 21:09:35 +08:00
use-skill-file-data.spec.tsx refactor(skill)!: add file node view-state flow and mode-based file data hook 2026-02-06 15:39:00 +08:00
use-skill-file-data.ts refactor(skill)!: add file node view-state flow and mode-based file data hook 2026-02-06 15:39:00 +08:00
use-skill-save-manager.spec.tsx refactor: extract skill save context, stabilize mutation dependency, and deduplicate cache updates 2026-02-03 21:09:35 +08:00
use-skill-save-manager.tsx refactor: extract skill save context, stabilize mutation dependency, and deduplicate cache updates 2026-02-03 21:09:35 +08:00
use-skill-shortcuts.ts fix(skill): remove non-functional copy menu item from file tree context menu 2026-01-28 16:34:57 +08:00
use-skill-tree-collaboration.ts Revert "refactor!: replace Zustand global store with TanStack Query for systemFeatures" 2026-02-01 19:06:45 +08:00
use-sqlite-database.ts fix: show columns for empty sqlite tables 2026-01-22 16:25:43 +08:00
use-sync-tree-with-active-tab.spec.tsx feat(skill-editor): auto-focus editor on file creation and improve tree-tab sync 2026-02-06 14:21:33 +08:00
use-sync-tree-with-active-tab.ts feat(skill-editor): auto-focus editor on file creation and improve tree-tab sync 2026-02-06 14:21:33 +08:00
use-tree-node-handlers.ts feat: add ArtifactSlice and integrate artifact preview into skill editor tabs 2026-01-29 17:52:41 +08:00
use-unified-drag.ts Revert "refactor(web): remove redundant useUnifiedDrag abstraction layer" 2026-01-20 18:09:25 +08:00