dify/web/app/components
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
..
app merge 2026-01-26 16:57:45 +08:00
app-sidebar Merge remote-tracking branch 'myori/main' into feat/collaboration2 2026-01-24 15:22:07 +08:00
apps Merge branch 'feat/collaboration2' into feat/support-agent-sandbox 2026-01-25 00:00:03 +08:00
base fix(workflow): disable view switch during preview run instead of mounted guard 2026-01-27 01:31:22 +08:00
billing feat: enhance ProgressBar and UsageInfo for storage mode (#31273) 2026-01-21 14:04:33 +08:00
custom chore: remove useless __esModule (#30366) 2025-12-30 15:37:16 +08:00
datasets merge 2026-01-26 16:57:45 +08:00
develop refactor(i18n): about locales (#30336) 2025-12-30 14:38:23 +08:00
devtools refactor(web): organize devtools components (#30318) 2025-12-30 09:21:41 +08:00
explore feat: frontend part of support try apps (#31287) 2026-01-22 18:16:37 +08:00
goto-anything refactor(web): remove useMixedTranslation, better resource loading (#30630) 2026-01-07 13:20:09 +08:00
header merge 2026-01-26 16:57:45 +08:00
plugins merge 2026-01-26 16:57:45 +08:00
provider chore: disable serwist in dev (#31424) 2026-01-23 11:35:14 +08:00
rag-pipeline Merge branch 'feat/collaboration2' into feat/support-agent-sandbox 2026-01-25 00:00:03 +08:00
share feat: frontend part of support try apps (#31287) 2026-01-22 18:16:37 +08:00
signin refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
sub-graph refactor: use bivariance to normalize node metadata types 2026-01-23 06:57:00 +08:00
tools merge 2026-01-26 16:57:45 +08:00
workflow fix(workflow): disable view switch during preview run instead of mounted guard 2026-01-27 01:31:22 +08:00
workflow-app fix(workflow): disable view switch during preview run instead of mounted guard 2026-01-27 01:31:22 +08:00
app-initializer.tsx refactor(web): setup status caching (#30798) 2026-01-13 16:59:49 +08:00
browser-initializer.spec.ts feat: Add polyfill for Array.prototype.toSpliced method (#30031) 2025-12-23 17:48:20 +08:00
browser-initializer.tsx feat: Add polyfill for Array.prototype.toSpliced method (#30031) 2025-12-23 17:48:20 +08:00
sentry-initializer.tsx refactor(web): Migrate to Unified TanStack Devtools (#30279) 2025-12-29 09:43:44 +08:00
splash.tsx chore: lint require and how to import react (#30041) 2025-12-23 18:02:10 +08:00