Provide visibility into which (core) field type props can be mapped into Content Type Templates vs not

Created on 12 March 2025, about 2 months ago

Overview

Once 🌱 [META] 7. Content type templates — aka "default layouts" — clarify the tree+props data model Active is a reality, every piece of structured data must be presentable using an XB component. If that would not be the case, then some data would be impossible to map into an XB Content Type Template, and hence impossible to present to end users.

Part one: docs/shape-matching-into-field-types.md

The above requires that:

  • every base, bundle or configurable field instance
  • … so every field type (FieldType plugins, hence FieldItemInterface implementations)
  • must have all of its data be presentable
  • … so every field property (\Drupal\Core\Field\FieldItemInterface::propertyDefinitions())
  • must have a corresponding JSON Schema prop shape that can be matched.

That would allow each piece of structured data (1 entity → N fields → N field items → N field props) to be mapped into an SDC (or code component — these are equivalent).
(See 3.1.2.a `structured data` → matching `field instance`s ⇒ `dynamic prop source` in the doc for details.)

Important note: this means that it's possible that the entirety of a field item (so: the full set of field props) may not be presentable all at once, but may need to be mapped into multiple SDC props, with each SDC prop "receiving" one field prop.

Part two:docs/redux-integrated-field-widgets.md

On top of that, we also (of course) need to be able to edit every field type using whichever widget the Site Builder chose to use, so every field widget must also be Redux-integrated, to allow for live updates.

Proposed resolution

Currently, this is completely impractical to get a sense of how far we are.

User interface changes

None.

šŸ“Œ Task
Status

Active

Version

0.0

Component

Shape matching

Created by

šŸ‡§šŸ‡ŖBelgium wim leers Ghent šŸ‡§šŸ‡ŖšŸ‡ŖšŸ‡ŗ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024