- Issue created by @cosmicdreams
- πΊπΈUnited States cosmicdreams Minneapolis/St. Paul
I think I also see a fix here for the template that is generated. It currently isn't outputting any of the component properties that the generator defines. With a story we can output those props in the template so we can begin experimenting with different values for them.
- @cosmicdreams opened merge request.
- Status changed to Needs review
over 1 year ago 4:22am 31 May 2023 - π¬π§United Kingdom chrisscrumping
Tested this and seems to be working. Used with this repo as my start point: https://github.com/cosmicdreams/drupal-storybook once installed I could generate components and view them in storybook right away.
- πͺπΈSpain Carlitus
Hi,
I'm using this patch to generate stories, thanks @cosmicdreams
My two cents:
The generator uses name instead of title. Maybe title is for storybook 7 and name for 6? I'm using 6 version. I haven't found the specifications for this in the storybook page, it seems that all the docs are for javascript.I have this warning when generating a story:
[warning] Undefined array key "required" StoryGenerator.php:111This line:
$required = $component_data->schema['required'];
The generator doesn't create the stories entry, you have to create manually. For example:
stories: - name: 1. Default args: url: https://google.com title: Google
- πΊπΈUnited States cosmicdreams Minneapolis/St. Paul
I've been a way for a while but I'm hopeful to return to this work this weekend. I'll see if I can get back to making this generator working well for Storybook 7.
- e0ipso Can Picafort
This is covered by https://www.drupal.org/project/sdc_story_generator β
- Status changed to Fixed
about 1 year ago 5:50am 1 September 2023 Automatically closed - issue fixed for 2 weeks with no activity.