-
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
Patterns page: enable table layout #60337
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. |
@@ -65,6 +66,9 @@ const { ExperimentalBlockEditorProvider, useGlobalStyle } = unlock( | |||
const templatePartIcons = { header, footer, uncategorized }; | |||
const EMPTY_ARRAY = []; | |||
const defaultConfigPerViewType = { | |||
[ LAYOUT_TABLE ]: { | |||
primaryField: 'title', |
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.
What's the primary field of a "table" layout? What's different from regular fields?
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.
Size Change: +1.27 kB (0%) Total Size: 1.72 MB
ℹ️ View Unchanged
|
I like the inclusion of this view, but am more curious about the orange color I am seeing in the screenshots. Are those Figma mockups, or is there a setting somewhere that I may have missed for accent colors? |
It's a admin color schema for the test user that I use. I've been using it since a few months ago to make sure the dataviews work is admin-color-schema friendly (this raised a couple of bugs with links, for example). |
One thing I've noticed when testing selection in this PR is that:
Gravacao.do.ecra.2024-04-01.as.13.33.59.mov
Gravacao.do.ecra.2024-04-01.as.13.30.47.movI can reproduce both things in Templates/Parts, so it should be addressed in a separate PR. |
Merging this one to continue work, happy to do any follow-ups. |
Co-authored-by: oandregal <oandregal@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: bgardner <bgardner@git.wordpress.org>
Part of #55083
Related #59659
What?
Enables the
table
layout for the Patterns page.When clicking the preview or the title for user-provided patterns, it goes directly to the editor instead of visiting the details page:
Gravacao.do.ecra.2024-04-01.as.17.03.21.mov
Why?
It's part of the design goal, see #59659
How?
table
layout and sets itsprimaryField
b59dcd4Testing Instructions
Visit Patterns page and switch to table layout via the view actions menu.
TODO