- Issue created by @Kristen Pol
- πΊπΈUnited States Kristen Pol Santa Cruz, CA, USA
Add screenshot of registry.
Here's my basic chip yml file for testing and comparison. It would be good to come up with a standardized procedure for converting the twigs to yml. The conversion guide helped me out but left some stuff ambiguous, like how the titles should be generated, etc.
The Python script as of right now doesn't do the formatting right. The spacing is incorrect along with the way it does enums. Also includes the "default" for enums. I've attached the chip yml file I generated with the script below.
ChatGPT initial test:
https://chatgpt.com/share/9fbea4c3-d260-4fd0-ab54-05a56064ae02Definitely could be possible to create a script using the ChatGPT api for this, it's already 90% of the way there. Not sure if it's less efficient than using our own python algorithm though.
* UI Suite checker and XB tests are still pending
* I've also attached a screenshot of an error on the registry component audit page- πΊπΈUnited States Kristen Pol Santa Cruz, CA, USA
Thanks!
I see that there are two examples of "enum" in the "official" docs:
The quickstart guide has:
https://www.drupal.org/docs/develop/theming-drupal/using-single-director... β
enum: ['primary', 'secondary']
and the annotated example has;
enum: - success - warning - danger
I'll check which is correct in the #experience-builder and #components channels.
- πΊπΈUnited States Kristen Pol Santa Cruz, CA, USA
Actually, these are functionally equivalent per:
https://stackoverflow.com/questions/23657086/yaml-multi-line-arrays
so we need to choose one.
My phpcs isn't showing any problems anymore for what the Python script generated. It was probably just a problem on my end. Since the script works on this one I'm going to test it on a molecule and an organism.
- Status changed to Postponed
4 months ago 12:28am 6 August 2024 - πΊπΈUnited States Kristen Pol Santa Cruz, CA, USA
Moving to postponed for now until we hear back on the script.
- Assigned to Kristen Pol
- πΊπΈUnited States Kristen Pol Santa Cruz, CA, USA
Back to me while we wait.
- Assigned to jacobadeutsch
- Status changed to Needs work
4 months ago 6:49pm 6 August 2024 - πΊπΈUnited States Kristen Pol Santa Cruz, CA, USA
Use the new merge request guide:
https://www.drupal.org/community-initiatives/starshot-demo-design-system... β
- Assigned to Kristen Pol
- Status changed to Postponed
4 months ago 5:14pm 7 August 2024 - πΊπΈUnited States Kristen Pol Santa Cruz, CA, USA
Marking postponed until the script changes have been reviewed π Create automated script for converting components to SDC Fixed .
- πΊπΈUnited States Kristen Pol Santa Cruz, CA, USA
Closing because we'll do the YAML updates here:
π Use SDC conversion script to create baseline SDC YAML and README files Fixed
- Issue was unassigned.
- Status changed to Fixed
3 months ago 10:11pm 9 August 2024 Automatically closed - issue fixed for 2 weeks with no activity.