-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
storybook: correct sidebar links #104522
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
storybook: correct sidebar links #104522
Conversation
Removes location.state from story handling and allows us to use nested routes
Fix URL pattern matching to support both customer domain and organization-scoped URL formats: - Update useStoryParams() regex to match /stories/ anywhere in path - Update isLandingPage() regex to match paths ending with /stories - Normalize hero button URLs with organization context Without these fixes, stories would not load in organization-scoped deployments.
- Remove duplicate 'stories' segment in ESLint error message URLs - Fix slug generation for root-level shared files to prevent leading slashes Addresses bot feedback in PR review.
natemoo-re
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice refactor!
| { | ||
| children: 'Get Started', | ||
| to: '/stories?name=app/styles/colors.mdx', | ||
| to: '/stories/foundations/colors', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are there no trailing / for story urls?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current stories don't use them either, so this isn't a breaking change. That said, I'll open a PR to add support for it separately so that this remains django compat
Fix story links so that they are compatible with the double URL structure