Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Storybook to v8 #4342

Merged
merged 11 commits into from
Jun 3, 2024
Merged

Upgrade Storybook to v8 #4342

merged 11 commits into from
Jun 3, 2024

Conversation

sergei-maertens
Copy link
Member

@sergei-maertens sergei-maertens commented Jun 3, 2024

Partly closes #4341

Changes

  • Ran Storybook upgrade tool
  • Fixed/merged test imports
  • Fixed prettier config
  • Upgraded some more dependencies (like react-intl) to be compatible
  • Replaced client-api package with preview-api (Storybook moved it)

Checklist

Check off the items that are completed or not relevant.

  • Impact on features

    • Checked copying a form
    • Checked import/export of a form
    • Config checks in the configuration overview admin page
    • Problem detection in the admin email digest is handled
  • Release management

    • I have labelled the PR as "needs-backport" accordingly
  • I have updated the translations assets (you do NOT need to provide translations)

    • Ran ./bin/makemessages_js.sh.sh
    • Ran ./bin/compilemessages_js.sh
  • Commit hygiene

    • Commit messages refer to the relevant Github issue
    • Commit messages explain the "why" of change, not the how

Copy link

codecov bot commented Jun 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.26%. Comparing base (4576c74) to head (edb82a0).
Report is 715 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4342   +/-   ##
=======================================
  Coverage   96.26%   96.26%           
=======================================
  Files         731      731           
  Lines       23786    23786           
  Branches     2803     2803           
=======================================
  Hits        22898    22898           
  Misses        617      617           
  Partials      271      271           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Following the SB v8 upgrade
Mimicking the SDK setup - 1.3 should work fine with SB 8
Looks like there's an issue with picking up the config file, possibly
because prettier is also a dependency of storybook. Moving the config
to package.json reveals a bunch of code style issues and makes the
warnings on the CLI go away.
@sergei-maertens sergei-maertens force-pushed the chore/upgrade-to-sb8 branch 2 times, most recently from 25a083b to f61ba27 Compare June 3, 2024 08:54
This was probably an implicit default in older SB versions - without
it, the existing stories don't render.
We'll run the tests in Chromatic too, but not necessarily on
Github actions. This makes it possible to run the tests
locally in case there are failures on CI in the future.
* Fixed some missing translations in tests
* Fixed missing spies for DMN Action stories
* Rewrote existing test to prevent flakiness
@sergei-maertens sergei-maertens marked this pull request as ready for review June 3, 2024 09:00
@sergei-maertens sergei-maertens merged commit 71b942e into master Jun 3, 2024
28 checks passed
@sergei-maertens sergei-maertens deleted the chore/upgrade-to-sb8 branch June 3, 2024 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to Storybook v8 and hook it up to Chromatic
1 participant