Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix status dot never appearing #47

Merged
merged 1 commit into from
May 10, 2023
Merged

Fix status dot never appearing #47

merged 1 commit into from
May 10, 2023

Conversation

DanWebb
Copy link
Member

@DanWebb DanWebb commented May 10, 2023

In storybook v7 we've stopped recieving the story's parameters inside the renderLabel item object.

I've tried using all the methods on the API to receive the parameters but none of them provide good results.

This PR contains a best effort which is to use the getParameters method to retrieve the stories parameters based on the item.id. Unfortunately this never loads in the parameters for the story correctly until the story has been loaded, so we only get dots after the story has been visited as shown in the attached.

Screen.Cast.2023-05-10.at.11.45.13.AM.mp4

Related #28

@DanWebb DanWebb requested review from gavmck and JoshTheWanderer May 10, 2023 10:50
@DanWebb DanWebb self-assigned this May 10, 2023
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@DanWebb DanWebb merged commit 5e4400a into master May 10, 2023
@DanWebb DanWebb deleted the fix/status-dot branch May 10, 2023 11:20
@DanWebb
Copy link
Member Author

DanWebb commented May 28, 2024

🎉 This PR is included in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants