-
Notifications
You must be signed in to change notification settings - Fork 109
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
[Nav Drawer] Move user profile and sign out link into popup #2397 #2434
Conversation
* Initial Commit * Working - 1 * Small change * Updated Code based on the requirements * Removed Signout from NavDrawer * Modified code to retrieve user details using authentication manager
Looks good! Please resolve conflicts and mark as "ready for review" once ready! |
Thanks for working on this @NudurupatiSurya. Excited to get this merged too! 🎉 🎉 🎉 After comparing your screen recording with the mocks, I can see that there are a couple of more UI changes needed:
|
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.
Added comments above.
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.
Apologies for late feedback.. one small refactor, otherwise LG!
ground/src/main/java/com/google/android/ground/ui/home/SignOutConfirmationDialog.kt
Outdated
Show resolved
Hide resolved
ground/src/main/java/com/google/android/ground/ui/home/SignOutConfirmationDialog.kt
Show resolved
Hide resolved
ground/src/main/java/com/google/android/ground/ui/home/UserDetailsDialog.kt
Outdated
Show resolved
Hide resolved
ground/src/main/java/com/google/android/ground/ui/home/UserDetailsDialog.kt
Outdated
Show resolved
Hide resolved
ground/src/main/java/com/google/android/ground/ui/home/UserDetailsDialog.kt
Outdated
Show resolved
Hide resolved
ground/src/main/java/com/google/android/ground/ui/home/UserDetailsDialog.kt
Outdated
Show resolved
Hide resolved
ground/src/main/java/com/google/android/ground/ui/home/UserDetailsDialog.kt
Outdated
Show resolved
Hide resolved
Running tests now, I'll paste in results so you can include in your next iteration. /gcbrun |
Hello @shobhitagarwal1612, As you suggested, I have updated the navigation header to display the app logo and name, with the profile photo positioned on the right. This is how it looks now: However, I'm unsure about the style of the text for "Ground" and the spacing between the profile photo and the edge of the header. Could you please provide details if available? I am also working on anchoring the user dialog to the navigation header and will convert the PR to ready for review once this is completed. Also, please let me know if you find anything that is missing. Thank you, CC: @gino-m |
Thanks you, @NudurupatiSurya!
@rawbzz, could you please advise? |
Hello @gino-m, Thank you for your feedback! I've updated the font size from Sorry for the delay in my response, I was tied up with finals week at my college. I've moved the PR from draft to ready for review. Please have a look and let me know if further adjustments are needed. Looking forward to potentially merging my first PR 😊 Best regards, |
Can you please update the screen recording in the PR description as well? |
Updated the description |
/gcbrun |
ground/src/main/java/com/google/android/ground/ui/home/HomeScreenFragment.kt
Outdated
Show resolved
Hide resolved
ground/src/main/java/com/google/android/ground/ui/home/HomeScreenFragment.kt
Outdated
Show resolved
Hide resolved
ground/src/main/java/com/google/android/ground/ui/home/HomeScreenViewModel.kt
Outdated
Show resolved
Hide resolved
Also pasting the output of GCB here:
You can fix this locally by running the gradle command |
Hello @shobhitagarwal1612, Thank you for the feedback. I have made the changes you suggested and updated the screen recording in the description. Please review and let me know if any further modifications are needed. Regards, CC: @gino-m |
/gcbrun |
The remote build is still failing. Can you please run |
I ran |
/gcbrun |
@gino-m PTAL |
/gcbrun |
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.
@NudurupatiSurya Nicely done! 🏅
Thank You @gino-m! |
Fixes #2397
AuthenticationManager
Updated Demo:
Screen_recording_20240520_164103.mp4