-
Notifications
You must be signed in to change notification settings - Fork 384
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
Fix setting animation order. #2906
Conversation
Was testing with deprecations and there's an issue with it -- we're making the changes in filters and not in the @swissspidy Do you have any thoughts here? If not then I'll also ask in core-editor as well to see if that's something that has been considered. Saw this deprecation-related issue: WordPress/gutenberg#7604 |
Might have found an option: We could assign an extra attribute to the deprecated block, e.g. Nor sure exactly yet how the migration would work in this case, will have to test. |
@swissspidy Would have time for a quick sanity check for the deprecations before I continue? |
Try: Move wrapBlockInGridLayer filter to PHP
…to fix/2880-animations
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.
So far animations and deprecations seem to work well. But let's test this a bit more extensively. I'd want at least one other approval here.
@kienstra When you have time, would you mind testing/reviewing again? It has had some changes meanwhile (such as moving one of the filters to PHP), would be good to test again. A quick way how to add some blocks for testing is using templates, too. |
Sure, sorry for the delay. I'm testing this now. |
Approved Hi @miina,
I added animations to most of the blocks. The Custom HTML block didn't have the same content when reloading the page on the Though this is an improvement, as it didn't have a validation error. Before, even when only using the When adding the Custom HTML block on the
...and on reloading the page with the
Like we talked about, and you captured in #2923, the problem with this block was present in the |
That's an expected change in the content due to moving the filter. Since HTML block was not working before anyway then it shouldn't be an issue either. |
There is some Travis issue happening with one Job right now (have restarted it a few times already but times out), once that gets sorted, let's merge the PR. I will ask Claudio to prepare a Story which can be used for testing after this gets deployed. Does that sound OK to you, @swissspidy? |
What's the Travis issue? A failing test or something else?
Sounds good to me. Make sure the story is a bit more complex and uses at least one custom HTML block, uses animations, etc. |
One e2e Tavis Job wasn't able to set up the environment for testing. Looks like it's finally running now 👍 |
Fixes #2880.
Closes #2886
Fixes #2923.
Todo:
ampAnimationAfter
.wrapBlocksInGridLayer
filter to PHP to avoid similar issues in the future.