-
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 panel visibility state from the edit-post to the editor package #57012
Conversation
Size Change: +207 B (0%) Total Size: 1.71 MB
ℹ️ View Unchanged
|
Flaky tests detected in 79e78da. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7202074901
|
5053455
to
79e78da
Compare
@@ -879,6 +879,45 @@ _Returns_ | |||
|
|||
- `boolean`: Whether the post can be saved. | |||
|
|||
### isEditorPanelEnabled |
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.
Would be great if it explained a bit more what this editor panel is.
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.
it's just the panels that shows up in the sidebar of the editor: things like "post categories", "post featured image"...
Related #52632
What?
This PR continues the work on the great unification between post and site editors. The edit-post package holds some state (actions and selectors) that are used to persist the state of the panels (opened, closed, enabled...). In order to use these panels in the site editor as well, we need to unify that state as well by moving it to the editor package. This PR does that.
Testing instructions