HTTP API: update /xb-render-component/{component_id} to use Component config entity's default values

Created on 20 June 2024, 5 months ago
Updated 26 August 2024, 3 months ago

Problem/Motivation

šŸ›‘ Blocked on āœØ Allow specifying default props values when opting an SDC in for XB Fixed .

SDC's optionally have examples.
ā‡’ They're not guaranteed to be present.
ā‡’ A preview is not guaranteed to work. šŸ˜±

Steps to reproduce

Currently (visualized using šŸ“Œ Connect client & server, with zero changes to client (UI): rough working endpoints that mimic the UI's mocks Needs review ):

Proposed resolution

  1. Require every opted in SDC to have a default value specified for every required SDC prop ā€” āœØ Allow specifying default props values when opting an SDC in for XB Fixed is implementing that.
  2. Update \Drupal\experience_builder\Controller\SdcController::renderComponent() to use that new default.
  3. Delete \Drupal\experience_builder\Controller\SdcController::populatePropValues()

Remaining tasks

See above.

User interface changes

The crash in the GIF will no longer occur.

API changes

None.

Data model changes

None.

šŸ“Œ Task
Status

Active

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