Introduce a `Pattern` config entity

Created on 9 October 2024, about 1 month ago

Overview

For the 29. Layout patterns (i.e. sections) product requirement, we need a new config entity that:

  • stores a component tree, with no dynamic prop sources, only static prop sources (because dynamic ones require a particular context, static ones don't)
  • has a human-readable label
  • can be validated thoroughly (including the above point)
  • depends on the Component config entities it uses
  • has thorough test coverage: a subclass of core's ConfigEntityValidationTestBase

Out-of-scope, follow-up issue needed:

  • can be listed/read by the UI using a HTTP API
  • can be created by the UI using a HTTP API

Proposed resolution

Create a new Pattern config entity type using the following config schema:

experience_builder.pattern.*:
  type: config_entity
  constraints:
    FullyValidatable: ~
  mapping:
    label:
      type: required_label
      label: 'Label'
    # A single component tree.
    component_tree:
      # @todo This MUST contain NO DynamicPropSources; add necessary validation.
      type: experience_builder.component_tree
      label: 'The component tree a reusable pattern'

User interface changes

None.

๐Ÿ“Œ Task
Status

Active

Version

0.0

Component

Config management

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