dify icon indicating copy to clipboard operation
dify copied to clipboard

feat(api): include icon in app information response

Open da-okazaki opened this issue 1 year ago • 5 comments

Summary

Add a icon to {api}/v1/info.

Screenshots

Before

{
    "name": "sample chat app",
    "description": "sample chat app description",
    "tags": [
        "tag_1",
        "tag_2"
    ]

}

After

{
    "name": "chat app 1",
    "description": "chat app 1 description",
    "tags": [
        "tag_1",
        "tag_2"
    ],
    "icon_type": "emoji",
    "icon": "😀",
    "icon_background": "#FF0000"
}

Checklist

[!IMPORTANT]
Please review the checklist below before submitting your pull request.

  • [ ] This change requires a documentation update, included: Dify Document
  • [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • [ ] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • [ ] I've updated the documentation accordingly.
  • [x] I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods

da-okazaki avatar Dec 08 '24 13:12 da-okazaki

Hi, how about updating the corresponding documentation if you're going to change the API response? Refer to: https://github.com/langgenius/dify/pull/11269

kurokobo avatar Dec 08 '24 13:12 kurokobo

Please fix the lint as well.

crazywoola avatar Dec 09 '24 01:12 crazywoola

@crazywoola Fixes made to lint.

da-okazaki avatar Dec 11 '24 10:12 da-okazaki

@kurokobo Documentation will be handled by the following users in a separate PR. We are developing a product using Didify and would like to use the functionality as soon as possible.

https://github.com/rikeda71

da-okazaki avatar Dec 11 '24 10:12 da-okazaki

When icon_type is image, icon is the ID (UUID) of the image file. How can this be used?

fujita-h avatar Dec 13 '24 08:12 fujita-h