Skip to content

chore: bump storybook to 10.6 - #5429

Open
ulemons wants to merge 1 commit into
mainfrom
chore/issue-360-bump-storybook
Open

ulemons wants to merge 1 commit into
mainfrom
chore/issue-360-bump-storybook

Conversation

@ulemons

@ulemons ulemons commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

What

Bumps Storybook in the frontend from 10.2.12 to 10.6.8. All six packages move together to ^10.6.8: storybook, @storybook/vue3, @storybook/vue3-vite, @storybook/addon-docs, @storybook/addon-a11y and eslint-plugin-storybook (was ^10.6.1).

Why

Closes critical Dependabot alert 1173 (GHSA-f2ph-cmg5-wxc8, missing origin validation in the Storybook preview, fixed in 10.6.2). Storybook is a dev tool and is never deployed, so the exposure was limited to someone running storybook dev locally while visiting a malicious site. This is also ticket H-16 of the frontend dependency upgrades.

Changelog: migration notes from 10.3 to 10.6

Only one applies to this repo:

  • 10.6.0, Vue 3: vue-docgen-api is deprecated. It is still the default docgen engine and still works; the build now prints a deprecation warning. Switching to vue-component-meta changes the autodocs output, so it is left for its own change.

Notes that apply by default, with no change needed here:

  • 10.6.2, storybook dev blocks remote iframe embedding and restricts iframe messaging. This is the security fix. The dev server now answers with Content-Security-Policy: frame-ancestors 'self' http://localhost:* ….

Notes that do not apply (features this repo does not use): the Highlight channel API change (10.6.2), removal of @storybook/csf-plugin and of the experimental Playwright CT integration (10.6.0), the Angular Vite and MCP tool name changes (10.6.0), deprecation of ExternalDocs (10.5.0), React Native deviceAddons and the TanStack Router framework (10.4.0).

Notes for the reviewer

  • The lockfile also carries re-resolution done by pnpm outside Storybook: three vitest sub-dependencies deduplicated to versions already in the lockfile, and a few shared transitive packages (semver, @babel/runtime, tslib, sourcemap-codec) resolved to a single version. The new @oxc-parser/* and @oxc-resolver/* entries are dependencies of Storybook 10.6.

Verification

With Node 24 and pnpm 11.22.0, on a clean install of this lockfile:

  • docs:storybook:ci: builds, 85 entries.
  • lint: 0 warnings.
  • typecheck: 0 errors.
  • build:production: builds.
  • storybook dev: starts; the manager and a story iframe answer 200.

Not done: opening stories in a browser and clicking through Overview, People, a person profile, Organizations and Admin on local, as the ticket asks.

Closes linuxfoundation/lfx-cdp-insights-ops#360

🤖 Generated with Claude Code

Refs linuxfoundation/lfx-cdp-insights-ops#360

Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
@ulemons
ulemons requested review from a team and lfx-one as code owners November 23, 2026 14:58
@ulemons
ulemons requested review from mbani01 and a balanced review from Copilot November 23, 2026 14:58
@ulemons ulemons self-assigned this Nov 23, 2026
@cursor

cursor Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Dev-only Storybook upgrade with no runtime or production deploy path; main risk is local Storybook dev/build regressions, not production security.

Overview
Bumps all frontend Storybook-related devDependencies from 10.2.12 (and eslint-plugin-storybook from 10.6.1) to ^10.6.8: storybook, @storybook/vue3, @storybook/vue3-vite, @storybook/addon-docs, @storybook/addon-a11y, and eslint-plugin-storybook. The lockfile is refreshed with Storybook 10.6’s transitive graph (including oxc-parser/resolver, updated @volar/vue language tooling, and vue-component-meta pulled in by @storybook/vue3).

There are no changes to application code or .storybook config—only dependency resolution. This aligns with the security fix in 10.6.2 that tightens storybook dev iframe/CSP behavior; reviewers should expect the same Vue+Vite setup with addon-docs and addon-a11y, plus possible vue-docgen-api deprecation warnings at build/dev until docgen is migrated separately.

Reviewed by Cursor Bugbot for commit 7b1cd49. Bugbot is set up for automated code reviews on this repo. Configure here.

@lfx-one

lfx-one commented Nov 23, 2026 •

Copy link
Copy Markdown

@ulemons I'm starting review 1 of this pull request now (started 2026-11-23 14:59 UTC using review agent v0.1.34). This usually takes a few minutes. I'll update this comment with the summary when I'm done. If there's no summary here after about 45 minutes, the review stopped: push a new commit, or post a comment that begins with a mention of me followed by re-review, to start another. For help with the review agent, see https://github.com/linuxfoundation/lfx-review-agent/issues.


Hi Umberto, thanks for the clear PR description and the verification notes.

Summary

This bumps all six Storybook packages in frontend/package.json to ^10.6.8 and refreshes pnpm-lock.yaml. The change touches no application code. It closes the Dependabot alert for the Storybook preview origin validation.

Decision

✅ Approved

No findings. The required DCO check passed on 7b1cd49.

Details

Overall impression: This is a dev-only dependency bump. The package.json change is limited to the six Storybook packages, and every specifier matches its lockfile entry. The lockfile changes fit the PR description: Storybook 10.6 brings in new oxc-parser and oxc-resolver entries and drops @storybook/csf-plugin, plus some de-duplication of older transitive versions. I reviewed pnpm-lock.yaml as a lockfile, not line by line. The PR says docs:storybook:ci, lint, typecheck and build:production pass. I did not run them, and the in-browser story click-through is not done, as the PR notes.

Other reviewers and CI checks: Cursor Bugbot's summary rates the PR low risk and I agree. The only required check, DCO, passed. No other commit statuses were reported on this commit.

Unread files: pnpm-lock.yaml (generated or lockfile, not reviewed line by line)

Rule files: read frontend/CLAUDE.md, AGENTS.md, .claude/rules/commit-workflow.md, .claude/rules/adr-format.md, .claude/rules/skill-guidance.md, CONTRIBUTING.md; skipped none

Questions, problems, or feedback: https://github.com/linuxfoundation/lfx-review-agent/issues

@lfx-one lfx-one left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Dev-only Storybook bump to ^10.6.8 (including eslint-plugin-storybook) with a matching lockfile refresh. I found no issues, so I'm approving.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Browser-level story rendering and application smoke flows remain unverified after the Storybook upgrade, and successful builds and HTTP 200 responses cannot substitute for the required human validation.

No open issues 🎉

1 file not reviewed
  • pnpm-lock.yaml: Generated file
What changed in this PR

Updates the frontend’s Storybook tooling to 10.6.8 to address the preview origin-validation vulnerability tracked by Dependabot alert 1173.

Changes:

  • Aligns all six Storybook-related development dependencies to ^10.6.8.
  • Refreshes the lockfile with updated Storybook dependencies and shared transitive dependency resolutions.
  • Leaves Storybook configuration and the existing Vue docgen engine unchanged.

The PR reports successful builds, linting, type checking, and server startup checks; browser interaction checks remain outstanding.

File Description
pnpm-lock.yaml Locks Storybook 10.6.8 and refreshes transitive dependencies.
frontend/​package.json Updates all six Storybook-related dependency ranges.

Review effort: Balanced

@gaspergrom gaspergrom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me, LGTM.

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.

4 participants