dify/web/app/components/workflow
yyh 772dbe620d
fix(workflow): disable view switch during preview run instead of mounted guard
Simpler approach: disable the view picker toggle when preview is running,
preventing users from switching views during active runs.

This replaces the previous mounted ref guard approach (commits a0188bd9b5,
b7f1eb9b7b, 8332f0de2b) which added complexity to handle post-unmount
operations. Disabling the toggle is more direct and follows KISS principle.

Changes:
- Add disabled prop to ViewPicker based on isResponding state
- Revert mounted ref guards in use-chat-flow-control.ts
- Revert isMountedRef parameter in use-nodes/edges-interactions-without-sync.ts
- Revert defensive type check in markdown-utils.ts (no longer needed)
2026-01-27 01:31:22 +08:00
..
__tests__ chore: lint require and how to import react (#30041) 2025-12-23 18:02:10 +08:00
block-selector Merge branch 'feat/collaboration2' into feat/support-agent-sandbox 2026-01-25 00:00:03 +08:00
collaboration improve compute nodes diff speed 2026-01-24 15:04:51 +08:00
comment add unittests 2026-01-19 21:11:44 +08:00
constants feat: add Command node support 2026-01-06 19:30:38 +08:00
custom-group-node Merge branch 'main' into feat/grouping-branching 2025-12-23 23:55:21 +08:00
datasets-detail-store chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
header fix header 2026-01-25 00:16:30 +08:00
help-line chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
hooks fix(workflow): disable view switch during preview run instead of mounted guard 2026-01-27 01:31:22 +08:00
hooks-store Merge branch 'feat/collaboration2' into feat/support-agent-sandbox 2026-01-25 00:00:03 +08:00
nodes chore: prompt change also clear useless tool id 2026-01-26 18:29:38 +08:00
note-node fix(web): disable HTML escaping for form field validation messages (#31292) 2026-01-20 18:43:01 +08:00
operator fix web style 2026-01-18 13:40:12 +08:00
panel fix(workflow): disable view switch during preview run instead of mounted guard 2026-01-27 01:31:22 +08:00
plugin-dependency chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
run fix: check and update doc links (#30849) 2026-01-22 16:13:09 +08:00
simple-node chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
skill fix(workflow): make FileTree and ArtifactsSection scroll independently 2026-01-27 00:14:33 +08:00
store refactor(workflow)!: persist the debug state of the chatflow preview panel to the zustand store and split useChat hook into modular files 2026-01-26 23:21:44 +08:00
utils chore: remove useless toolid 2026-01-26 18:09:46 +08:00
variable-inspect feat: Add support for array[message](List[promptMessage]) variable type 2026-01-26 17:50:18 +08:00
workflow-preview Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-01-22 22:40:32 +08:00
block-icon.tsx Merge branch 'feat/pull-a-variable' into feat/support-agent-sandbox 2026-01-20 09:54:41 +08:00
candidate-node-main.tsx Merge remote-tracking branch 'myori/main' into feat/collaboration2 2026-01-17 10:22:41 +08:00
candidate-node.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
comment-manager.tsx fix web style 2026-01-17 22:10:10 +08:00
constants.ts fix: llm generation variable 2026-01-21 14:57:54 +08:00
context.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
custom-connection-line.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
custom-edge-linear-gradient-render.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
custom-edge.tsx feat: sub-graph to use dynamic node generation 2026-01-13 22:28:30 +08:00
dsl-export-confirm-modal.tsx feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) (#30246) 2025-12-31 11:13:22 +08:00
features.tsx fix: Add sandbox feature to workflow features mapping 2026-01-25 16:30:50 +08:00
index.tsx Merge branch 'feat/collaboration2' into feat/support-agent-sandbox 2026-01-25 00:00:03 +08:00
node-contextmenu.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
panel-contextmenu.tsx refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
selection-contextmenu.tsx Merge branch 'feat/collaboration2' into feat/support-agent-sandbox 2026-01-25 00:00:03 +08:00
shortcuts-name.tsx feat: paste operation for skill file tree 2026-01-20 15:42:53 +08:00
style.css fix comment cursor in panel incorrect 2025-09-16 10:20:12 +08:00
syncing-data-modal.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
types.ts feat: Add support for array[message](List[promptMessage]) variable type 2026-01-26 17:50:18 +08:00
update-dsl-modal.tsx Merge branch 'feat/collaboration2' into feat/support-agent-sandbox 2026-01-25 00:00:03 +08:00
view-picker.tsx fix(workflow): disable view switch during preview run instead of mounted guard 2026-01-27 01:31:22 +08:00
workflow-history-store.tsx feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) (#30246) 2025-12-31 11:13:22 +08:00