Skip to content
New issue

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

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

Already on GitHub? # to your account

Dependabot/npm and yarn/frontend/storybook 8.5.x #947

Merged
merged 10 commits into from
Mar 7, 2025

Conversation

ErvinRacz
Copy link
Contributor

@ErvinRacz ErvinRacz commented Feb 21, 2025

Update Storybook Version to 8.5.x

  • Refactor story definitions according to the migration guides
  • Add new test-runner for storybook as storybook tests (storyshots) have been removed
  • Generate the new snapshots and remove old ones snapshots
  • Parametrize animated charts to be able to turn their animations off
  • New entry in Makefile to integrate the new test runner for storybook
  • Update CI runners' base image from 22.04 to 24.04

How to use

Submit new PRs and watch the frontend CI pipeline execution (make ci step).

Testing done

  • Locally by running CI=true make ci and inspecting the output
  • Letting the GitHub actions to execute the frontend workflow multiple times

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 66 out of 66 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

.github/workflows/frontend.yml:32

  • Using 'continue-on-error: true' might hide failures in the CI process; if this behavior is intentional, consider adding a comment or documentation to explain why it is safe to ignore errors.
continue-on-error: true

@ErvinRacz ErvinRacz force-pushed the dependabot/npm_and_yarn/frontend/storybook-8.5.6 branch from a2d9bc4 to 7f0b56d Compare February 25, 2025 11:18
@ErvinRacz ErvinRacz changed the title Dependabot/npm and yarn/frontend/storybook 8.5.6 Dependabot/npm and yarn/frontend/storybook 8.5.x Feb 25, 2025
@ErvinRacz ErvinRacz requested a review from Copilot February 25, 2025 11:40

Choose a reason for hiding this comment

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

Copilot reviewed 69 out of 69 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (3)

frontend/.storybook/test-runner.ts:24

  • Consider providing a more descriptive error message that includes additional context (such as which story or page state triggered the error) to aid debugging when '#storybook-root' is not found.
throw new Error("elementHandler is null!");

frontend/.storybook/manager.js:1

  • Please verify that replacing the import from '@storybook/addons' with '@storybook/manager-api' aligns with your current Storybook version requirements and that it does not break integrations relying on the legacy API.
import { addons } from '@storybook/manager-api';

frontend/.storybook/main.js:1

  • [nitpick] The legacy '.storybook/main.js' configuration file has been entirely removed. Please confirm that all references to this configuration have been updated to use the new 'main.ts' setup to avoid unexpected issues.
module.exports = { ... }
@ErvinRacz ErvinRacz marked this pull request as ready for review February 25, 2025 11:56
@ErvinRacz ErvinRacz requested review from a team February 25, 2025 14:22
@tormath1
Copy link
Contributor

I think those two commits:

Can be squashed? IIUC you just want to add back the docker compose version right?

@ErvinRacz ErvinRacz force-pushed the dependabot/npm_and_yarn/frontend/storybook-8.5.6 branch from fb7e9f5 to a4c18eb Compare February 25, 2025 14:39
@ErvinRacz
Copy link
Contributor Author

ErvinRacz commented Feb 25, 2025

I think those two commits:

Can be squashed? IIUC you just want to add back the docker compose version right?

Yes. I wanted to see if the CI runner image gets the old docker-compose or newer docker compose as it was giving errors sometimes that the command couldn't be found. Upgrading the runner from ubuntu 22.04 to 24.04 solved the issue in the end and the docker compose command is consistently available now.

Copy link
Contributor

@tormath1 tormath1 left a comment

Choose a reason for hiding this comment

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

LGTM. It does not impact directly Nebraska itself except maybe for the typescript update. Speaking of which before merging can we squash the last two commits: 3c3b54c and 5ef77d4

@ErvinRacz
Copy link
Contributor Author

LGTM. It does not impact directly Nebraska itself except maybe for the typescript update. Speaking of which before merging can we squash the last two commits: 3c3b54c and 5ef77d4

Will do so :)

dependabot bot and others added 8 commits March 7, 2025 15:06
Bumps [storybook](https://github.com/storybookjs/storybook/tree/HEAD/code/lib/cli) from 7.6.20 to 8.5.6.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v8.5.6/code/lib/cli)

---
updated-dependencies:
- dependency-name: storybook
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
- Refactor story definitions according to the migration guides
- Add new test-runner for storybook as storybook tests (storyshots) have
  been removed
- Generate the new snapshots
…ed charts

- generate new snapshots
- parametrize animated charts
- new entry in Makefile to integrate the new test runner for storybook
…flow

- Added Playwright test execution to the frontend CI workflow.
- Removed the separate Playwright workflow file.
- Updated the Makefile to include Playwright installation and test commands.
- Modified `.gitignore` to include `playwright-failed`.
- Updated `package.json` and `package-lock.json` with new dependencies for Storybook testing.
- Added a page reload step in the Playwright test to ensure content is loaded.
- Bumped Storybook-related dependencies to version `8.5.8` in `package.json` and `package-lock.json`.
- Updated `@storybook/test-runner` to version `0.21.3`.
- Update makefile
…ement & update ts

- Updated TypeScript version from `^4.4.x` to `^5.7.3` in `package.json` and `package-lock.json`.
- Removed unused import of `React` in `Common.tsx` and `SectionHeader.tsx`.
- Fixed type coercion issue in `InstanceCountLabel` component by converting `countText` to a number.
- Ensured `aria-label` in `SectionHeader` uses `toString()` for translation.
- facebook/create-react-app#13080
- certain deps demand higher ts version while react-scripts still depend
  on older ts versions
- react-scripts still works fine with newer ts therefore overwrite ts
  version
@ErvinRacz ErvinRacz force-pushed the dependabot/npm_and_yarn/frontend/storybook-8.5.6 branch from 3c3b54c to 8d6cbda Compare March 7, 2025 13:08
- Added tests for `setToken`, `getToken`, and `isValidToken` functions in `auth.spec.ts`.
- Added tests for `getKeyByValue`, `cleanSemverVersion`, `getInstanceStatus`, and `getErrorAndFlags` functions in `helpers.spec.ts`.
@ErvinRacz ErvinRacz merged commit 2f4ad9f into main Mar 7, 2025
3 checks passed
@ErvinRacz ErvinRacz deleted the dependabot/npm_and_yarn/frontend/storybook-8.5.6 branch March 7, 2025 14:36
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants