Repository navigation
Experimental: Expand Editor Inspector: Use DataForm experiment to templates #76934
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
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
cdc80be
Experimental: Expand Editor Inspector: Use DataForm experiment to tem…
ntsekouras c4a2e43
use description field in templates list(site editor)
ntsekouras 3311bff
get_form_for_template
ntsekouras 8a16dea
remove label for readonly description in form
ntsekouras 31cda3f
add posts per page field
ntsekouras a0fe2c6
add siteDiscussionField field
ntsekouras 788cefc
add blogTitleField field
ntsekouras 064f87f
add `lastEditedDateField` field
ntsekouras 612ca55
show lastEditedDateField only when is modified
ntsekouras 8172e63
remove dv tooltip change
ntsekouras 88b491a
update descriptionField to handle only templates for now
ntsekouras 62e67cc
use Text from ui
ntsekouras 499f20a
add description-readonly field
ntsekouras 6c23076
update comment
ntsekouras 426bc77
port the form configs in their new place (after the rebase)
ntsekouras 0ba62aa
use a single TemplateHomeSettings form for the extra niche fields
ntsekouras 94f0b77
do not register SITE_FIELDS for templates
ntsekouras a363878
php lint
ntsekouras 7c08f5c
remove summary button change
ntsekouras a98e5b8
Consolidate into a single DataForm
oandregal b3d5d5c
rename the new fields + move nested date fields
ntsekouras fc0a25d
fix imports and add revisions in templates form
ntsekouras 446f584
rename description_readonly
ntsekouras 5040e72
move revision field up
ntsekouras 908adc5
Bind fields to the namespace in the consumer (DataFormSummary)
oandregal 8cee1e4
add `isVisible` in ENTITIES config for future additions
ntsekouras 440bccf
fix available_templates augmented data for classic themes `template` …
ntsekouras File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 is the kind of custom code we aim to remove with the entity-based config. What do we need to remove it? What's blocking us from migrating author&preview and then remove all of this?
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.
It also highlights the issues that come with having
descriptionanddescription_readonly:Note how the two "description" fields are visible in the view config properties. We need to set
enableHiding: falsefordescription_readonly(though, mid-term, we may want to revisit this because it's a bit weird to have to do that to prevent the field from being displayed when it's not part of the view.fields list).Uh oh!
There was an error while loading. Please reload this page.
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 haven't checked that as part of this PR (to keep smaller), but I'm planning to do so separately.
How did you encounter that? Right now the fields passed in template list don't include the readonly description. That field is added only in the
formconfig.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.
It's fine to do it in follow-ups, but we need tracking of these things so that we know what needs to be done. The goal is to have a general system that doesn't need custom code (that 3rd parties cannot add themselves).
I removed the filter :)