Some components cannot be used in XB because UI prevents SDC props being named `name`

Created on 13 August 2024, about 1 month ago
Updated 12 September 2024, 7 days ago

Overview

Title says it all.

Becomes readily apparent when trying to place the shoe_tab_panel component that 📌 Introduce an example set of representative SDC components; transition from "component list" to "component tree" Fixed introduced.

Was spotted a long time ago, but only now is becoming relevant. Fixing this will allow us to remove @todos such as:

https://git.drupalcode.org/project/experience_builder/-/blob/0.x/src/Controller/SdcController.php

// @todo the current quick-and-dirty UI PoC unfortunately prevents any prop from being named `name`, because it expects that to convey the component name — but it's not actually one of the props consumed by the SDC.

Proposed resolution

Change the data structure that the client sends to the server and expects to receive from /api/layout/node/1.

User interface changes

None.

🐛 Bug report
Status

Active

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.71.5 2024