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

WRQ-22937: Updated storybook to version 8 #791

Merged
merged 10 commits into from
Jun 17, 2024

Conversation

daniel-stoian-lgp
Copy link
Contributor

@daniel-stoian-lgp daniel-stoian-lgp commented May 30, 2024

Checklist

  • I have read and understand the contribution guide
  • A CHANGELOG entry is included
  • At least one test case is included for this feature or bug fix
  • Documentation was added or is not needed
  • This is an API breaking change

Issue Resolved / Feature Added

Storybook needed to be updated to the latest version

Resolution

Updated list of storybook dependencies and their version to v8.x based on the migration guide https://github.com/storybookjs/storybook/blob/next/MIGRATION.md
Changed configuration based on the storybook v7 and v8 requirements

main.js:

preview.js:

  • docs.inlineStories has been renamed docs.story.inline; docs.iframeHeight has been renamed docs.story.iframeHeight
  • accent, highlight and default skin styles need to be declared as globalTypes in order to be updated from the to0lbar

custom-addon/Toolbar.js:
TooltipLinkList left property was renamed to icon, (https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#removals-in-storybookcomponents) but the new property generates a narrow span. I had to move the content inside custom-addon/ColorPicker component
WithTooltip component has renamed properties (https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#props-from-withtooltipcomponent-from-storybookcomponents)

custom-addon/ToolbarTab.js - Icon component is deprecated and we do not need a replacement

package.json storybook dev and build commands adapted to v8 naming.

new root container id used by storybook is called "storybook-root". This change breaks enact's logic to apply spotlight related styling in SpotlightRootDecorator https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#change-of-root-html-ids ThemeDecorator already has a rootId prop and can be set from the sampler app to storybook-root, but it was not passed to SpotlightRootDecorator. A PR in enact repo is needed also and is attached to the user story

Additional Considerations

Note: although docs is disabled, I left the docs configuration intact in preview.js. It does not affect current configuration and will be needed when we activate docs

Links

WRQ-22937

Comments

Enact-DCO-1.0-Signed-off-by: Daniel Stoian (daniel.stoian@lgepartner.com)

Copy link

codecov bot commented May 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.13%. Comparing base (489cadf) to head (8e8e219).

Additional details and impacted files
@@                Coverage Diff                @@
##           feature/enact_v5     #791   +/-   ##
=================================================
  Coverage             85.13%   85.13%           
=================================================
  Files                   120      120           
  Lines                  4507     4507           
  Branches               1237     1237           
=================================================
  Hits                   3837     3837           
  Misses                  523      523           
  Partials                147      147           

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

Copy link
Contributor

@adrian-cocoara-lgp adrian-cocoara-lgp left a comment

Choose a reason for hiding this comment

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

LGTM
We have the same issue I mentioned on enactjs/sandstone#1588 about native HTML scrollbar on globals list.

@MikyungKim MikyungKim changed the base branch from develop to feature/enact_v5 June 5, 2024 05:21
@MikyungKim
Copy link
Contributor

Could you please rebase your branch with the latest feature/enact_v5?

@MikyungKim MikyungKim merged commit a711565 into feature/enact_v5 Jun 17, 2024
7 checks passed
@MikyungKim MikyungKim deleted the feature/storybook8 branch June 17, 2024 01:37
Copy link
Contributor

@MikyungKim MikyungKim left a comment

Choose a reason for hiding this comment

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

LGTM

0x64 pushed a commit that referenced this pull request Jul 25, 2024
* WRQ-22937: Updated storybook to version 8 (#791)

* updated storybook to version 8.1.5

* Fixed custom toolbars for acent, hightlight and default skin styles

* code review fixes

* removed parasite div

* code review fixes

* eslint fixes

* removed unneeded storybook ui props

* updated storybook to 8.1.6 and storybook-tils branch to enact_v5

* removed docs configuration and docs information in About story

* WRQ-25915: Added custom site icon for sampler app (#793)

* added custom site icon for storybook

* Apply suggestions from code review

* removed manager-head.html

---------

Co-authored-by: Stanca <stanca.pop@lgepartner.com>

* WRQ-17541: Fix Marquee to not override marqueeDirection (#794)

* Fix Marquee to not override marqueeDirection

* modify travis.yml to verify

* remove null

* modify travis.yml to verify 2

* WRQ-29126: Updated storybook to 8.2 (#799)

* Updated storybook to 8.2 and applied latest patch version

* updatet storybook dependencies to use latest minor version

* changed package order

---------

Co-authored-by: Mikyung Kim <mikyung27.kim@lge.com>

* WRQ-30274: Prepare for merging `feature/enact_v5` to `develop` branch (#803)

* WRQ-7108: Remove unnecessary vendor prefixes (#784)

* WRQ-7108: Remove unnecessary vendor prefixes
Enact-DCO-1.0-Signed-off-by: Jiye Kim (jiye.kim@lge.com)

* remove more vendor prefix

* remove more vendor prefix
Enact-DCO-1.0-Signed-off-by: Jiye Kim (jiye.kim@lge.com)

* WRQ-25866: Update package dependencies to fix security vulnerabilities. (#795)

* Updated dependencies for agate library.

* Updated shrinkwrap

* WRP-26873: Fixed partial Panels' transition on horizontal (#757)

* Fixed partial transition

* Fixed lint warnings

* Added code was covered by tests

* Added CHANGELOG

* Review fixes

* Restored style changes

* Update CHANGELOG.md

* Fixed changelog

Enact-DCO-1.0-Signed-off-by: Mikyung Kim (mikyung27.kim@lge.com)

* Review fixes

* Review fixes

* fix

Enact-DCO-1.0-Signed-off-by: Mikyung Kim (mikyung27.kim@lge.com)

---------

Co-authored-by: Daniel Stoian <63335068+daniel-stoian-lgp@users.noreply.github.com>
Co-authored-by: Mikyung Kim <mikyung27.kim@lge.com>

* Update dependencies and sampler version to 2.0.11

* WRQ-29884: Change cli branch in travis.yml to master (#800)

Enact-DCO-1.0-Signed-off-by: Jiye Kim (jiye.kim@lge.com)

* WRQ-29957: Fixed VirtualGridList story to load default values (#801)

* WRQ-29884: Change cli branch in travis.yml to master (#800)

Enact-DCO-1.0-Signed-off-by: Jiye Kim (jiye.kim@lge.com)

* fixed virtualgridlist story to load default values

* minor fix

---------

Co-authored-by: Jiye Kim <128779942+vJIYEv@users.noreply.github.com>

* Update a change log for 2.0.11

* Version value updating

* fix travis.yml
Enact-DCO-1.0-Signed-off-by: Jiye Kim (jiye.kim@lge.com)

* change travis dist from focal to jammy
Enact-DCO-1.0-Signed-off-by: Jiye Kim (jiye.kim@lge.com)

* remove empty options
Enact-DCO-1.0-Signed-off-by: Jiye Kim (jiye.kim@lge.com)

* update enact dependencies in package.json
Enact-DCO-1.0-Signed-off-by: Jiye Kim (jiye.kim@lge.com)

* Updated sampler's npm shrinkwrap

---------

Co-authored-by: alexandru-morariu-lgp <84004128+alexandrumorariu@users.noreply.github.com>
Co-authored-by: ion-andrusciac-lgp <122601449+ion-andrusciac-lgp@users.noreply.github.com>
Co-authored-by: Daniel Stoian <63335068+daniel-stoian-lgp@users.noreply.github.com>
Co-authored-by: Mikyung Kim <mikyung27.kim@lge.com>
Co-authored-by: taeyoung.hong <taeyoung.hong@lge.com>
Co-authored-by: Jenkins <accounts@enactjs.com>

---------

Co-authored-by: Daniel Stoian <63335068+daniel-stoian-lgp@users.noreply.github.com>
Co-authored-by: Stanca <stanca.pop@lgepartner.com>
Co-authored-by: taeyoung.hong <taeyoung.hong@lge.com>
Co-authored-by: taeyoung.hong <35059065+hong6316@users.noreply.github.com>
Co-authored-by: Jiye Kim <128779942+vJIYEv@users.noreply.github.com>
Co-authored-by: alexandru-morariu-lgp <84004128+alexandrumorariu@users.noreply.github.com>
Co-authored-by: ion-andrusciac-lgp <122601449+ion-andrusciac-lgp@users.noreply.github.com>
Co-authored-by: Jenkins <accounts@enactjs.com>
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.

3 participants