Closed laholstege closed 4 months ago
The recent changes streamline the feedback handling in the chat components by removing redundant props and functions. Optimistic UI updates and event tracking have been integrated into the feedback buttons. Animation variants for certain components were refined, and new actions related to feedback and chat sharing were added. The overall aim is to improve the user experience and maintainability of the chat interface.
File Path | Change Summary |
---|---|
src/components/chat/answer/chatActions.tsx |
Removed feedback props and logic from ChatActions component. |
src/components/chat/answer/feedbackButtons.tsx |
Added client-side imports, updated props interface, and integrated optimistic UI updates and event tracking for feedback. |
src/components/chat/answer/shareButtons.tsx |
Refactored animation variants for UnshareButton and RegenerateShareButton components. |
src/components/chat/answer/shareModal.tsx |
Updated useActions hook to include a type parameter typeof AI . |
src/components/chat/answer/wonkMessage.tsx |
Removed feedback prop from <ChatActions> component when isLoading is false. |
src/components/chat/ask/chatInput.tsx |
Removed Actions import and updated useActions type parameter. |
src/components/ui/animatedButton.tsx |
Modified imports and adjusted props interface and animation variants usage. |
src/lib/actions.tsx |
Added new actions related to feedback, chat sharing, and reactions. Introduced WonkActions type. |
src/lib/gtag.tsx |
Renamed gtagEventProps interface to GTagEventProps and updated event properties declaration. |
src/models/animations.ts |
Updated button and icon animations. |
src/models/chat.ts |
Renamed UIState to UIStateNode and redefined UIState type. |
src/services/historyService.ts |
Added a TODO comment for error handling in the saveReaction function. |
In the realm of code, changes dance,
Feedback gone, a cleaner stance.
Buttons now with client grace,
Animations find their place.
Actions new, events in line,
Chat evolves, a sleek design.
Celebrate with joy, we say,
Code refined, hip-hip-hooray! 🌟🐇
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
makes feedback an action. i moved the state into
<FeedbackButtons/>
but that means inside of that we have to change theAIState
so thatFeedbackBar />
renders properly adds typing for actions (!!)Summary by CodeRabbit
New Features
Refactor
Style
Chores