Closed srkirkland closed 3 months ago
The changes enhance the UserMessage
and UserPortrait
components to better handle and display user-specific information. By introducing a for
prop in UserPortrait
, it allows distinct user icons to be shown based on context, improving user recognition in shared chat scenarios. This modification aligns with the need for accurate representation of users in shared chats.
Files | Change Summary |
---|---|
src/components/chat/userMessage.tsx |
Added a for prop to UserPortrait , enabling it to receive a user object for enhanced user representation. |
src/components/chat/userPortrait.tsx |
Introduced UserPortraitProps interface with an optional for property; updated user image logic to conditionally display user images. |
Objective | Addressed | Explanation |
---|---|---|
Show proper icon when chat shared (#65) | β |
π In the meadow, hops a rabbit bright,
With user portraits now shining with light.
Sharing chats with icons that gleam,
A happier world, like a wondrous dream!
Hooray for changes, letβs give a cheer,
For every user's face, now shown clear! β¨
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?
pass along name of user that the image is for. if it's for the currently logged in user, get their profile. otherwise just use default, since we can't get other user profile pics anyway.
closes #65
Summary by CodeRabbit
New Features
UserPortrait
component to conditionally display user images based on specific user data.Improvements
UserMessage
andUserPortrait
components.