Skip to content
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

User profile screen UX/UI redesign #890

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

roihershberg
Copy link
Collaborator

@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
Collaborator 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
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?

core/src/main/kotlin/db/UserDao.kt Show resolved Hide resolved
.editorconfig Outdated Show resolved Hide resolved
atox/build.gradle.kts Outdated Show resolved Hide resolved
atox/src/main/res/layout/fragment_edit_user_profile.xml Outdated Show resolved Hide resolved
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.

None yet

2 participants