Skip to content

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

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

Merged
merged 10 commits into from
Mar 7, 2025

Conversation

ervcz
Copy link
Collaborator

@ervcz ervcz 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

@ervcz ervcz force-pushed the dependabot/npm_and_yarn/frontend/storybook-8.5.6 branch from a2d9bc4 to 7f0b56d Compare February 25, 2025 11:18
@ervcz ervcz changed the title Dependabot/npm and yarn/frontend/storybook 8.5.6 Dependabot/npm and yarn/frontend/storybook 8.5.x Feb 25, 2025
@ervcz ervcz requested a review from Copilot February 25, 2025 11:40
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 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 = { ... }

@ervcz ervcz marked this pull request as ready for review February 25, 2025 11:56
@ervcz ervcz 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?

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

ervcz 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

@ervcz
Copy link
Collaborator Author

ervcz commented Feb 27, 2025

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
- 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
@ervcz ervcz force-pushed the dependabot/npm_and_yarn/frontend/storybook-8.5.6 branch from 3c3b54c to 8d6cbda Compare March 7, 2025 13:08
ervcz added 2 commits March 7, 2025 15:33
- 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`.
@ervcz ervcz merged commit 2f4ad9f into main Mar 7, 2025
3 checks passed
@ervcz ervcz deleted the dependabot/npm_and_yarn/frontend/storybook-8.5.6 branch March 7, 2025 14:36
ervcz added a commit that referenced this pull request Mar 18, 2025
* refactor(frontend:storybook): upgrade from storybook 7 to 8

- 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

* refactor(frontend): remove storyshots as the package got deprecated

* refactor(frontend:storybook): generate new snaps & parametrize animated charts

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

* feat(ci): integrate storybook and Playwright tests into frontend workflow

- 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.

* chore(frontend): minor storybook version update & ci changes
- 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

* fix(frontend): improve error message for missing '#storybook-root' element & 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
- 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`.
ervcz added a commit that referenced this pull request Mar 19, 2025
* refactor(frontend:storybook): upgrade from storybook 7 to 8

- 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

* refactor(frontend): remove storyshots as the package got deprecated

* refactor(frontend:storybook): generate new snaps & parametrize animated charts

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

* feat(ci): integrate storybook and Playwright tests into frontend workflow

- 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.

* chore(frontend): minor storybook version update & ci changes
- 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

* fix(frontend): improve error message for missing '#storybook-root' element & 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
- 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`.
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.

2 participants