-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Move me to bottom nav #18606
Move me to bottom nav #18606
Conversation
📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
|
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.
Sharing per slack the reasons I think this is a good move:
- the iA is more 'correct'. Today, 'Me' is inside My Site, which is the opposite of the actual parent/child structure
- its more consistent with WordPress.com where the top bar has My Sites, Reader, Me, Notifications
- When we merged Me into My Site years ago, My Site was just a menu. Now My Site is more complicated and we have several rows of navigations/information at the top
- We're using a lot of vertical space for only one icon
- Removing that vertical space aligns the header information on My Site, Reader, Notifications more consistently
Here are a couple of improvements I think we could make. Wouldn't have to do all immediately and some are separate issues. The padding bug is a must fix of course. Then, I think changing the layout of the profile photo and name on 'Me' to match the My Site header would be a big improvement, if I was to pick one change.
Moved Me avatar to Bottom Nav
- Reduce blavatar size from 64 to 40 - Reduce chevron size from 24 to 16
- Update to new header layout similar to My Site - Removed CHANGE PHOTO cta - Updated paddings and margins - clean up
Adjust app_bar_with_site_info_tabs_height from 200 dp to 136dp since Me is removed now
- increase the Site icon on My Site to 56dp - Increase Me icon size to 56dp, and align row icons to Center of Me icon on Me screen
👋 @ovitrif - I've added you as a reviewer since you're also doing some work in this area. 🙇 |
👋 @pachlava - I've added you as this might fail instrumented tests, any other automation stuff. 🙇 |
Hey @ravishanker 👋🏼 Awesome job on moving me to the bottom nav 🙌🏼 . Sorry for jumping in, but I was doing some changes in the dashboard and noticed this PR. FYI - On jetpack phase removal four, new users phase and self hosted users phase, we are removing this bottom nav entirely to prevent the access of reader and notifications. you might need to make some changes to show the bottom nav without a reader and notifications but only with me page and my site bottom nav in the above phases.
I also noticed the padding issue, but I am unsure if that's a WIP. If thats fixed, let me know so I can double-check. also, There is an issue int the enabling of phase 4 right now which we are trying to fix with #18612, TO reproduce the issue of the me tab not shown, you can try any of the below scenarios
Let me know if you need any help with the changes that need to be done or want more information on this. |
@AjeshRPai thanks for taking the time to look and highlighting the changes on the WordPress side. That wasn't front in my mind. I'm going to take a look at it. But I think the 'default' solution would be having a tab bar with 2 tabs as you described. Another approach would be to keep the old layout with 'me' in the My Site navigation bar only for WordPress, but that seems like more differences between the two apps to support and maintain than a tab bar with items which turn on and off... |
@AjeshRPai - Thanks for noticing, and flagging this early 🙇 I'll need to make some changes then in the light phase four. I'll add you as a reviewer as well to make sure it all works before and after. This can be done in two ways
|
This is a no-brainer for me, I like it, though as @AjeshRPai shared, there is some overlap with ongoing work to improve the daily development workflow, by optimising and making debug settings easily accessible regardless of logged in/out state. Then there's also the phase 4, which Chris is aware of. Thus carry on from my side 🙏🏻 , I'm not needed here since I ended up focusing on crashes and didn't do any Compose refactoring 😅 . |
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.
Hey @ravishanker
I tested the following scenarios
- migration from static posters phase to phase 4| self hosted users phase | new users phase 🟢
- Wordpress app
- Bottom nav is not shown on phase 4 and me item is shown in menu list 🟢
- if the user is on me fragment on static posters phase and the app goes to background, when the phase 4 is switched on user is navigated to my site dashboard without bottom nav. 🟢
- Jetpack app
- no ui changes when user migrates 🟢
- Wordpress app
- if me tab was the last opened tab, when a user opens the app again, me tab is shown 🟢
Minor issues
- In wordpress app (static posters phase) me option is show on the menu items as well on bottom nav - as per my understanding it should be shown either on menu items or on bottom nav, correct me if am wrong
- in both wp/jp app people icon is a dark circle/white circle
light mode | dark mode |
---|---|
Other than these minor issues, all looks good to me 👍🏼
cc: @zwarm
- for letting you about this change on dashboard, in case if you want to test for any regression issues
- also for letting you know that I have tested to make sure that there are no regression issues that we fixed for phase 4. mainly 👇🏼
} else { | ||
mFabTooltip.hide(); | ||
} | ||
|
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.
👏🏼 thanks for removing this tooltip, ICYMI you can close this issue once this PR is merged
cc: @thomashorta
Hey @ravishanker, it seems like we could save some vertical space in Landscape mode. |
🐛 When selecting meTab.mp4 |
Fix Me item showing on WP in both menu and on bottom nav during static posters phase
👋 @AjeshRPai - Thanks for testing for various phases. Fixed the those minor issues. Please review again. 🙇 |
👋 @tiagomar - This is happening on JP app only in landscape mode right? It is proving difficult fix this due to various feature flags and differences between WP/JP etc. Need to handle separately perhaps afterwards |
Me tab is reading the content description correctly. When on Me screen, it is reading the MySite description. Still investigating where that is coming from! |
👋 @pachlava - If you could please take a look at the failing instrumentation tests, if you're back from AFK . 🙇 |
Generated by 🚫 dangerJS |
I'm taking a look @ravishanker 👋 |
A 0db1912 of yours updates the flow to get to the Previously, this was done by pressing the back button, since the navbar was not available for Apparently, the only place where going back from |
Co-authored-by: Ravi <ravi.program@gmail.com> fixes the back button shown on me fragment in wordpress app in static posters phase
# Conflicts: # WordPress/src/main/java/org/wordpress/android/ui/main/MeFragment.kt
Hey @ravishanker The people icon and the me option in menu is fixed, but I found the same bug as @tiagomar reported here. the back button is visible on wordpress app in static posters phase. In an effort to merge this change before the code freeze on monday and also because your are AFK, I went ahead and fixed it with the commit 60fb503 @zwarm am adding you as a reviewer, once you have reviewed the changes i have done you can go ahead and merge it. 👍🏼 I have tested the jetpack app and wordpress app for all other scenarios, everything looks good to me. 🟢 @tiagomar if you can review it once again, it would be awesome 🙌🏼 |
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.
@AjeshRPai - I've verified the following
- The back button does not show in JP/WP when "me" is a tab
- The back button shows in WP when "me" is in the menu
👍
@ravishanker @osullivanchris - love this change. 🙇♀️
It was all good, @AjeshRPai! 👍
Yep, I've filed a ticket (#18698 ) for better tracking. |
Moves Me (avatar) to Bottom Navigation as a fourth tab after Notifications on JP app, and in menu under manage on WP app
Fixes # pcdRpT-2HW-p2#comment-4875, and this discussion p1686812471360099-slack-C04SFL0RP51
Jetpack app
WordPress app
To test:
Launch Jetpack app, and login
Verify that Me/Avatar doesn't appear at top right hand corner anymore
Verify that Me is in the bottom navigation, next to Notifications
Tap on Me tab
Verify that it goes to Me Screen as before
Launch WordPress app, and login
Verify that Me/Avatar doesn't appear at top right hand corner anymore
Verify that Me is in the menu, under manage category
Tap on Me row
Verify that it goes to Me Screen as before
To-do for later in a separate PR
Regression Notes
Potential unintended areas of impact
N/A
What I did to test those areas of impact (or what existing automated tests I relied on)
N/A
What automated tests I added (or what prevented me from doing so)
Existing tests
PR submission checklist:
RELEASE-NOTES.txt
if necessary.UI Changes testing checklist: