-
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
Editor: Update and simplify the Post Summary and Post Card section in the document sidebar #61624
Conversation
… the document sidebar
Size Change: -263 B (-0.02%) Total Size: 1.74 MB
ℹ️ View Unchanged
|
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. |
className="editor-post-card-panel__description" | ||
spacing={ 2 } | ||
> | ||
<PrivatePostExcerptPanel /> |
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're are we rendering this element?
This change is causing remaining e2e test failure.
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're rendering it but in a consistent place (it was rendered in two different places for different post types)
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.
Can you link where? Sorry if I'm missing the obvious logic change, but keeping up with all the unify/redesign changes for the sidebar is a bit tricky.
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
import { PrivatePostExcerptPanel as PostExcerptPanel } from '../post-excerpt/panel'; |
<PostExcerptPanel /> |
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.
Sorry for the confusion. This works as expected.
P.S. We need to add some doc block comments for PrivatePostExpectPanel
and PostExpectPanel
to make them easily distinguishable without needing to read the logic.
cc @ntsekouras
It looks like the gap between the word count and the meta rows below shrunk a little – it should be 24px. Otherwise this looks good! |
yes, because I tried using a consistent spacing between the "big" elements of the panel. Having something specific just for that space seemed weird to me. |
I tried to find a middle ground between increasing the space between "meta rows" and "word count" while keeping the gap consistent between the different "sections" of the summary panel. |
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.
The e2e tests should be fixed now ✅
The changes test well for me, and couldn't spot any regressions.
@Mamaduka Thanks for all the e2e fixes :) |
Related to #59689
What?
This PR iterates towards the designs shared in #59689
It's not meant to solve everything yet but it does a few things that moves us in the right direction:
Testing Instructions
Open the post or site editor for the following post types:
Ensure the summary looks correct and is consistent.
Screenshots or screencast