dify/web/app/components
-LAN- 1a65600b54
fix: conversation opener feature state persistence and display
This commit fixes issue #26500 where the conversation opener feature
doesn't preserve its enabled state and doesn't work correctly.

Changes:
1. Updated feature initialization logic to check for both opening_statement
   and suggested_questions when determining if the feature is enabled
2. Simplified save logic to always send the actual content instead of
   clearing it when disabled
3. Added automatic modal opening when user toggles feature on without content
4. Added logic to automatically set enabled state based on content presence
5. Added logic to disable feature if user cancels modal without adding content

This ensures that:
- The feature's enabled state is correctly determined from saved content
- Users must add content (opening statement or suggested questions) to enable the feature
- The enabled state is automatically managed based on content presence
- The feature state persists correctly across page refreshes
2025-09-30 18:18:01 +08:00
..
app [Chore/Refactor] Implement lazy initialization for useState calls to prevent re-computation (#26252) 2025-09-29 20:35:55 +09:00
app-sidebar [Chore/Refactor] Add missing 'type' attribute on 'button' components (#26249) 2025-09-28 13:43:43 +08:00
apps [Chore/Refactor] Add missing 'type' attribute on 'button' components (#26249) 2025-09-28 13:43:43 +08:00
base fix: conversation opener feature state persistence and display 2025-09-30 18:18:01 +08:00
billing [Chore/Refactor] Add missing 'type' attribute on 'button' components (#26249) 2025-09-28 13:43:43 +08:00
custom [Chore/Refactor] Implement lazy initialization for useState calls to prevent re-computation (#26252) 2025-09-29 20:35:55 +09:00
datasets fix: Fix retrieval configuration handling in dataset components (#26361) 2025-09-29 14:58:28 +08:00
develop [Chore/Refactor] Add missing 'type' attribute on 'button' components (#26249) 2025-09-28 13:43:43 +08:00
explore fix: style with self-start (#26492) 2025-09-30 15:30:27 +08:00
goto-anything feat(goto-anything): add RAG pipeline node search (#25948) 2025-09-19 18:28:13 +08:00
header [Chore/Refactor] Implement lazy initialization for useState calls to prevent re-computation (#26252) 2025-09-29 20:35:55 +09:00
plugins feat(pipeline): add language support to built-in pipeline templates and update related components (#26124) 2025-09-23 18:18:22 +08:00
rag-pipeline chore: time from now i18n support (#26328) 2025-09-28 13:37:42 +08:00
share fix: resolve chat sidebar UI bugs for hover panel and dropdown menu (#25813) 2025-09-19 18:28:49 +08:00
signin [Chore/Refactor] Implement lazy initialization for useState calls to prevent re-computation (#26252) 2025-09-29 20:35:55 +09:00
tools [Chore/Refactor] Implement lazy initialization for useState calls to prevent re-computation (#26252) 2025-09-29 20:35:55 +09:00
workflow [Chore/Refactor] Implement lazy initialization for useState calls to prevent re-computation (#26252) 2025-09-29 20:35:55 +09:00
workflow-app fix: conversation opener feature state persistence and display 2025-09-30 18:18:01 +08:00
browser-initializer.tsx Perf: remove user profile loading (#22710) 2025-07-21 16:35:52 +08:00
i18n-server.tsx fix: Refactor i18n config and fix plugin search box styling issue (#22945) 2025-07-25 15:01:28 +08:00
i18n.tsx fix: Refactor i18n config and fix plugin search box styling issue (#22945) 2025-07-25 15:01:28 +08:00
sentry-initializer.tsx Perf: remove user profile loading (#22710) 2025-07-21 16:35:52 +08:00
swr-initializer.tsx feat: oauth provider (#24206) 2025-08-29 14:10:51 +08:00
with-i18n.tsx Initial commit 2023-05-15 08:51:32 +08:00