-
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
DataViews: Move template and pattern title fields #67449
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: +323 B (+0.02%) Total Size: 1.83 MB
ℹ️ View Unchanged
|
{ decodeEntities( renderedTitle ) || __( '(no title)' ) } | ||
</span> | ||
{ suffix } | ||
<span>{ renderedTitle || __( '(no title)' ) }</span> |
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.
getItemTitle
decode entities already.
d2a758b
to
3a0e3b6
Compare
9454f24
to
4d9d9ad
Compare
I didn't spot any issues in the design 👍 |
4d9d9ad
to
fe08862
Compare
Flaky tests detected in fe08862. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12154580981
|
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've left a few comments (mostly about the classnames introduced for the fields) and a few things about packages/editor/src/dataviews/store/private-actions.ts
.
fe08862
to
e69c504
Compare
8ebf4fb
to
1fa1eec
Compare
color: var(--wp-admin-theme-color); | ||
} | ||
@include link-reset(); | ||
} |
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.
Why did you add these styles (per curiosity)
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.
They were related to all our views. Before we had similar styles in patterns and templates, though they were also coming by using buttons and links in titles.
Now they are all the same internally (span) and handle the redirect with onClickItem
, so these styles are used by all views.
Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: oandregal <oandregal@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
What?
Part of: #61084
This PR moves the
templateTitle and patternTitle
fields tofields
package. Additionally a separatepageTitleField
was created due to the special frontpage/posts page handling and all of them use the underlyingBaseTitleField
.For the above I update some classNames and moved around some styles.
Testing Instructions
title
fields and theironClick
behavior/navigation.