Skip to content

Wildcard: Migrate stories to CSF

Administrator requested to merge tr/storybook-csf into main

Created by: umpox

Migrating our *.story.tsx files in /client/wildcard to use the Component Story Format

This change was made through 4 separate tasks:

  1. https://github.com/sourcegraph/sourcegraph/commit/e3a39cae40c69cb74de1d0461bd70fb31bdb281a Modify existing stories to chain add methods onto storiesOf. This is important so that they can be easily updated by a codemod we'll run in the next step.
  2. https://github.com/sourcegraph/sourcegraph/commit/5a5b716337da4a768b4b26157d06728035c57816 Run codemod to convert storiesOf to CSF. Command: npx sb migrate storiesof-to-csf --glob="client/wildcard/src/**/*.story.tsx"
  3. https://github.com/sourcegraph/sourcegraph/commit/b228f5d5879b5164d23565c7d63480793e6004da Run codemod to update Story annotations. Command: npx sb migrate csf-hoist-story-annotations --glob="client/wildcard/src/**/*.story.tsx"
  4. https://github.com/sourcegraph/sourcegraph/commit/810e8e217d6a665f109ca2a0a92ba4125f6b27ea Update modified *.story.tsx files to improve type-safety through Typescript

Merge request reports

Loading