-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Block-Editor: reorder Jetpack and CoBlocks categories #37057
Conversation
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
Yeah, I think you should exclude self-hosted Jetpack sites; I don't think it's in the spirit of Gutenberg to re-organize categories for self-hosted sites but totes fine for WordPress.com which is a more curated experience. In Jetpack we have site type utils — would that be helpful here too? |
I would want Reusable blocks above the branding too, but that's pure bike-shedding. |
It's not part of the category listing. I'd probably need to make a core PR |
That can get pretty complicated since it gets loaded async when you first time open the block picker. :-/ |
I'm considering if we should just sort out the two common bundles for Simple/Atomic vs Jetpack first #34476 or have a temporary check/feature flag. We already do have a window object that should be able to tell the difference between environments but it's something definitely to be tidied. 🤔 I'll probably go with a simple check and we can see about sorting out bundles as part of upcoming sprints. I wouldn't want to keep it in this state for long. |
Thanks, Edit: 🤔 this might be tricky. I guess folks are downloading latest based on this issue Automattic/jetpack#12397 |
I'd looove to get those moved to
+1, sounds like a plan! |
This one is ready for another round of 👀. I've added some temporary checks so this only runs for Simple and Atomic. D34488-code has been rebuilt with https://circleci.com/gh/Automattic/wp-calypso/475666 |
Desktop failures here are unrelated as this change doesn't touch any Calypso app bundles |
Confirmed behaviour across all three platforms 👍 |
Thanks for the reviews @kwight @simison! I'll land this next week unless folks had any other requests for behavior/feedback. cc @apeatling if the category listing seems okay |
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.
Ordering looks good 👍
Changes proposed in this Pull Request
Part of #35876 this moves Jetpack and CoBlocks categories below other categories.
Note that the
core/blocks
store uses the array order of whatever we dispatched viasetCategories
, so doing things like changing a block's category slug name or translated title currently do not affect ordering.Questions / Notes
domReady
a decent event for waiting for all blocks/columns registration to settle? If there's something more appropriate, I can update.Testing instructions