dify/web/app
-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
..
(commonLayout) feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
(shareLayout) fix: login security issue frontend (#25571) 2025-09-12 10:25:06 +08:00
account fix: avatar is not updated after setted (#25414) 2025-09-09 16:00:50 +08:00
activate E-300 (#19726) 2025-05-20 12:07:50 +08:00
components fix: conversation opener feature state persistence and display 2025-09-30 18:18:01 +08:00
dev-preview feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
education-apply CI: add TS indentation check via esLint (#24810) 2025-09-01 15:31:59 +08:00
forgot-password reject whitespace characters in password regexp (#22232) 2025-07-11 19:18:18 +08:00
init E-300 (#19726) 2025-05-20 12:07:50 +08:00
install fix: standardize text color in install form to text-secondary (#25272) 2025-09-06 16:05:01 +08:00
oauth-callback feat: the frontend part of mcp (#22131) 2025-07-10 14:14:02 +08:00
repos/[owner]/[repo]/releases Introduce Plugins (#13836) 2025-02-17 17:05:13 +08:00
reset-password feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
signin [Chore/Refactor] Implement lazy initialization for useState calls to prevent re-computation (#26252) 2025-09-29 20:35:55 +09:00
signup Fix: use correct maxLength prop for verification code input (#26244) 2025-09-28 13:44:14 +08:00
styles bump nextjs to 15.5 and turbopack for development mode (#24346) 2025-09-23 16:59:26 +08:00
layout.tsx feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
page.module.css Enhance Code Consistency Across Repository with `.editorconfig` (#19023) 2025-04-29 18:04:33 +08:00
page.tsx Chore: frontend infrastructure upgrade (#16420) 2025-03-21 17:41:03 +08:00
routePrefixHandle.tsx Fix the bug of automatically appending basepath to image resource. (#24201) 2025-08-20 23:15:18 +08:00