-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Site design revamp] Remove thumbnail mode selector #16414
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
[Site design revamp] Remove thumbnail mode selector #16414
Conversation
This isn't needed for this task, but is useful to satisfy the IDE :)
Since we are removing some parts of an implementation that shares a base class with the page picker, there will be some changes needed to adapt these for the new flow. The intent with these comments is to serve as a place-holder denoting some things that need to be rewired.
|
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
WordPress/src/main/java/org/wordpress/android/ui/sitecreation/theme/HomePagePickerFragment.kt
Show resolved
Hide resolved
…tor' into feature/site-design-revamp--remove-bottom-toolbar
|
You can test the changes on this Pull Request by downloading the APKs: |
ovitrif
left a comment
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.
Everything worked as expected in my tests 🎉
Thank you @mkevins for your work, it lgtm and the only thing we may have to do before merging this is to remove the hpp_subtitle string resource.
WordPress/src/main/java/org/wordpress/android/ui/mlp/ModalLayoutPickerFragment.kt
Show resolved
Hide resolved
WordPress/src/main/java/org/wordpress/android/ui/sitecreation/theme/HomePagePickerFragment.kt
Show resolved
Hide resolved
WordPress/src/main/java/org/wordpress/android/ui/sitecreation/theme/HomePagePickerFragment.kt
Show resolved
Hide resolved
|
👋 I've created some testing steps in the WPiOS equivalent of this PR that may be handy for Android. |
…d-string-res [Site design revamp] Remove unused string resource hpp_subtitle
…tor' into feature/site-design-revamp--remove-bottom-toolbar
ovitrif
left a comment
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.
I've tested the updates on a phone and tablet emulator with the testing steps and it works as expected.
One small issue I noticed which I'm not sure it's desired is that there is no title for the screen on tablet:
This seems to be an issue on all the new screens we added recently:
| Site Intent Question | Site Name |
|---|---|
![]() |
![]() |
Because of this I created a ticket on our internal backlog to fix the issue for every screen.
WordPress/src/main/java/org/wordpress/android/ui/layoutpicker/LayoutListItemUiState.kt
Show resolved
Hide resolved
…evamp--remove-bottom-toolbar [Site design revamp] Remove bottom toolbar
|
Feels ready to be merged, I'll do that after the CI checks pass. 🚀 🚀 🚀 |
|
Android Lint failed because there was another resource left unused that we missed to remove. I pushed the change to this PR since it's trivial and it's avoidable overhead to actually create a PR just for this. Will merge it if the checks are green this time 🤞 |



This PR addresses parts A, B, and C of #16392
Primarily, this PR removes the thumbnail viewport mode selector in the site design screen. Additionally, since the changes are fairly trivial, this also removes the screen's subtitle text and changes the wording of the title.
Note: We may want to also consider updating this test:
WordPress-Android/WordPress/src/test/java/org/wordpress/android/ui/sitecreation/theme/HomePagePickerViewModelTest.kt
Lines 224 to 229 in d3c84c4
if we decide to default to
PreviewMode.MOBILEeven for tablets, since on the main screen we will no longer have a way to change them. Also, it should be considered whether or not we want the thumbnail preview modes to change when the user comes back from the preview, since this could be confusing with no way to change the mode on that screen. 🤔To test:
Theme (Site Design) Picker
Expectations:
PreviewModeselector should be gonePage Picker
Expectations:
PreviewModeselector should still be present (and working as usual)Regression Notes
Potential unintended areas of impact
Modal layout picker (for page creation).
What I did to test those areas of impact (or what existing automated tests I relied on)
Manually tested this to ensure that there are no regressions. Also, there are automated unit tests for the underlying view model.
What automated tests I added (or what prevented me from doing so)
The view models for the shared implementations have unit tests, but I've added a note to consider changing an existing view model test, pending further decisions on the desired UX.
PR submission checklist:
RELEASE-NOTES.txtif necessary.