-
Notifications
You must be signed in to change notification settings - Fork 29
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
fix: refactor navigation on User Profile Screen and fix avatar upload bugs [AR-1204][AR-1210][AR-1211] #427
Conversation
…to fix/improve_navigation # Conflicts: # app/src/main/kotlin/com/wire/android/ui/userprofile/UserProfileViewModel.kt
…to fix/improve_navigation
app/src/main/kotlin/com/wire/android/ui/common/UserProfileAvatar.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/wire/android/ui/userprofile/SelfUserProfileState.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/wire/android/ui/userprofile/image/AvatarPickerViewModel.kt
Outdated
Show resolved
Hide resolved
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.
Awesome work! 👏 a pain in the a$$ working the FileProvider, but now it's working.
Just a small task before merging, taking care of this detekt issues, just a suppress will do it:
https://github.com/wireapp/wire-android-reloaded/runs/5482156311?check_suite_focus=true
exceptions - 40min debt
TooGenericExceptionCaught - [e] at /home/runner/work/wire-android-reloaded/wire-android-reloaded/app/src/main/kotlin/com/wire/android/ui/userprofile/UserProfileViewModel.kt:95:18
TooGenericExceptionCaught - [e] at /home/runner/work/wire-android-reloaded/wire-android-reloaded/app/src/main/kotlin/com/wire/android/ui/userprofile/image/AvatarPickerViewModel.kt:49:18
style - 10min debt
MagicNumber - [toByteArray] at /home/runner/work/wire-android-reloaded/wire-android-reloaded/app/src/main/kotlin/com/wire/android/util/FileUtil.kt:33:84
app/src/main/kotlin/com/wire/android/ui/userprofile/UserProfileViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/wire/android/ui/userprofile/image/AvatarPickerViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/wire/android/ui/userprofile/UserProfileViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/wire/android/navigation/NavigationItem.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/wire/android/ui/common/UserProfileAvatar.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/wire/android/ui/userprofile/UserProfileViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/wire/android/ui/userprofile/UserProfileViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/wire/android/ui/userprofile/image/AvatarPicker.kt
Show resolved
Hide resolved
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.
…to fix/improve_navigation # Conflicts: # app/src/main/kotlin/com/wire/android/navigation/NavigationGraph.kt # app/src/main/kotlin/com/wire/android/navigation/NavigationItem.kt
app/src/main/kotlin/com/wire/android/ui/userprofile/UserProfileViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/wire/android/ui/userprofile/UserProfileViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/wire/android/ui/userprofile/UserProfileViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/wire/android/ui/userprofile/image/AvatarPickerViewModel.kt
Show resolved
Hide resolved
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.
Just added a small comment on naming use cases, but other than that looks solid 🪨 🚀
app/src/main/kotlin/com/wire/android/ui/userprofile/UserProfileViewModel.kt
Outdated
Show resolved
Hide resolved
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.
small comments but looks good to me ! goob job 👍 🥇
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.
well done 🍰
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.
even better 💪
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
UserProfileScreen
and theAvatarPickerScreen
was made via theUserProfileViewModel
instead of using its own View Model.UserProfileScreen
. Also, the Camera option, was taking pictures on preview mode, hence pixelating the image too much.Solutions
AvatarPickerViewModel
to deal with the avatar picker logic.AvatarPickerViewModel
.GetPublicAssetUseCase
) and persisted to memory once a new picture has been chosen/taken (via theUploadUserAvatarUseCase
) on the corresponding View Models.Attachments (Optional)
Grabacion.de.pantalla.2022-03-09.a.las.12.48.00.mov
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.