LibreChat/packages/data-provider/src
Ruben Talstra 4cbab86b45
📈 feat: Chat rating for feedback (#5878)
* feat: working started for feedback implementation.

TODO:
- needs some refactoring.
- needs some UI animations.

* feat: working rate functionality

* feat: works now as well to reader the already rated responses from the server.

* feat: added the option to give feedback in text (optional)

* feat: added Dismiss option `x` to the `FeedbackTagOptions`

*  feat: Add rating and ratingContent fields to message schema

* 🔧 chore: Bump version to 0.0.3 in package.json

*  feat: Enhance feedback localization and update UI elements

* 🚀 feat: Implement feedback tagging system with thumbs up/down options

* 🚀 feat: Add data-provider package to unused i18n keys detection

* 🎨 style: update HoverButtons' style

* 🎨 style: Update HoverButtons and Fork components for improved styling and visibility

* 🔧 feat: Implement feedback system with rating and content options

* 🔧 feat: Enhance feedback handling with improved rating toggle and tag options

* 🔧 feat: Integrate toast notifications for feedback submission and clean up unused state

* 🔧 feat: Remove unused feedback tag options from translation file

*  refactor: clean up Feedback component and improve HoverButtons structure

*  refactor: remove unused settings switches for auto scroll, hide side panel, and user message markdown

* refactor: reorganize import order

*  refactor: enhance HoverButtons and Fork components with improved styles and animations

*  refactor: update feedback response phrases for improved user engagement

*  refactor: add CheckboxOption component and streamline fork options rendering

* Refactor feedback components and logic

- Consolidated feedback handling into a single Feedback component, removing FeedbackButtons and FeedbackTagOptions.
- Introduced new feedback tagging system with detailed tags for both thumbs up and thumbs down ratings.
- Updated feedback schema to include new tags and improved type definitions.
- Enhanced user interface for feedback collection, including a dialog for additional comments.
- Removed obsolete files and adjusted imports accordingly.
- Updated translations for new feedback tags and placeholders.

*  refactor: update feedback handling by replacing rating fields with feedback in message updates

* fix: add missing validateMessageReq middleware to feedback route and refactor feedback system

* 🗑️ chore: Remove redundant fork option explanations from translation file

* 🔧 refactor: Remove unused dependency from feedback callback

* 🔧 refactor: Simplify message update response structure and improve error logging

* Chore: removed unused tests.

---------

Co-authored-by: Marco Beretta <81851188+berry-13@users.noreply.github.com>
2025-05-30 12:16:34 -04:00
..
react-query 📈 feat: Chat rating for feedback (#5878) 2025-05-30 12:16:34 -04:00
types 🔎 feat: Native Web Search with Citation References (#7516) 2025-05-23 17:40:40 -04:00
actions.ts 📈 feat: Chat rating for feedback (#5878) 2025-05-30 12:16:34 -04:00
api-endpoints.ts 📈 feat: Chat rating for feedback (#5878) 2025-05-30 12:16:34 -04:00
artifacts.ts 🪟 fix: Windows Build (npm) (#3889) 2024-09-02 10:01:09 -04:00
azure.ts 🖼️ refactor: Enhance Env Extraction & Agent Image Handling (#6131) 2025-03-01 07:51:12 -05:00
bedrock.ts 🪨 feat: Bedrock Support for Claude-4 Reasoning (#7517) 2025-05-23 00:42:51 -04:00
config.ts 🔑 feat: SAML authentication (#6169) 2025-05-29 11:00:58 -04:00
createPayload.ts 🖥️ feat: Code Interpreter API for Non-Agent Endpoints (#6803) 2025-04-09 16:11:16 -04:00
data-service.ts 📈 feat: Chat rating for feedback (#5878) 2025-05-30 12:16:34 -04:00
feedback.ts 📈 feat: Chat rating for feedback (#5878) 2025-05-30 12:16:34 -04:00
file-config.ts 📈 feat: Chat rating for feedback (#5878) 2025-05-30 12:16:34 -04:00
generate.ts 🎚️ feat: Custom Parameters (#7342) 2025-05-19 19:33:25 -04:00
headers-helpers.ts chore: add back data-provider 2023-07-30 11:50:24 -04:00
index.ts 📈 feat: Chat rating for feedback (#5878) 2025-05-30 12:16:34 -04:00
keys.ts feat: Agent Version History and Management (#7455) 2025-05-23 17:40:39 -04:00
mcp.ts 🔗 feat: Support Environment Variables in MCP URL Config (#7424) 2025-05-19 19:37:21 -04:00
models.ts 🚀 feat: Use Model Specs + Specific Endpoints, Limit Providers for Agents (#6650) 2025-04-01 03:50:32 -04:00
ocr.ts 🔍 feat: Mistral OCR API / Upload Files as Text (#6274) 2025-03-10 17:23:46 -04:00
parameterSettings.ts fix: Debounce setUserContext and Default State Param for OpenID Auth (#7559) 2025-05-25 23:40:37 -04:00
parsers.ts 🔧 fix: Google Gemma Support & OpenAI Reasoning Instructions (#7196) 2025-05-02 15:11:50 -04:00
permissions.ts 🔎 feat: Native Web Search with Citation References (#7516) 2025-05-23 17:40:40 -04:00
request.ts 🔒 feat: Two-Factor Authentication with Backup Codes & QR support (#5685) 2025-02-17 19:09:36 -05:00
roles.ts 🔎 feat: Native Web Search with Citation References (#7516) 2025-05-23 17:40:40 -04:00
schemas.ts 📈 feat: Chat rating for feedback (#5878) 2025-05-30 12:16:34 -04:00
types.ts 📈 feat: Chat rating for feedback (#5878) 2025-05-30 12:16:34 -04:00
utils.ts 🔎 feat: Native Web Search with Citation References (#7516) 2025-05-23 17:40:40 -04:00
web.ts 🧩 feat: Web Search Config Validations & Clipboard Citation Processing (#7530) 2025-05-24 10:23:17 -04:00
zod.spec.ts 📈 feat: Chat rating for feedback (#5878) 2025-05-30 12:16:34 -04:00
zod.ts 🐋 fix: Improve Deepseek Compatbility (#7132) 2025-04-29 09:55:43 -04:00