Experimental: Expand Editor Inspector: Use DataForm experiment to templates#76934
Experimental: Expand Editor Inspector: Use DataForm experiment to templates#76934ntsekouras wants to merge 16 commits into
Conversation
|
Size Change: +804 B (+0.01%) Total Size: 8.2 MB 📦 View Changed
ℹ️ View Unchanged
|
|
Flaky tests detected in 90121b5. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/27004551460
|
194063a to
42286ae
Compare
| return { | ||
| ...field, | ||
| elements: field.elements.filter( | ||
| ( element ) => element.value !== 'trash' | ||
| ), |
There was a problem hiding this comment.
I've been thinking about this kind of things. We need to absorb them as field definitions instead of overrides at the screen level. Perhaps we need to define a new status_without_trash field that is distinct to status.
42286ae to
ac152c8
Compare
a5039c4 to
c372148
Compare
b4e1d97 to
07345b8
Compare
1a7c5e3 to
3d51d09
Compare
|
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. |
| // special because it's responsible for updating a `page` attribute. | ||
| // We need to think this through how to best connect | ||
| // it with `Gutenberg_REST_View_Config_Controller_7_1`. | ||
| postTypeConfig.slug === 'wp_template' && blogTitleField, |
There was a problem hiding this comment.
Just starting a conversation for the comments to be more noticeable from reviewers.
| // The main problem I can think of right now is that when we have | ||
| // way to control the forms and fields through APIs, we won't have | ||
| // a way to control/remove this field. | ||
| const BLOG_TITLE_FORM = { |
There was a problem hiding this comment.
Just starting a conversation for the comments to be more noticeable from reviewers.
In this commit I'm making the
|
|
Good question. I think in some cases the gap was 16px. @jameskoster I think you've been looking at spacing tokens lately. Any thoughts? One thing though: we're using sentence case with capital proper nouns across the software, so it should be "Posts per page" and "Blog title". |
Oh.. I didn't notice that. This is also part of DataForm styles for |
02bb03c to
97b3c01
Compare
97b3c01 to
acc92f6
Compare
acc92f6 to
6bc1039
Compare
3fd0abe to
30f94ba
Compare
7f34970 to
90121b5
Compare
|
👋 - How can we move forward this? I think it's important to think about this and this. If they are time consuming I'll probably try to split the PR. --cc @oandregal @mcsf |



What?
Part of: #76076
This PR expands the
Expand Editor Inspectorexperiment to templates.Notes
Better reviewed without whitespace: https://github.com/WordPress/gutenberg/pull/76934/changes?w=1
Testing Instructions
Expand Editor Inspectorexperimentfieldspackage.Posts per page anddiscussion) in template summary panel are shown only forhome/index` templates, so you need to test those tooblog titlefield is show only if you have set aPosts page(reading settings) and then edithome/indextemplates.Not a custom template
A custom template with description
A custom template without a description
This case highlights the possible confusion about the lack of an existing description and the way to add one.
We face the same issue for
excerptfield, which for now renders anadd an excerptas value (see screenshot below), but is wrong. If we used theexcerptfield in DataViews, like we do for thedescriptionfield, we shouldn't show such a message.A similar case is the title field where render a
(no title)when empty, but it's a special field which uses a well established default copy for a while. Also note that it doesn't contain any action verb and if we were to imitate that field, we'll end up showing (no excerpt/description). Finally thetitleis by far more important field for an entity than the excerpt/description, so would it be better to show in lists ano descriptionvalue? 🤔 I believe not.