-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Update Storybook stories to use Component Story Format #25227
Comments
Here is the GitStart Ticket for this issue: https://app.gitstart.com/clients/sourcegraph/tickets/SG-25227 |
Hey @gitstart-sourcegraph, it seems that this issue is not completed yet. We still have several |
@valerybugakov Thanks. This is closed by accident when merging a PR linked to this issue. There are some remaining sub issues which we have created and we are working on them |
@valerybugakov, |
@gitstart, for the linked case with the |
Thanks, that works. |
Problem statement
The Component Story Format is the recommended way to write stories in Storybook. The new format is easier to understand and it is also important that we update our existing stories to ensure we stay up to date with new features, and are able to follow future documentation.
Check out this Sourcegraph search result to view these stories.
Success criteria
yarn storybook
Implementation details
Please see this PR description as an example of how this change can be implemented.
In summary, follow these implementation steps:
storiesOf
usage to ensure anyadd
or alternative function calls are chained onto the originalstoriesOf
function call. See this diff for an example of this change: https://github.com/sourcegraph/sourcegraph/pull/25222/commits/e3a39cae40c69cb74de1d0461bd70fb31bdb281anpx sb migrate storiesof-to-csf --glob="client/web/**/*.story.tsx"
. For an expected diff (on different files) see this commit: https://github.com/sourcegraph/sourcegraph/commit/5a5b716337da4a768b4b26157d06728035c57816npx sb migrate csf-hoist-story-annotations --glob="client/web/**/*.story.tsx"
. For an expected diff (on different files) see this commit: https://github.com/sourcegraph/sourcegraph/commit/b228f5d5879b5164d23565c7d63480793e6004daTime estimate
The text was updated successfully, but these errors were encountered: