-
Notifications
You must be signed in to change notification settings - Fork 4.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
Site Editor: Unify layout with posts dataviews #67162
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. |
|
||
export default function LayoutWithGlobalStylesProvider( props ) { | ||
return ( | ||
<GlobalStylesProvider> |
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 love if we can get rid of "GlobalStylesProvider" at some point. It feels like something that should be absorbed into core-data
at some point.
Size Change: -2 B (0%) Total Size: 1.82 MB
ℹ️ View Unchanged
|
@@ -50,14 +44,9 @@ export default function App() { | |||
} | |||
|
|||
return ( | |||
<SlotFillProvider> |
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.
Is the removal of SlotFillProvider
here intentional?
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.
Yes, If I'm not wrong it's not really needed at the top level because of a refactor that I did to Slot/Fill at some point where slots will just get inserted under body anyway.
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 where we add it. Do you mean here?
In edit-post we still have this top level.
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.
In edit-post we still have this top level.
Maybe it's not needed there as well. What issues does it create to drop it?
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 didn't observe any, but wanted to understand it better.
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.
Yes, since that PR you shared, the slot is optional now, Unless I'm missing something, I don't see this having any impact. the "posts dataviews" didn't have that wrapper.
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.
Could this removal be the cause to this issue? #67538
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.
Actually I restored it before merging but I'll take a look at that regression tomorrow.
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.
Confirming the issue: #67538 (comment)
Co-authored-by: youknowriad <[email protected]> Co-authored-by: ntsekouras <[email protected]>
Co-authored-by: youknowriad <[email protected]> Co-authored-by: ntsekouras <[email protected]>
Related #67160
What?
Just some small refactoring to avoid duplicating code between the site editor and the experimental posts dataviews page.
Testing Instructions
No real functional changes here.