-
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
Unified Dashboard: Remove tabs and update quick links layout #19151
Unified Dashboard: Remove tabs and update quick links layout #19151
Conversation
- Update layout to rows in a card
- Add More item
- Update navigation to handle More item on quick links
- Remove tabs - Remove ViewPager - Add RecyclerView for MySiteItems
Update MySiteItems on MySiteFragment, that was previously in MySiteTabFragment
- Create MySite Menu activity - Reuse existing MySiteTabFragment
Update MySiteTabFragment for reuse for More navigation to Menu
- Fix Detekt reported issues
📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
|
remove unused import
📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
|
@pachlava - FYI, Making changes to dashboard in the PR. Need your help in looking into UI tests. 🙇 |
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 took the build and smoke tested the app. Below are my findings
- We need to remove the Initial screen setting and set the default value to Dashboard, otherwise the Quick start card would show up in the menu screen. Any quick start task that has a quick start focus - for eg: Connect with Other sites in the dashboard will crash on click
quick_start_settings.webm
- Also I feel that we should remove the Jetpack migration card on menu(In the Jetpack App). We are already showing it in Dashboard, I think its irrelevant to show in menu 🤔
@ravishanker hey thanks for pulling this together. It feels good on the whole. I've put together some specs to tighten things up. First are some header tweaks we can make to align nicer with the cards (see the alignments in blue lines)
In the new list itself, some other minor visual changes:
ellipsis icon:
Referencing @AjeshRPai questions above:
|
Thanks for the ping @ravishanker 👋 The reason why two dashboard cards UI tests fail is because Espresso can't scroll to cards in current PR:
While I'm not entirely sure that this is the exact reason, I can see that top With my limited knowledge around this topic, I tried playing around locally with adding Because of this, I made no commits, but what I described above is at least one way to solve it, if done properly (which you have much higher chances to do than me). Please let me know if you need any more help 🙂 |
…ck-links-layout # Conflicts: # WordPress/src/main/java/org/wordpress/android/ui/prefs/AppSettingsFragment.java
Hey @osullivanchris
I have fixed this by making the font weight to normal and udpating the font color
Fixed this issue with commit 85ac64b
Done 👍🏼
I am not sure what we can do right now for fixing this TBH, I considered renaming the more to menu if there are no other quick links but that would add complexity to quick start snackbar messaging and all. As you said, if the user decides to go with no items or with all items I think we should let it be. |
Thanks @AjeshRPai. Not at my machine or android phone now to install the build but looks good from the screenshots. No problem about the case with all shortcuts removed. Re; the menu. The text looks better but still want to double check what is the padding between icon and text? Looks tight |
The padding now is 12 dp, earlier it was 8. I tried changing it to 16, felt its too much. I can make it to 16 dp if you think thats better. |
I think go with 16 and then it's all good 👍🏻 |
…ck-links-layout # Conflicts: # WordPress/src/main/java/org/wordpress/android/ui/mysite/MySiteFragment.kt # WordPress/src/main/java/org/wordpress/android/ui/mysite/MySiteViewModel.kt # WordPress/src/test/java/org/wordpress/android/ui/mysite/MySiteViewModelTest.kt
@AjeshRPai - Please merge this first. Fix any issues in subsequent PRs. Longer it waits, more conflicts, and merge issues it may face. 👍 |
Part of #19270
Fixes #. See pbArwn-6dL-p2#comment-7813
Description
This PR updates the following based on above
📔 No changes to WP app dashboard
Jetpack app - Before and After
Personalization screen for QuickLinks
Known issues
To test:
Jetpack app
Dashboard is working as expected
Verify
the Home now looks as in third screen shot aboveTap
on Quick links and verify that it is working as expectedMe
→App Settings
→Privacy Settings
→Enable Collect Information
Verify
that the tracking for quick link is working as expectedMore menu is working as expected
Tap
on ... MoreVerify
it goes to My Site menu as in fourth screen shot aboveTap
on each of the menu items andVerify
they all work as beforeVerify
that the tracking for quick link is working as expectedTest
Quick Start flowVerify
that the app goes through the flow as beforePersonalization screen is working as expected
Tap
on Personalize your home tabShortcuts
tabSignup flow
WordPress app
Verify
it only shows menu on My Site as beforeRegression Notes
Potential unintended areas of impact
Home
What I did to test those areas of impact (or what existing automated tests I relied on)
Existing unit tests
What automated tests I added (or what prevented me from doing so)
Updated existing tests
PR submission checklist:
RELEASE-NOTES.txt
if necessary.UI Changes testing checklist: