-
Notifications
You must be signed in to change notification settings - Fork 4.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
[Mobile] Removes Preview editor mode #29896
Conversation
Size Change: 0 B Total Size: 1.42 MB ℹ️ View Unchanged
|
243e8f8
to
3cc64c0
Compare
Leaving this in draft state till we test that nothing breaks on both platforms |
I think we can also remove these:
gutenberg/packages/react-native-bridge/ios/GutenbergBridgeDelegate.swift Lines 134 to 136 in 3cc64c0
|
3cc64c0
to
971694d
Compare
Hi Antonis! 👋 😄 I've reviewed and tested this, and everything is working as expected (I found no regressions). The code changes look good. I also began the same removal on the iOS side (WordPress-iOS) and explored a bit further. I think we can remove a few more things, since after removing the template preview event logging code, the only remaining part is the template apply. I investigated that, and I believe it is also ripe for removal. This also allows us to also remove the interface methods that are only in being utilized for this purpose, as well as a few switch cases. Since these changes are a bit larger, I decided not to push them directly, in case you had some thoughts about it, so instead I've opened some PRs with these respective PRs as a base (the WordPress-iOS PR is the only one I opened that targets |
Hey @mkevins 👋 Thank you for stepping forward and helping with the code cleanup 🙇
I reviewed and merged the PRs that targeted my branches. I also reviews the IOS PR and everything looks good 🎉 |
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.
This looks good to me 👍 Thanks for taking care of cleaning up the old interface
This should be merged after wordpress-mobile/gutenberg-mobile#2980 is complete on both platforms
Fixes wordpress-mobile/gutenberg-mobile#3217
gutenberg-mobile
PR: wordpress-mobile/gutenberg-mobile#3268WordPress-Android
PR: wordpress-mobile/WordPress-Android#14270WordPress-iOS
PR: wordpress-mobile/WordPress-iOS#16155Description
This PR removes the editor preview mode introduced for the layout picker preview functionality that is being replaced with a webview implementation.
The changes introduced with the following PRs should are reverted
Note that the refactoring introduced with #27640 has been considered
How has this been tested?
Quick sanity of the editor to validate that no functionality is unintentionally broken
You can use the build from wordpress-mobile/WordPress-Android#14270
Types of changes
Code cleanup
Checklist: