-
Notifications
You must be signed in to change notification settings - Fork 238
Iterate on avatar to be able to render Space avatar. #4921
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
📱 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.
This is quite nice, I really like the new structure, congrats! I have a couple of suggestions, but LGTM!
avatarData: AvatarData, | ||
avatarType: AvatarType.Space, | ||
modifier: Modifier = Modifier, | ||
isTombstoned: Boolean = false, |
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.
Can we add the isTombstoned
property to the AvatarType.Space
too? This way it's consistent with AvatarType.Room
.
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.
Ah yes true, good catch! 59aec12
import androidx.compose.ui.graphics.Shape | ||
|
||
@Composable | ||
fun avatarShape( |
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 this could be AvatarType.avatarShape()
instead? That way it won't appear by default in the method autocompletion.
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.
Better, thanks! 2bcffe8
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #4921 +/- ##
=========================================
Coverage 80.29% 80.30%
=========================================
Files 2156 2161 +5
Lines 57379 57484 +105
Branches 7225 7237 +12
=========================================
+ Hits 46074 46162 +88
- Misses 8857 8871 +14
- Partials 2448 2451 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Content
Introduce
AvatarType
sealed interface to be able to render Avatar depending on specific parameters for room and space.RoomAvatar still exists but is now internal to the UI module.
Also set avatar type to room where is was missing.
Motivation and context
Be able to render Space avatar.
UI iteration for space avatar may happen later.
Screenshots / GIFs
See recorded one, there should be no change on the existing code.
Tests
Tested devices
Checklist