Skip to content
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

Move the setupJetpackEditor() call order #2766

Merged

Conversation

mzorz
Copy link
Contributor

@mzorz mzorz commented Oct 30, 2020

This PR moves the order in which the jetpack blocks get registered from 'native.pre-render' action to 'native.render' action, with the aim of having the jetpack blocks listed last in the block picker as per default (and let core blocks be first with the default order at first). Note the order in which they appear may be subject to change later on a per user basis, depending on the frecency calculations when getting items from the store to the inserter.

Before
See the jetpack blocks (Contact info, Story) appear first
blockorderBefore

After
See the jetpack blocks (Contact info, Story) appear last
blockorderNow

@mzorz mzorz requested review from etoledom and jd-alexander and removed request for hypest October 30, 2020 15:25
@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Oct 30, 2020

Wanna run full suite of Android and iOS UI tests? Click here and 'Approve' CI job!

Copy link
Contributor

@etoledom etoledom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working great as expected! 🎉

@mzorz mzorz merged commit 87cbeb8 into try/jetpack-stories-block Nov 4, 2020
@mzorz mzorz deleted the try/jetpack-blocks-register-on-render branch November 4, 2020 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Jetpack Bug or feature related to Jetpack Story block
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants