dify/web/app/components/base
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
..
action-button chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
agent-log-modal chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
amplitude fix(amplitude): update sessionReplaySampleRate default value to 0.5 (#30880) 2026-01-13 12:26:50 +08:00
answer-icon chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
app-icon chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
app-icon-picker chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
audio-btn chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
audio-gallery chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
auto-height-textarea chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
avatar Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-01-26 17:09:36 +08:00
badge chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
block-input chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
button chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
carousel feat: frontend part of support try apps (#31287) 2026-01-22 18:16:37 +08:00
chat Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-01-26 17:09:36 +08:00
checkbox chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
checkbox-list refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
chip chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
confirm chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
content-dialog Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-01-26 17:09:36 +08:00
copy-feedback chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
copy-icon chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
corner-label chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
date-and-time-picker chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
dialog chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
divider chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
drawer chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
drawer-plus chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
dropdown chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
effect chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
emoji-picker chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
encrypted-bottom refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
error-boundary refactor: Replace direct process.env.NODE_ENV checks with IS_PROD and IS_DEV constants. (#30383) 2025-12-31 08:32:55 +08:00
features Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-01-26 17:09:36 +08:00
file-icon chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
file-thumb chore: lint require and how to import react (#30041) 2025-12-23 18:02:10 +08:00
file-uploader Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-01-26 17:09:36 +08:00
float-right-container chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
form chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
fullscreen-modal chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
ga build: bump NextJS from to 16 with turbopack enable for web production build boost (#27014) 2026-01-21 12:53:29 +08:00
grid-mask chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
icons Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-01-26 23:12:44 +08:00
image-gallery chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
image-uploader chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
inline-delete-confirm chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
input chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
input-number chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
input-with-copy refactor(web): useClipboard hook to reduce duplication (#31308) 2026-01-22 16:13:10 +08:00
linked-apps-panel chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
list-empty chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
loading chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
logo chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
markdown fix(workflow): disable view switch during preview run instead of mounted guard 2026-01-27 01:31:22 +08:00
markdown-blocks chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
mermaid chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
message-log-modal chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
modal Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-01-26 17:09:36 +08:00
modal-like-wrap chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
new-audio-button chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
node-status chore: lint require and how to import react (#30041) 2025-12-23 18:02:10 +08:00
notion-connector chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
notion-icon chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
notion-page-selector chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
pagination chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
param-item chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
popover chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
portal-to-follow-elem chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
premium-badge chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
progress-bar chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
prompt-editor Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-01-26 17:09:36 +08:00
prompt-log-modal chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
qrcode chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
radio chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
radio-card chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
search-input chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
segmented-control chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
select chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
simple-pie-chart chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
skeleton chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
slider chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
sort chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
spinner chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
svg chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
svg-gallery chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
switch chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
tab-header chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
tab-slider chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
tab-slider-new chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
tab-slider-plain chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
tag chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
tag-input chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
tag-management chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
text-generation refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
textarea chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
timezone-label chore: lint require and how to import react (#30041) 2025-12-23 18:02:10 +08:00
toast chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
tooltip chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
user-avatar-list fix web style 2026-01-17 22:10:10 +08:00
video-gallery chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
voice-input chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
with-input-validation chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
zendesk refactor: Replace direct process.env.NODE_ENV checks with IS_PROD and IS_DEV constants. (#30383) 2025-12-31 08:32:55 +08:00
alert.tsx feat: frontend part of support try apps (#31287) 2026-01-22 18:16:37 +08:00
app-unavailable.tsx refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
badge.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
theme-selector.tsx refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
theme-switcher.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00