dify icon indicating copy to clipboard operation
dify copied to clipboard

Feat/chat custom disclaimer

Open patryk20120 opened this issue 9 months ago • 2 comments

Description

Added additional custom disclaimer for chats.

Settings: image

Disclaimer inside web app: image

Disclaimer inside embedded chats: iframe: image scripts: image

Partly connects with https://github.com/langgenius/dify/issues/4202

Not much more to be described, kinda self described :)

Type of Change

  • [x] New feature (non-breaking change which adds functionality)
  • [x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [x] Improvement, including but not limited to code refactoring, performance optimization, and UI/UX improvement

How Has This Been Tested?

Everything was tested locally with couple of edge cases.

Suggested Checklist:

  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [x] My changes generate no new warnings
  • [x] I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
  • [ ] optional I have made corresponding changes to the documentation
  • [ ] optional I have added tests that prove my fix is effective or that my feature works
  • [ ] optional New and existing unit tests pass locally with my changes

patryk20120 avatar May 11 '24 15:05 patryk20120

Minor suggestions to follow.

  1. Skip the word Custom in Custom Disclaimer, as it IS customizable with the following textbox.
  2. Use textbox instead of text input for longer declaimer text.

bowenliang123 avatar May 14 '24 12:05 bowenliang123

Database migration checked, all good.

Yeuoly avatar May 17 '24 04:05 Yeuoly