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.
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.).
| ); | ||
| } | ||
|
|
||
| function Author( { item, viewType } ) { |
There was a problem hiding this comment.
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?
authorfield and filter.Testing Instructions
Visit the Patterns page and select the Templates Parts items in the sidebar. Use the Author filter.