[PR #7888] feat: allow users to use the app icon as the answer icon #25862

Closed
opened 2026-02-21 20:28:03 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/7888

State: closed
Merged: Yes


Checklist:

Important

Please review the checklist below before submitting your pull request.

  • Please open an issue before creating a PR or link to an existing issue
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods

Description

This PR adds configurable flags to use the app icons as the answer icons:

Installed Apps:
image

Shared Apps:
image

Embedded Chat:
image

Users can toggle this flag on the Edit App Info modals for the installed apps:
image

Or on the WebApp Settings modals for the shared apps:
image

Fixes #7504

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update, included: Dify Document
  • Improvement, including but not limited to code refactoring, performance optimization, and UI/UX improvement
  • Dependency upgrade

Testing Instructions

  • Create new apps with various modes (chat, advanced-chat, completion, agent-chat, workflow) without any errors
  • Modify app settings for the apps with various modes (chat, advanced-chat, completion, agent-chat, workflow)
    • The switches are visible only if the app is chat, advanced-chat, or agent
    • I can toggle the switchs for the apps and values are stored in the DB
    • The switches shows the current value of the flag for the apps
  • I can see the app icons and icon backgrounds, or images are used as the answer icons if the flags are enabled
  • The same tests can be completed for the sites over shared app screens
  • The apps can be exported as DSLs, and the DSL files can be imported without any errors
    • with use_icon_as_answer_icon
    • without use_icon_as_answer_icon

NOTE

  • I didn't add a switch to the app's new creation screen because it's better for users to have fewer things to set up when starting out. This setting is totally optional and not something everyone needs to worry about.
**Original Pull Request:** https://github.com/langgenius/dify/pull/7888 **State:** closed **Merged:** Yes --- # Checklist: > [!IMPORTANT] > Please review the checklist below before submitting your pull request. - [x] Please open an issue before creating a PR or link to an existing issue - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods # Description This PR adds configurable flags to use the app icons as the answer icons: **Installed Apps:** ![image](https://github.com/user-attachments/assets/deed5450-6ba8-4860-ac05-e69e0e7a6aee) **Shared Apps:** ![image](https://github.com/user-attachments/assets/2a5fdd6a-cbc2-41cb-8d54-83014d8d7766) **Embedded Chat:** ![image](https://github.com/user-attachments/assets/da20b904-1ead-4129-8ef5-9f650306bd43) Users can toggle this flag on the `Edit App Info` modals for the **installed apps**: ![image](https://github.com/user-attachments/assets/4f334a28-1c36-40f7-af6b-dac392665e35) Or on the `WebApp Settings` modals for the **shared apps**: ![image](https://github.com/user-attachments/assets/ddcf08e5-e7c0-4b1f-b6b1-e2debe8994f6) Fixes #7504 ## Type of Change - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [ ] Improvement, including but not limited to code refactoring, performance optimization, and UI/UX improvement - [ ] Dependency upgrade # Testing Instructions - [x] Create new apps with various modes (chat, advanced-chat, completion, agent-chat, workflow) without any errors - [x] Modify app settings for the apps with various modes (chat, advanced-chat, completion, agent-chat, workflow) - [x] The switches are visible only if the app is chat, advanced-chat, or agent - [x] I can toggle the switchs for the apps and values are stored in the DB - [x] The switches shows the current value of the flag for the apps - [x] I can see the app icons and icon backgrounds, or images are used as the answer icons if the flags are enabled - [x] The same tests can be completed for the sites over shared app screens - [x] The apps can be exported as DSLs, and the DSL files can be imported without any errors - [x] with `use_icon_as_answer_icon` - [x] without `use_icon_as_answer_icon` ## NOTE - I didn't add a switch to the app's new creation screen because it's better for users to have fewer things to set up when starting out. This setting is totally optional and not something everyone needs to worry about.
yindo added the pull-request label 2026-02-21 20:28:03 -05:00
yindo closed this issue 2026-02-21 20:28:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#25862