Skip to content

User profile screen UX/UI redesign#890

Draft
roihershberg wants to merge 15 commits intoevilcorpltd:masterfrom
roihershberg:master
Draft

User profile screen UX/UI redesign#890
roihershberg wants to merge 15 commits intoevilcorpltd:masterfrom
roihershberg:master

Conversation

@roihershberg
Copy link
Copy Markdown
Contributor

@roihershberg roihershberg commented Dec 17, 2021

Redesigned the UX/UI of the user profile screen.

Added AvatarMaker class for handling both contact avatar and user avatar making.
Added avatarUri to User class for future image support.
Redesigned the profile view screen and cleaned up some related code.
The edit profile view is to be implemented.
Added an edit profile screen for editing the user profile. The screen has a dropdown for changing the status and a nice dialog for changing the name and the status message.
Also a lot of related code clean up.
@roihershberg
Copy link
Copy Markdown
Contributor Author

This is my first code in Kotlin and I also have very little experience in Android apps development.
Suggestions and corrections are always welcome.

@roihershberg roihershberg changed the title UX/UI Redesign + Additional features User profile screen UX/UI redesign Dec 17, 2021
Copy link
Copy Markdown
Collaborator

@robinlinden robinlinden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't gone over the PR in detail yet since it's very big (this one PR has a diff of >10% of the current aTox codebase), and I can't run it without messing with my profile due to the database changes.

Do you think there's any parts of this we can extract to separate PRs?
The AvatarMaker and some of the unrelated cleanup maybe?

Comment thread core/src/main/kotlin/db/UserDao.kt
Comment thread atox/src/main/kotlin/ui/user_profile/UserProfileFragment.kt
Comment thread .editorconfig Outdated
Comment thread atox/build.gradle.kts
Comment thread atox/src/main/res/layout/fragment_edit_user_profile.xml Outdated
Added migration for avatarUri field in Users table and also fixed the update method for that field in the UserDao.
Cleaned the code regarding the back icon in the toolbar and methods of getting color.
@robinlinden robinlinden marked this pull request as draft December 28, 2021 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants