- Issue created by @Kristen Pol
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
Looking at
experience_builder/components/simple/shoe_button
, it has:shoe_button.twig
{% if icon %} {{ include('experience_builder:shoe_icon', icon, with_context = false) }} {% endif %}
shoe_button.component.yml
icon: title: Icon $ref: json-schema-definitions://experience_builder.module/shoe-icon type: object
One thing to note also is that all of their yaml files start with:
'$schema': 'https://git.drupalcode.org/project/sdc/-/raw/1.x/src/metadata.schema.json'
so based on this, it looks like we need to:
- Update our included components to use the schema definition
- Remove any included component props from their parent
- Ideally, update the script to handle for new components
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
I should note that getting XB to run requires using vanilla core (you can't use Drupal CMS right now!) so I'm in the middle of updating docs and things are a bit "sideways" at the moment.
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
Note this related issue for slots:
🐛 SDC incorrectly throws an exception about embedded slots Needs work
- Assigned to anand.toshniwal93
- Issue was unassigned.
- Status changed to Needs review
5 months ago 10:11pm 23 August 2024 - 🇮🇳India anand.toshniwal93
I have updated script as per the below comment
https://www.drupal.org/project/demo_design_system/issues/3469495#comment... 📌 Decide if SDDS SDCs should include props from included components Needs review
- Assigned to Kristen Pol
- Assigned to jacobadeutsch
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
Assigning to Jacob for thoughts.
I think it depends on how we see examples being used. If we're able to successfully get an example's content working in referenced to included props without them being present in the yml then we don't need to include included props.
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
Fair enough. Which means this one goes back to being blocked by the XB blockers.
- Assigned to Kristen Pol
- Status changed to Active
5 months ago 5:04pm 5 September 2024 - 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
Back to active since we are still waiting.
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
Shoe button isn't even showing up in the component list anymore.
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
For now, we should just include all the props for the included/embeded components.
Later, we may want to define our own schemas and do something like:
icon: title: Icon $ref: json-schema-definitions://experience_builder.module/shoe-icon type: object
I did play around with adding our own schemas and it wasn't super straightforward so I've parked it. I'll make an issue as a future thing so we don't forget about it.
- Issue was unassigned.
- Status changed to Fixed
5 months ago 7:28pm 5 September 2024 - 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
Added issue, closing this one.
📌 Evaluate creating schema.json for SDDS Postponed
Automatically closed - issue fixed for 2 weeks with no activity.