LibreChat/client/src/components/svg
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
..
Files 🗃️ feat: Code Interpreter File Persistence between Sessions (#6790) 2025-04-08 23:18:50 -04:00
AnthropicIcon.tsx chore: Update AnthropicIcon.tsx 2024-03-13 19:00:22 -04:00
AnthropicMinimalIcon.tsx 🧭 refactor: Modernize Nav/Header (#7094) 2025-04-27 14:03:25 -04:00
AppleIcon.tsx 🍎 feat: Apple auth (#5473) 2025-01-31 09:49:09 -05:00
ArchiveIcon.tsx 📧 feat: Mention "@" Command Popover (#2635) 2024-05-07 13:13:55 -04:00
AssistantIcon.tsx feat: Assistants API, General File Support, Side Panel, File Explorer (#1696) 2024-02-13 20:42:27 -05:00
AttachmentIcon.tsx WIP: Update UI to match Official Style; Vision and Assistants 👷🏽 (#1190) 2023-11-16 10:42:24 -05:00
AzureMinimalIcon.tsx 🌎 i18n: React-i18next & i18next Integration (#5720) 2025-02-09 12:05:31 -05:00
BedrockIcon.tsx 🪨 feat: AWS Bedrock support (#3935) 2024-09-09 12:06:59 -04:00
BirthdayIcon.tsx 🎨 feat: UI Refresh for Enhanced UX (#6346) 2025-03-25 18:50:58 -04:00
Blocks.tsx feat: Assistants API, General File Support, Side Panel, File Explorer (#1696) 2024-02-13 20:42:27 -05:00
CautionIcon.tsx refactor: Settings/Presets UI Restructure, convert many files to TS (#740) 2023-08-04 13:56:44 -04:00
ChatGPTMinimalIcon.tsx feat: icons for chat identification (#879) 2023-09-18 15:21:39 -04:00
ChatIcon.tsx refactor: Settings/Presets UI Restructure, convert many files to TS (#740) 2023-08-04 13:56:44 -04:00
CheckMark.tsx 🔍 feat: Filter MultiSelect and SelectDropDown (+variants) + CSS fixes for Scrollbar (#2138) 2024-03-19 13:35:10 -04:00
CircleHelpIcon.tsx 🎨 style: settings tab update (#3088) 2024-06-21 09:58:04 -04:00
Clipboard.tsx 🔉 feat: Speech-to-text / Text-to-speech (initial support) (#2836) 2024-05-22 17:19:55 -04:00
CodeyIcon.tsx feat(Google): Support all Text/Chat Models, Response streaming, PaLM -> Google 🤖 (#1316) 2023-12-10 14:54:13 -05:00
ContinueIcon.tsx 📈 feat: Chat rating for feedback (#5878) 2025-05-30 12:16:34 -04:00
ConvoIcon.tsx ci: add e2e workflow, optimize client code for testing (#771) 2023-08-08 11:17:15 -04:00
CrossIcon.tsx refactor: Settings/Presets UI Restructure, convert many files to TS (#740) 2023-08-04 13:56:44 -04:00
CustomMinimalIcon.tsx 💫 feat: Config File & Custom Endpoints (#1474) 2024-01-03 09:22:48 -05:00
DarkModeIcon.tsx refactor: Settings/Presets UI Restructure, convert many files to TS (#740) 2023-08-04 13:56:44 -04:00
DataIcon.tsx 📂 feat: RAG Improvements (#2169) 2024-03-22 19:07:08 -04:00
DiscordIcon.tsx refactor: Settings/Presets UI Restructure, convert many files to TS (#740) 2023-08-04 13:56:44 -04:00
DislikeIcon.tsx refactor: Settings/Presets UI Restructure, convert many files to TS (#740) 2023-08-04 13:56:44 -04:00
DotsIcon.tsx 🚀feat: Archive conversations (#2590) 2024-05-06 23:07:00 -04:00
EditIcon.tsx 🪨 feat: AWS Bedrock support (#3935) 2024-09-09 12:06:59 -04:00
ExperimentIcon.tsx ✏️ feat: LaTeX parsing for Messages (#1585) 2024-01-18 14:44:10 -05:00
FacebookIcon.tsx feat: facebook login (#820) 2023-08-24 20:10:48 -04:00
GearIcon.tsx 🔥🚀 feat: CDN (Firebase) & feat: account section (#1438) 2023-12-29 21:42:19 -05:00
GeminiIcon.tsx feat: Google Gemini ❇️ (#1355) 2023-12-15 02:18:07 -05:00
GithubIcon.tsx refactor: Settings/Presets UI Restructure, convert many files to TS (#740) 2023-08-04 13:56:44 -04:00
GoogleIcon.tsx refactor: Settings/Presets UI Restructure, convert many files to TS (#740) 2023-08-04 13:56:44 -04:00
GoogleIconChat.tsx ♾️ style: Infinite Scroll Nav and Sort Convos by Date/Usage (#1708) 2024-02-03 20:25:35 -05:00
GoogleMinimalIcon.tsx feat(Google): Support all Text/Chat Models, Response streaming, PaLM -> Google 🤖 (#1316) 2023-12-10 14:54:13 -05:00
GPTIcon.tsx feat: Implement Default Preset Selection for Conversations 📌 (#1275) 2023-12-06 14:00:15 -05:00
index.ts 📈 feat: Chat rating for feedback (#5878) 2025-05-30 12:16:34 -04:00
LightModeIcon.tsx refactor: Settings/Presets UI Restructure, convert many files to TS (#740) 2023-08-04 13:56:44 -04:00
LightningIcon.tsx WIP: Update UI to match Official Style; Vision and Assistants 👷🏽 (#1190) 2023-11-16 10:42:24 -05:00
LikeIcon.tsx refactor: Settings/Presets UI Restructure, convert many files to TS (#740) 2023-08-04 13:56:44 -04:00
LinkIcon.tsx style: update graphics (#1138) 2023-11-16 08:42:03 -05:00
ListeningIcon.tsx 🔉 feat: Speech-to-text / Text-to-speech (initial support) (#2836) 2024-05-22 17:19:55 -04:00
LockIcon.tsx 🚫👤feat: delete user from UI (#1526) 2024-06-05 19:35:12 -04:00
LogOutIcon.tsx style: update graphics (#1138) 2023-11-16 08:42:03 -05:00
MessagesSquared.tsx refactor: Settings/Presets UI Restructure, convert many files to TS (#740) 2023-08-04 13:56:44 -04:00
MinimalPlugin.tsx feat: Implement Default Preset Selection for Conversations 📌 (#1275) 2023-12-06 14:00:15 -05:00
MobileSidebar.tsx 🧭 refactor: Modernize Nav/Header (#7094) 2025-04-27 14:03:25 -04:00
NewChatIcon.tsx 👐 a11y: Misc. Improvements (#3910) 2024-09-05 14:30:17 -04:00
OpenAIMinimalIcon.tsx feat: Assistants API, General File Support, Side Panel, File Explorer (#1696) 2024-02-13 20:42:27 -05:00
OpenIDIcon.tsx refactor: Settings/Presets UI Restructure, convert many files to TS (#740) 2023-08-04 13:56:44 -04:00
PaLMIcon.tsx feat(Google): Support all Text/Chat Models, Response streaming, PaLM -> Google 🤖 (#1316) 2023-12-10 14:54:13 -05:00
PaLMinimalIcon.tsx feat(Google): Support all Text/Chat Models, Response streaming, PaLM -> Google 🤖 (#1316) 2023-12-10 14:54:13 -05:00
PinIcon.tsx feat: Implement Default Preset Selection for Conversations 📌 (#1275) 2023-12-06 14:00:15 -05:00
Plugin.tsx feat: Edit AI Messages, Edit Messages in Place (#825) 2023-08-22 18:44:59 -04:00
RegenerateIcon.tsx 🔉 feat: Speech-to-text / Text-to-speech (initial support) (#2836) 2024-05-22 17:19:55 -04:00
RenameIcon.tsx 🔍 feat: Filter MultiSelect and SelectDropDown (+variants) + CSS fixes for Scrollbar (#2138) 2024-03-19 13:35:10 -04:00
SamlIcon.tsx 🔑 feat: SAML authentication (#6169) 2025-05-29 11:00:58 -04:00
SaveIcon.tsx refactor: Settings/Presets UI Restructure, convert many files to TS (#740) 2023-08-04 13:56:44 -04:00
SendIcon.tsx WIP: Update UI to match Official Style; Vision and Assistants 👷🏽 (#1190) 2023-11-16 10:42:24 -05:00
SendMessageIcon.tsx style: update graphics (#1138) 2023-11-16 08:42:03 -05:00
Sidebar.tsx 🧭 refactor: Modernize Nav/Header (#7094) 2025-04-27 14:03:25 -04:00
Sparkles.tsx 🚧 chore: merge latest dev build (#4288) 2024-09-30 17:17:57 -04:00
SpeechIcon.tsx 🔉 feat: Speech-to-text / Text-to-speech (initial support) (#2836) 2024-05-22 17:19:55 -04:00
Spinner.tsx 🖼️ feat: Tool Call and Loading UI Refresh, Image Resize Config (#7086) 2025-05-19 19:23:11 -04:00
StopGeneratingIcon.tsx feat(GPT/Anthropic): Continue Regenerating & Generation Buttons (#808) 2023-08-17 12:50:05 -04:00
SunIcon.tsx refactor: Settings/Presets UI Restructure, convert many files to TS (#740) 2023-08-04 13:56:44 -04:00
SwitchIcon.tsx refactor: Settings/Presets UI Restructure, convert many files to TS (#740) 2023-08-04 13:56:44 -04:00
ThumbDownIcon.tsx 📈 feat: Chat rating for feedback (#5878) 2025-05-30 12:16:34 -04:00
ThumbUpIcon.tsx 📈 feat: Chat rating for feedback (#5878) 2025-05-30 12:16:34 -04:00
TrashIcon.tsx 🎨 style: update Assistants builder (#3397) 2024-07-21 13:46:43 -04:00
UserIcon.tsx 🔥🚀 feat: CDN (Firebase) & feat: account section (#1438) 2023-12-29 21:42:19 -05:00
VolumeIcon.tsx 🔉 feat: Speech-to-text / Text-to-speech (initial support) (#2836) 2024-05-22 17:19:55 -04:00
VolumeMuteIcon.tsx 🔉 feat: Speech-to-text / Text-to-speech (initial support) (#2836) 2024-05-22 17:19:55 -04:00
XAIcon.tsx 🧭 refactor: Modernize Nav/Header (#7094) 2025-04-27 14:03:25 -04:00