then had to do a bunch of manual changes to get back mostly the same previous indentation (with some minor differences where there were mistakes or inconsistencies)
CSF is still valid through to latest v8
also remove index.stories.tsx and replace with naming other story files *.stories.tsx
Follow-up to https://github.com/argoproj/argo-ui/pull/432#issuecomment-1879816619 and make the v1 code Storybook v7 compatible. This is just one step toward the upgrade, but perhaps the most breaking one. Follow-up to #567 "Future Work" part 1.
Motivation
Modifications
storiesOf
to CSF per https://storybook.js.org/docs/7/migration-guide#storiesof-to-csfindex.stories.tsx
and replace with naming other story files*.stories.tsx
config.js
+webpack.config.js
to Storybook v6+main.js
+preview.js
ts-loader
and instead use the built-in TS support, with a few optimizations per https://github.com/storybookjs/storybook/issues/22164#issuecomment-1603627308Verification
yarn start
works the same as it did in #567Notes to Reviewers
~This requires #567 to work and so is built on top of it. Please do not merge until that is merged first!~ Rebased on top