-
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
Editor: Move the sidebar component to the editor package #61497
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: -136 B (-0.01%) Total Size: 1.74 MB
ℹ️ View Unchanged
|
document: 'edit-post/document', | ||
block: 'edit-post/block', |
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.
Are we keeping the old namespace for now? Let's note that we should update these when sidebar-related store actions are also unified.
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.
We can't change these for BC reasons unfortunately. We discussed this with @fabiankaegy in a previous PR and this was the best tradeoff
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.
I couldn't spot any regression.
The editor sidebar has good e2e test coverage, so it should be a good merge after all CI checks are green.
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.
I couldn't find any regressions.
The classnames changed; plugins that used to target the sidebar with their CSS have now regressed. |
Hey @sybrew, sorry for the breakage. Classnames and dom elements are not considered public APIs per our guidelines https://developer.wordpress.org/block-editor/contributors/code/backward-compatibility/#class-names-and-dom-updates That said, if we can ensure things don't break as we iterate on the UI, we're happy to do so. Can you share which classnames are you thinking about? Do you mind opening an issue with all the details. |
It's OK. I've detailed it here: sybrew/the-seo-framework@5ee3395. We are continuing to rely on the meta box API until I find an opportunity to improve upon that, so I am not directly interacting with React. The meta box implementation is still quite ugly, so now that I got your attention, please consider implementing this UI fix. |
Related #52632
What?
We're in a middle of an effort to merge the post and site editors under the @wordpress/editor abstraction. As part of this, this PR moves the Sidebar component from the edit-post to the editor package.
The idea is that on a follow-up PR, I'll be removing the sidebar that is implemented in the edit-site package and just replace it with the one that is on the editor package (for both editors). I preferred to do this in two steps to avoid a huge PR.
Testing Instructions
Please test the sidebar (block and document) of the post editor. There should be no change compared to trunk.