-
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 sidebar: add footer to template part and ensure nested template areas display #51669
Site editor sidebar: add footer to template part and ensure nested template areas display #51669
Conversation
- performs `lastModifiedDateTime` check in the generic footer - adds a last modified footer to template parts - ensures we know which default template part areas a template is using, even if those template areas are nested
logs of change
Size Change: -40 B (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
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.
Thanks for the quick follow-up! The fixes here are testing well for me, but I noticed a spacing issues with the details area on the Pages screen. I've added a comment on the previous PR over in https://github.com/WordPress/gutenberg/pull/51223/files#r1234679009, but I was wondering if we can fix up the spacing here in this PR, too? Looks like it might be a matter of passing down spacing={ 5 }
where we need it?
From a quick look, it might just need to be added on this line:
gutenberg/packages/edit-site/src/components/sidebar-navigation-screen-page/page-details.js
Line 142 in 7efbf84
<SidebarNavigationScreenDetailsPanel title={ __( 'Details' ) }> |
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.
A pre-emptive LGTM once the spacing is fixed up, since it looks like it should hopefully be a one-liner. The other changes are good! ✨
Done in 1594b4f. Thanks for picking that up. I'd prepared the prop in the new component but forgot to reinstate it in PageDetails. 😵💫 |
No worries, easy to miss when refactoring things! 🙂 |
Flaky tests detected in 1594b4f. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5318100138
|
…mplate areas display (WordPress#51669) * This commit: - performs `lastModifiedDateTime` check in the generic footer - adds a last modified footer to template parts - ensures we know which default template part areas a template is using, even if those template areas are nested * cha cha chaaaaaaange logs of change * Adding spacing to page details
What?
This commit is a follow up to:
lastModifiedDateTime
check in the generic footerKudos to @andrewserong for raising most of the points that this PR addresses.
Why?
SidebarNavigationScreenDetailsFooter
is a generic component and therefore should handle internally whether is constituent parts are renderedTesting Instructions
Screenshots or screencast
See last updated footer in templates and template parts
See the template's template areas