dify/web/app/components/workflow/panel
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
..
chat-record fix: history messages toolcalls 2026-01-20 17:37:23 +08:00
chat-variable-panel Merge remote-tracking branch 'myori/main' into feat/collaboration2 2026-01-24 15:22:07 +08:00
comments-panel whether resolved sync to canvas 2026-01-20 10:12:15 +08:00
debug-and-preview fix(workflow): disable view switch during preview run instead of mounted guard 2026-01-27 01:31:22 +08:00
env-panel Merge remote-tracking branch 'myori/main' into feat/collaboration2 2026-01-19 21:15:53 +08:00
global-variable-panel feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) (#30246) 2025-12-31 11:13:22 +08:00
version-history-panel new restore 2026-01-23 14:22:58 +08:00
index.tsx perf: Replace topOffset prop with withHeader in Panel component 2026-01-15 16:44:15 +08:00
inputs-panel.tsx refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
record.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
workflow-preview.tsx refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00