Skip to content

chore: align story viewer with Storybook 7

Paul Gascou-Vaillancourt requested to merge storybook-7 into main

GitLab UI has been upgraded to Storybook 7, which changes how docs pages paths are computed. We thus need to update the story-viewer component so that it properly computes the new paths.

This also slightly improves the story-viewer component by including the arguments in the Open in Storybook links.

How to test this?

As of creating this MR, the Storybook 7 upgrade has not yet been merged: gitlab-org/gitlab-ui!3378 (merged). Therefore, you'll need to test these changes against the review app:

  1. Run the Nuxt app with the correct GITLAB_UI_URL:
    GITLAB_UI_URL=http://renovate-major-7-storybook.34.140.25.101.nip.io/ yarn start
Edited by Paul Gascou-Vaillancourt

Merge request reports