-
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
Wire-up the revert from history ability #8768
Conversation
👋 @marecar3 , I wonder, why is building from source needed? Have you encountered some problem with the binary build? |
I tried using the
I think I'd expect the post to not be marked as such. WDYT? |
# Conflicts: # libs/gutenberg-mobile
I've tried the same as @hypest, apparently it tries to update the remote version (the Post uploader is triggered), when it should remain the same. In my case I used this: Steps to repro:
NOTE: If you set airplane mode ON before step 14, the post is then marked with |
We confirmed with @marecar3 that these situations (#8768 (comment) and #8768 (comment)) are happening with Aztec alone as well, so they are not related to this specific PR. |
I'd suggest tackling what happens with the Undo/Redo buttons in a separate PR so we can merge this one that implements the revert from history. |
Agreed, that's being tackled by this other PR #8773. This one is LGTM from my side - will approve shortly. |
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.
LGTM!
👋 @marecar3 , it seems that this PR got merged without first updating the submodule hash to point to the gutenberg-mobile master after the dependent PR got merged. Can you open a new PR to point to master? Thanks! |
Fixes part of wordpress-mobile/gutenberg-mobile#182
This change adds History option to the Gutenberg editor. The behavior is same as Aztec, when an older revision is selected among the old revision list the editor content is updated with that revision. After that we need to tap Update button if we want to publish the new content, we can still discard the content by tapping "Discard Local changes" or from Toolbar with
Undo
andRedo
buttons.It's tested against a corresponding gutenberg-mobile PR
Test :
Add
wp.BUILD_GUTENBERG_FROM_SOURCE = true
in gradle.properties