- Issue created by @G4MBINI
- ๐ซ๐ทFrance pdureau Paris
Thansk you. Indeed, we need to implement CategorizingPluginManagerInterface in StoryPluginManager and use
::getSortedDefinitions()
in::getComponentStories()
- ๐ซ๐ทFrance pdureau Paris
Duplicate: โจ [2.0.1] StoryPluginManager::getComponentStories() must return sorted results Active
So, moved to 2.0.1.
No need to implement the full
CategorizingPluginManagerInterface
because stories are not gorupedSome people also want weighted results, but this will be another task.
- Merge request !347Issue #3507007: Implemented getSortedDefinitions method in StoryPluginManager. โ (Open) created by chhavi.sharma
- ๐ซ๐ทFrance Grimreaper France ๐ซ๐ท
Hi,
Need to introduce a weight key/properties in stories. Automatic sort by machine name or name will not be enough to reproduce official documentation order.
- ๐ฎ๐ณIndia chhavi.sharma
Implemented CategorizingPluginManagerInterface in StoryPluginManager to use ::getSortedDefinitions() in ::getComponentStories(). It needs to be reviewed.
- Status changed to Needs review
about 9 hours ago 12:25pm 24 April 2025 - ๐ฎ๐ณIndia lavanyatalwar
Hi @chhavi.sharma,
The changes you made look good to me. However, as per #8 โจ Sort component stories Active , the weight key/property needs to be introduced. Therefore, Iโm moving the issue back to Needs Work.
Also, Iโm attaching a screen recording showing the issue working as expected.