-
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
Template parts in patterns page: add author field #60372
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: +97 B (0%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
d504864
to
731f382
Compare
731f382
to
16b2a02
Compare
{ withIcon && imageUrl && ( | ||
<div | ||
className={ classnames( | ||
'page-templates-author-field__avatar', |
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.
This style rules are defined in packages/edit-site/src/components/page-templates-template-parts/style.scss
and is bundled as part of edit site stylesheet. It's the same as the existing Preview field below (page-templates-preview-field
, etc.).
@@ -201,6 +209,39 @@ function Preview( { item, categoryId, viewType } ) { | |||
); | |||
} | |||
|
|||
function Author( { item, viewType } ) { |
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.
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.
LGTM 🚢 it
Part of #55083
Related #59659 #60359
What?
This PR adds an Author field & filter to the template parts present in the Patterns page. This follows what they have in the "Manage all template parts" page.
Gravacao.do.ecra.2024-04-02.as.15.12.24.mov
Why?
This is a pre-requisite to removing the "Manage all template parts" page in #60359
How?
author
field and filter.Testing Instructions
Visit the Patterns page and select the Templates Parts items in the sidebar. Use the Author filter.