Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support chat thumb action #3183

Merged
merged 3 commits into from
Nov 17, 2023
Merged

Conversation

pipiiiiii
Copy link
Contributor

@pipiiiiii pipiiiiii commented Nov 17, 2023

Types

  • 🎉 New Features

Background or solution

🤖[deprecated] Generated by Copilot at a7d5f45

  • Add a custom component ChatMoreActions to allow the user to retry or give feedback on the failed AI messages (link)
  • Use the AiChatService and the IAIReporter services in the ChatMoreActions component to get the session id and report the feedback (link)
  • Import the IAIReporter interface and the Thumbs component in the Thinking component to enable the feedback functionality (link, link)
  • Pass the relationId and the aiReporter props to the Thumbs component in the ThinkingResult component (link)
  • Use the useInjectable hook to get the IAIReporter service instance in the ThinkingResult component (link)
  • Modify the Thumbs component to use the relationId and the aiReporterService props to report the feedback and handle the icon changes and the click events (link)
  • Add the isLike property to the CommonLogInfo interface to simplify the reporting logic (link)
  • Move the .bottom_container style rule out of the .ai_chat_more_actions_container rule to make it a global style for the chat components (link)
  • Remove the unused .chat_msg_more_actions style rule (link)
  • Update the icon font constants to include the new icons (link)
  • Register the thumbs icon name as a valid icon for the EnhanceIcon component (link)

Changelog

🤖[deprecated] Generated by Copilot at a7d5f45

This pull request adds a feedback feature to the Thinking and ChatMoreActions components in the AI chat view, allowing the user to report their satisfaction with the AI response using the Thumbs component and the IAIReporter service. It also refactors some style rules and updates the icon font to include the new icons.

@pipiiiiii pipiiiiii requested a review from Ricbet November 17, 2023 04:39
@opensumi opensumi bot added 🎨 feature feature required ⚙️ refactor Refactor code 💄 style change labels Nov 17, 2023
@pipiiiiii pipiiiiii merged commit c99c1bc into chore/ai-native-module Nov 17, 2023
2 checks passed
@pipiiiiii pipiiiiii deleted the feat/like-dislike branch November 17, 2023 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants