Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

chore: upgrading storybook to version 8 #674

Merged
merged 3 commits into from
Apr 29, 2024
Merged

Conversation

georgewrmarshall
Copy link
Collaborator

@georgewrmarshall georgewrmarshall commented Apr 26, 2024

Description

This PR represents a significant upgrade of our Storybook environment from version 7 to version 8, aligning with the latest advancements and features as outlined in the Storybook 8 release notes. Alongside the version upgrade, we are transitioning our build system to use Vite for improved storybook build performance and developer experience. Additionally, this update includes the migration of our MDX files to the newest format supported in Storybook 8, ensuring our documentation and component stories leverage the full capabilities of the latest version. The motivation behind these changes is to enhance our development workflow, embrace modern tooling, and maintain our project's alignment with the best practices and standards in the frontend ecosystem.

Related issues

Fixes: N/A

Manual testing steps

To ensure a smooth transition and verify the successful upgrade:

  1. Run yarn storybook to launch the upgraded Storybook environment.
  2. Navigate through various stories to confirm they render correctly and interact as expected.
  3. Test the hot module replacement and build performance improvements introduced with Vite.
  4. Review updated MDX files to ensure they conform to the new format and display correctly within Storybook.

Screenshots/Recordings

Before

before720.mov

After

after720.mov

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained what problem this PR is solving and how it is solved.
  • I've linked related issues.
  • I've included manual testing steps.
  • I've included screenshots/recordings if applicable.
  • I’ve included tests if applicable.
  • I’ve documented my code using JSDoc format if applicable.
  • I’ve applied the right labels on the PR.
  • I’ve properly set the pull request status to "ready for review".

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g., pull and build branch, run the upgraded Storybook, review MDX format changes).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as screenshots or recordings.

This PR is a pivotal step in leveraging the latest Storybook features and improvements, setting a strong foundation for future development and storytelling within our project.

@georgewrmarshall georgewrmarshall self-assigned this Apr 26, 2024
@georgewrmarshall georgewrmarshall added the team-design-system All issues relating to design system label Apr 26, 2024
Copy link

socket-security bot commented Apr 26, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@adobe/[email protected] None 0 180 kB adobe-admin
npm/@babel/[email protected] None 0 9.12 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 9.19 kB nicolo-ribaudo
npm/@chromatic-com/[email protected] None 0 3.58 MB tmeasday
npm/@esbuild/[email protected] None 0 10.4 MB evanw
npm/@esbuild/[email protected] None 0 11.5 MB evanw
npm/@esbuild/[email protected] None 0 9.83 MB evanw
npm/@esbuild/[email protected] None 0 11.5 MB evanw
npm/@esbuild/[email protected] None 0 9.78 MB evanw
npm/@esbuild/[email protected] None 0 10.2 MB evanw
npm/@esbuild/[email protected] None 0 8.85 MB evanw
npm/@esbuild/[email protected] None 0 9.63 MB evanw
npm/@esbuild/[email protected] None 0 9.18 MB evanw
npm/@esbuild/[email protected] None 0 8.85 MB evanw
npm/@esbuild/[email protected] None 0 9.16 MB evanw
npm/@esbuild/[email protected] None 0 9.37 MB evanw
npm/@esbuild/[email protected] None 0 10.4 MB evanw
npm/@esbuild/[email protected] None 0 9.18 MB evanw
npm/@esbuild/[email protected] None 0 9.11 MB evanw
npm/@esbuild/[email protected] None 0 10.1 MB evanw
npm/@esbuild/[email protected] None 0 9.62 MB evanw
npm/@esbuild/[email protected] None 0 9.6 MB evanw
npm/@esbuild/[email protected] None 0 9.64 MB evanw
npm/@esbuild/[email protected] None 0 9.6 MB evanw
npm/@esbuild/[email protected] None 0 9 MB evanw
npm/@esbuild/[email protected] None 0 9.47 MB evanw
npm/@esbuild/[email protected] None 0 9.83 MB evanw
npm/@joshwooding/[email protected] None +1 429 kB joshwooding
npm/@mdx-js/[email protected] Transitive: environment +1 333 kB wooorm
npm/@rollup/[email protected] None 0 57.1 kB shellscape
npm/@storybook/[email protected] None 0 54.9 kB shilman
npm/@storybook/[email protected] None 0 13.4 kB shilman
npm/@storybook/[email protected] None 0 11.6 kB shilman
npm/@storybook/[email protected] Transitive: environment +1 6.68 MB shilman
npm/@storybook/[email protected] None 0 9.1 kB shilman
npm/@storybook/[email protected] None 0 8.22 kB shilman
npm/@storybook/[email protected] None 0 4.98 MB shilman
npm/@storybook/[email protected] None 0 18.1 kB shilman
npm/@storybook/[email protected] None 0 18.4 kB shilman
npm/@storybook/[email protected] None 0 13.9 kB shilman
npm/@storybook/[email protected] None 0 9.94 kB shilman
npm/@storybook/[email protected] None 0 16.3 kB shilman
npm/@storybook/[email protected] eval 0 319 kB shilman
npm/@storybook/[email protected] filesystem 0 57.5 kB shilman
npm/@storybook/[email protected] environment, filesystem 0 274 kB shilman
npm/@storybook/[email protected] None 0 24.1 kB shilman
npm/@storybook/[email protected] Transitive: filesystem, shell +2 1.64 MB shilman
npm/@storybook/[email protected] None 0 7.52 kB shilman
npm/@storybook/[email protected] filesystem Transitive: environment, unsafe +1 9 MB shilman
npm/@storybook/[email protected] environment 0 2.96 MB shilman
npm/@storybook/[email protected] environment, filesystem, network, unsafe 0 174 kB shilman
npm/@storybook/[email protected] None 0 156 kB shilman
npm/@storybook/[email protected] environment, filesystem, network 0 816 kB shilman
npm/@storybook/[email protected] filesystem 0 6.04 kB shilman
npm/@storybook/[email protected] eval, filesystem 0 46.4 kB shilman
npm/@storybook/[email protected] None 0 9.18 MB shilman
npm/@storybook/[email protected] None 0 40.3 kB shilman
npm/@storybook/[email protected] None 0 1.18 MB ndelangen
npm/@storybook/[email protected] environment 0 209 kB shilman
npm/@storybook/[email protected] environment, network 0 256 kB shilman
npm/@storybook/[email protected] None 0 2.3 MB shilman
npm/@storybook/[email protected] environment 0 169 kB shilman
npm/@storybook/[email protected] network 0 320 kB shilman
npm/@storybook/[email protected] eval, network 0 337 kB shilman
npm/@storybook/[email protected] None 0 38.8 kB shilman
npm/@storybook/[email protected] None 0 46 kB shilman
npm/@storybook/[email protected] None 0 105 kB shilman
npm/@storybook/[email protected] environment, eval 0 83.7 kB shilman
npm/@storybook/[email protected] environment, filesystem, network, shell 0 370 kB shilman
npm/@storybook/[email protected] environment, eval 0 1.63 MB shilman
npm/@storybook/[email protected] environment 0 738 kB shilman
npm/@storybook/[email protected] None 0 109 kB shilman
npm/@testing-library/[email protected] environment +1 3.02 MB testing-library-bot
npm/@testing-library/[email protected] None +2 573 kB testing-library-bot
npm/@testing-library/[email protected] None 0 435 kB testing-library-bot
npm/@types/[email protected] None 0 12 kB types
npm/@types/[email protected] None 0 6.61 kB types
npm/@types/[email protected] None 0 9.7 kB types
npm/@types/[email protected] None 0 29.4 kB types
npm/@types/[email protected] None 0 12.5 kB types
npm/@types/[email protected] None 0 6.28 kB types
npm/@vitejs/[email protected] None 0 34.1 kB vitebot
npm/@vitest/[email protected] None +7 433 kB vitestbot
npm/@vitest/[email protected] None 0 18 kB vitestbot
npm/@vitest/[email protected] None +1 597 kB vitestbot
npm/[email protected] None 0 176 kB jessebeach
npm/[email protected] None 0 5.64 kB chaijs
npm/[email protected] None 0 754 kB keithamus
npm/[email protected] None 0 14.4 kB keithamus
npm/[email protected] None 0 4.3 MB ghengeveld
npm/[email protected] None 0 6.49 kB mathias
npm/[email protected] None 0 24.2 kB chai
npm/[email protected] None 0 90.3 kB ljharb
npm/[email protected] None 0 22 kB wooorm
npm/[email protected] None 0 46 kB simenb
npm/[email protected] None 0 257 kB eps1lon
npm/[email protected] None 0 31.6 kB ljharb
npm/[email protected] None 0 79.7 kB guybedford
npm/[email protected] environment, filesystem, network, shell 0 135 kB evanw
npm/[email protected] None 0 86.3 kB yannbf
npm/[email protected] None 0 53 kB avoidwork
npm/[email protected] None 0 8.68 kB keithamus
npm/[email protected] None 0 15.9 kB wooorm
npm/[email protected] Transitive: filesystem +1 61.3 kB ahmadnassri
npm/[email protected] None 0 9.09 kB wooorm
npm/[email protected] None 0 26.3 kB wooorm
npm/[email protected] None 0 8.52 kB wooorm
npm/[email protected] None 0 3.52 kB sindresorhus
npm/[email protected] None 0 20.4 kB ljharb
npm/[email protected] None 0 19.7 kB ljharb
npm/[email protected] None 0 20.6 kB ljharb
npm/[email protected] None 0 21.2 kB ljharb
npm/[email protected] None 0 3.43 kB juliangruber
npm/[email protected] None 0 58.1 kB keithamus
npm/[email protected] None 0 176 kB pieroxy
npm/[email protected] None 0 410 kB probablyup
npm/[email protected] None +1 26.6 kB wooorm
npm/[email protected] None 0 103 kB wooorm
npm/[email protected] None 0 22.6 kB wooorm
npm/[email protected] None 0 21.4 kB wooorm
npm/[email protected] None 0 17.8 kB wooorm
npm/[email protected] None 0 30.9 kB wooorm
npm/[email protected] None 0 18.3 kB wooorm
npm/[email protected] None 0 21.1 kB wooorm
npm/[email protected] None 0 10 kB wooorm
npm/[email protected] None 0 147 kB wooorm
npm/[email protected] None 0 12.7 kB wooorm
npm/[email protected] None 0 293 kB wooorm
npm/[email protected] None 0 67.7 kB wooorm
npm/[email protected] None 0 88.6 kB wooorm
npm/[email protected] None 0 29.3 kB wooorm
npm/[email protected] None 0 90.8 kB wooorm
npm/[email protected] None 0 12 kB wooorm
npm/[email protected] None 0 24.8 kB wooorm
npm/[email protected] None 0 20.3 kB wooorm
npm/[email protected] None 0 19 kB wooorm
npm/[email protected] None 0 16.3 kB wooorm
npm/[email protected] None 0 12.2 kB wooorm
npm/[email protected] None 0 15.2 kB wooorm
npm/[email protected] None 0 10.6 kB wooorm
npm/[email protected] None 0 33.1 kB wooorm
npm/[email protected] None 0 14.2 kB wooorm
npm/[email protected] None 0 9.72 kB wooorm
npm/[email protected] None 0 11 kB wooorm
npm/[email protected] None 0 9.94 kB wooorm
npm/[email protected] None 0 9.28 kB wooorm
npm/[email protected] None 0 6.42 kB wooorm
npm/[email protected] None 0 9.01 kB wooorm
npm/[email protected] None 0 10.7 kB wooorm
npm/[email protected] None 0 9.08 kB wooorm
npm/[email protected] None 0 16.1 kB wooorm
npm/[email protected] None 0 51.1 kB wooorm
npm/[email protected] None 0 37.5 kB wooorm
npm/[email protected] None 0 36.7 kB wooorm
npm/[email protected] None 0 202 kB wooorm
npm/[email protected] None 0 15.8 kB chai
npm/[email protected] eval Transitive: environment +1 94.8 kB simenb
npm/[email protected] None 0 224 kB alampros
npm/[email protected] environment +1 13.7 MB react-bot
npm/[email protected] environment 0 24 kB react-bot
npm/[email protected] environment 0 597 kB react-bot
npm/[email protected] None +1 6.91 kB sindresorhus
npm/[email protected] None 0 23.3 kB wooorm
npm/[email protected] None 0 11.5 kB wooorm
npm/[email protected] None 0 21.4 kB wooorm
npm/[email protected] None 0 19.5 kB wooorm
npm/[email protected] None 0 19.6 kB wooorm
npm/[email protected] environment 0 93.4 kB react-bot
npm/[email protected] None 0 7.75 kB wooorm
npm/[email protected] None 0 8.69 kB ljharb
npm/[email protected] None 0 1.39 kB shilman
npm/[email protected] None 0 13.9 kB oreanno
npm/[email protected] None 0 107 kB tscanlin
npm/[email protected] environment, filesystem, unsafe 0 216 kB jonaskello
npm/[email protected] None 0 9.96 kB chenglou
npm/[email protected] None 0 147 kB wooorm
npm/[email protected] None 0 27.1 kB wooorm
npm/[email protected] None 0 13.2 kB wooorm
npm/[email protected] None 0 32.9 kB wooorm
npm/[email protected] None 0 28.5 kB wooorm
npm/[email protected] None 0 22.3 kB wooorm
npm/[email protected] None 0 74.1 kB wooorm
npm/[email protected] environment, eval, filesystem, network, shell, unsafe 0 3.57 MB vitebot
npm/[email protected] None 0 20.1 kB ljharb

🚮 Removed packages: npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@floating-ui/[email protected], npm/@floating-ui/[email protected], npm/@floating-ui/[email protected], npm/@floating-ui/[email protected], npm/@jest/[email protected], npm/@jest/[email protected], npm/@jridgewell/[email protected], npm/@juggle/[email protected], npm/@mdx-js/[email protected], npm/@pmmmwh/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@radix-ui/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@swc/[email protected], npm/@swc/[email protected], npm/@swc/[email protected], npm/@swc/[email protected], npm/@swc/[email protected], npm/@swc/[email protected], npm/@swc/[email protected], npm/@swc/[email protected], npm/@swc/[email protected], npm/@swc/[email protected], npm/@swc/[email protected], npm/@swc/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@webassemblyjs/[email protected], npm/@webassemblyjs/[email protected], npm/@webassemblyjs/[email protected], npm/@webassemblyjs/[email protected], npm/@webassemblyjs/[email protected], npm/@webassemblyjs/[email protected], npm/@webassemblyjs/[email protected], npm/@webassemblyjs/[email protected], npm/@webassemblyjs/[email protected], npm/@webassemblyjs/[email protected], npm/@webassemblyjs/[email protected], npm/@webassemblyjs/[email protected], npm/@webassemblyjs/[email protected], npm/@webassemblyjs/[email protected], npm/@webassemblyjs/[email protected], npm/@xtuc/[email protected], npm/@xtuc/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

Copy link

socket-security bot commented Apr 26, 2024

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

Ignoring: npm/@storybook/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

Next steps

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/[email protected] or ignore all packages with @SocketSecurity ignore-all

@metamaskbot
Copy link
Collaborator

Builds ready [2206a92]

Storybook: Storybook

@metamaskbot
Copy link
Collaborator

Builds ready [3162cce]

Storybook: Storybook

@metamaskbot
Copy link
Collaborator

Builds ready [39cb494]

Storybook: Storybook

@georgewrmarshall
Copy link
Collaborator Author

@SocketSecurity ignore npm/[email protected]
@SocketSecurity ignore npm/[email protected]
@SocketSecurity ignore npm/[email protected]
@SocketSecurity ignore npm/[email protected]
@SocketSecurity ignore npm/@storybook/[email protected]

@georgewrmarshall georgewrmarshall marked this pull request as ready for review April 26, 2024 23:01
@georgewrmarshall georgewrmarshall requested a review from a team as a code owner April 26, 2024 23:01
Comment on lines -10 to -16
"@storybook/addon-actions",
"@storybook/react-webpack5",
"babel-loader",
"dependency-tree",
"eslint-plugin-node",
"sass",
"webpack",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing unused dependencies from dep check

Comment on lines +13 to +19
"@yarnpkg/fslib",
"@chromatic-com/storybook",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/addon-links",
"@storybook/blocks",
"@storybook/test"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding new dependencies to depcheck file otherwise we get a linting error this is a known issue with the module template set up

@@ -78,3 +78,5 @@ node_modules/

# Storybook build folder
storybook-static

*storybook.log
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Part of storybook 8. It now provides error logs

docs: {
autodocs: true,
},
};
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Migrating to typescript

@@ -22,3 +23,5 @@ export const parameters = {
},
},
};

export default preview;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Migrating to typescript

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was merged by mistake the pull request template lives in the .github directory here https://github.com/MetaMask/design-tokens/blob/main/.github/PULL_REQUEST_TEMPLATE.md


<Meta title="Getting Started/Introduction" />

<Markdown>{README}</Markdown>
Copy link
Collaborator Author

@georgewrmarshall georgewrmarshall Apr 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed .stories per new storybook v8 standards

@@ -1,4 +1,4 @@
import { Meta } from '@storybook/addon-docs';
import { Meta } from '@storybook/blocks';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replacing deprecated addon-docs

Comment on lines -4 to -5
<Meta title="Design Tokens/Shadows" />

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not required as this is used as the docs page for shadows

@@ -1,29 +1,29 @@
import React from 'react';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating shadow stories to CSF3 format

@@ -1,6 +1,7 @@
import { Meta, Canvas, Story } from '@storybook/addon-docs';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating MDX to reflect v8 conventions

@metamaskbot
Copy link
Collaborator

Builds ready [c35a44b]

Storybook: Storybook

"tsup>@swc/core": false,
"tsup>esbuild": false
"tsup>esbuild": true,
"vite>esbuild": false
}
}
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing unused dependencies and general clean up of package.json file


export default defineConfig({
plugins: [react()], // Enables fast refresh for React during development
});
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vite config as we now use vite to load storybook as opposed to webpack

@georgewrmarshall georgewrmarshall merged commit cd5ae49 into main Apr 29, 2024
19 checks passed
@georgewrmarshall georgewrmarshall deleted the upgrade/sb-8 branch April 29, 2024 14:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
team-design-system All issues relating to design system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants