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

Display unavailable storybooks #318

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

Conversation

vocksel
Copy link
Collaborator

@vocksel vocksel commented Dec 19, 2024

Problem

Users do not have a good way to debug issues when something is wrong with a Storybook

Solution

When Flipbook runs into an issue when loading a Storybook, it is not shown in the Unavailable Storybooks dropdown.

When selecting one of the unavailable storybooks, the error is shown along with the Storybook's source code (with syntax highlighting!)

Screenshot 2024-12-29 at 7 39 38 PM

Checklist

  • Need a Storyteller update for the UnavailableStorybook type and for some changes to useStorybooks to disambiguate the storybooks
  • Pull in https://github.com/boatbomber/Highlighter to highlight the CodeBlock component

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

Successfully merging this pull request may close these issues.

1 participant