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

Created on 20 June 2024, 8 days ago

Problem/Motivation

πŸ›‘ Blocked on ✨ Allow specifying default props values when opting an SDC in for XB Needs work .

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 Needs work 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

Postponed

Component

Page builder

Created by

πŸ‡§πŸ‡ͺBelgium Wim Leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί

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

Comments & Activities

Production build 0.69.0 2024