feature: Add message feedback and update frontend interface (#5022)

* add style for message feedback

* add backend suprot to new feature

* update frontend interface and add handle function

* [autofix.ci] apply automated fixes

* Update tooltip content for bot messages

* Update evaluation icons styling

* Add custom thumb icons for thumbs up and thumbs down

* Add custom thumb icons for thumbs up and thumbs down

* Update thumb icons based on evaluation value

* [autofix.ci] apply automated fixes

* Update property name for positive feedback

* Update property name for positive feedback

* feat: Add data-testid attributes to helpful and not helpful buttons and update test of playground to include new functionality

* update test to include new message features
This commit is contained in:
anovazzi1 2024-12-17 16:09:06 -03:00 • committed by GitHub
commit 02fbb450db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 258 additions and 61 deletions

View file

@ -52,6 +52,7 @@ class TestChatInput(ComponentTestBaseWithClient):
"background_color": default_kwargs["background_color"],
"text_color": default_kwargs["text_color"],
"icon": default_kwargs["chat_icon"],
"positive_feedback": None,
"edited": False,
"source": {"id": None, "display_name": None, "source": None},
"allow_markdown": False,