-
Notifications
You must be signed in to change notification settings - Fork 277
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
[AND-277] Avatar component factories #5596
base: develop
Are you sure you want to change the base?
Conversation
SDK Size Comparison 📏
|
a4cbedd
to
c98c7c8
Compare
c98c7c8
to
2100b11
Compare
8a82f0b
to
3ee688a
Compare
3ee688a
to
c9eb9df
Compare
UserAvatar( | ||
Avatar( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we switching from UserAvatar
to Avatar
?
Shouldn't we use the factory here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I replaced all calls from UserAvatar
to Avatar
when showOnlineIndicator = false
That means it's not meant to show the online indicator at any case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Avatar
factory is not done yet. As I mentioned, it's a WIP. PR is a draft yet
UserAvatar( | ||
Avatar( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
Shouldn't we use ChatTheme.componentFactory.UserAvatar()
?? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Answered above 🙂
c9eb9df
to
44388f2
Compare
Quality Gate failedFailed conditions |
🎯 Goal
Provide default factories for the avatar components:
UserAvatar
,ChannelAvatar
, andAvatar
Unrelated changes
UserAvatar
usages withAvatar
whenshowOnlineIndicator = false
, which means we can useAvatar
directly.🎨 UI Changes
Screen_recording_20250131_162928.webm
Screen_recording_20250131_163229.webm
Screen_recording_20250131_163536.webm
Screen_recording_20250131_163758.webm