-
Notifications
You must be signed in to change notification settings - Fork 238
Change : add tombstoned room decoration #4891
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
Conversation
…ace CompositeAvatar
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
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.
Nice work thanks!
I believe that the preview must be recorded. I'll check the result, but please add a preview for TombstonedRoomAvatar
first.
Thanks!
import io.element.android.compound.theme.ElementTheme | ||
|
||
@Composable | ||
fun TombstonedRoomAvatar( |
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.
Maybe add a Preview for this specific avatar?
Actually screenshots can't be recorded because AvatarClusterPreview is failing if the number of avatars is not in [1,4]. I let you fix that. Thanks! |
86ba74a
to
2a865e6
Compare
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.
Thanks!
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.
R became a A, not sure why, but maybe not a problem (?)
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.
Because RoomAvatar was null before, not possible anymore. So no problem here 👍
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #4891 +/- ##
===========================================
+ Coverage 80.29% 80.31% +0.01%
===========================================
Files 2152 2155 +3
Lines 57177 57236 +59
Branches 7199 7206 +7
===========================================
+ Hits 45913 45968 +55
Misses 8821 8821
- Partials 2443 2447 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Content
Follow-up of #4862
Makes sure we are using the correct decoration for tombstoned room :
There are some additional refactoring around Avatar (you can check the commit history) :
AvatarCluster
now replaces part of the CompositeAvatarRoomAvatar
makes sure to render a room avatar according to the following params :Also now we use a
StateFlow<RoomInfo>
, we always have a value, so we don't need to useAsyncData
forroomName
andavatarData
.Motivation and context
Continuation for #4809
Figma
Screenshots / GIFs
See recorded screenshots.
Tests
Tested devices
Checklist