[Modal Layout Picker] Filter layouts based on supported blocks#13018
[Modal Layout Picker] Filter layouts based on supported blocks#13018
Conversation
|
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
|
You can test the changes on this Pull Request by downloading the APK here. |
…dBlocks # Conflicts: # WordPress/src/test/java/org/wordpress/android/viewmodel/mlp/ModalLayoutPickerViewModelTest.kt
There was a problem hiding this comment.
Thanks @antonis! I've left some minor comments. The app works as described. However, I found some issues which are probably not related to this PR.
Layouts are not cached
- Click on "Create Page"
- Wait for the layouts to load
- Click on back
- Turn on airplane mode
- Click on "Create Page"
- Notice the layouts are empty
Create blank page doesn't work in offline
- Turn on airplane mode
- Click on "Create Page"
- Click on "Create blank page"
- Notice nothing happens
WordPress/src/main/java/org/wordpress/android/ui/pages/PagesFragment.kt
Outdated
Show resolved
Hide resolved
WordPress/src/main/java/org/wordpress/android/ui/mlp/SupportedBlocks.kt
Outdated
Show resolved
Hide resolved
|
Thanks again for taking the time to review this @malinajirka 👍
If that's ok, I'll try to cover both of the above with a next pr as part of this to keep this one more focused. I'll get back to you on your code comments with fixes ASAP 🙇♂️ |
Sure thing. As long as it's recorded somewhere I don't mind merging this PR :). |
Ok ;) ps. When this is approved let's keep it unmerged till #13017 and FluxC PRs are merge. |
…dBlocks # Conflicts: # build.gradle
# Conflicts: # build.gradle
Fixes: wordpress-mobile/gutenberg-mobile#2444
Related PRs:
Description
This PR fetches adds supported blocks parameter in fetch block layouts call both for WPCom and self hosted site
To test:
Layout Picker should show when creating a new page from My Site or Site Pages the Modal Layout Picker appears.
WPCom Site
Self-Hosted Site
PR submission checklist:
RELEASE-NOTES.txtif necessary.