Overview
Attempt to simplify #3467954: META: Evolve XB UI's data model to allow non-SDC components' inputs, DynamicPropSource support, etc. by ensuring that, on the front end, we always get a component's name from the component list data and not from the instance of the component's model data. This means that props called name should no longer be an issue.
Proposed resolution
To express this in pseudo code, instead of
model[selectedComponentUUID].name
we should be doing something like
allComponentsList[selectedComponentId].name
User interface changes
The UI visibly shouldn't change, but everywhere we get a component's name should be changed:

- Component preview overlay
- When dragging into the preview and hovering over a slot it should show the slot's name
- Layers panel (actually this has changed, it previously said "Slot" for each slot, but will now show the slot name.
- Context menu when right-clicking a component
- Save as section dialog
- The little blue rectangle you see when dragging a component (the dragImage)
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | Slot_names.png | 11.25 KB | jessebaker |
Issue fork experience_builder-3487773
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
jessebaker commentedComment #5
jessebaker commentedComment #6
wim leersOnly 2 nitpicky questions, up to @jessebaker to decide how to handle those 😊
Comment #7
wim leersEven though this was RTBC before #3478565: Add Entity Update controller, un-RTBC'ing this because that other issue is an order of magnitude more complex, and moves some code around that this MR would have made obsolete. This MR should now remove the code that that moved.
Will do the reroll here! 🤓
Comment #8
wim leersComment #9
wim leersBlocks #3467954: #3467954-26: META: Evolve XB UI's data model to allow non-SDC components' inputs, DynamicPropSource support, etc..
Comment #11
jessebaker commentedComment #12
wim leers🥳 This reduced the remaining scope for #3467954: META: Evolve XB UI's data model to allow non-SDC components' inputs, DynamicPropSource support, etc.! 🚀