Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Dec 10, 2025

This is an automated pull request that bumps the version from 10.2.0-alpha.5 to 10.2.0-alpha.6.
Once this pull request is merged, it will trigger a new release of version 10.2.0-alpha.6.
If you're not a core maintainer with permissions to release you can ignore this pull request.

To do

Before merging the PR, there are a few QA steps to go through:

  • Add the "freeze" label to this PR, to ensure it doesn't get automatically forced pushed by new changes.
  • Add the "ci:daily" label to this PR, to trigger the full test suite to run on this PR.

And for each change below:

  1. Ensure the change is appropriate for the version bump. E.g. patch release should only contain patches, not new or de-stabilizing features. If a change is not appropriate, revert the PR.
  2. Ensure the PR is labeled correctly with one of: "BREAKING CHANGE", "feature request", "bug", "maintenance", "dependencies", "documentation", "build", "unknown".
  3. Ensure the PR title is correct, and follows the format "[Area]: [Summary]", e.g. "React: Fix hooks in CSF3 render functions". If it is not correct, change the title in the PR.
    • Areas include: React, Vue, Core, Docs, Controls, etc.
    • First word of summary indicates the type: “Add”, “Fix”, “Upgrade”, etc.
    • The entire title should fit on a line

This is a list of all the PRs merged and commits pushed directly to next, that will be part of this release:

  • 🐛 Bug: Manager: Ensure reset item only appears in globals toolbar when specified #33276
  • 🐛 Bug: Docs-Blocks: Fix broken tooltip in ArgValue details #33264
  • 🐛 Bug: Controls: Fix displaying as object instead of select for optional union types #33200
  • 🔧 Maintenance: UI: Make vertical alignment of TestStatusIcon more robust #33305
  • 🐛 Bug: Nextjs-Vite: Install vite during migration if not installed yet #33316 (will also be patched)
  • 🐛 Bug: Controls: Force object control JSON mode to reset #33330
  • 📝 Documentation: Docs: Add missing copyEvent on a create command #33324
  • 📝 Documentation: Docs: Remove external action from Github pages documentation #32974 (will also be patched)
  • 📝 Documentation: Docs: Fix migration guide links #33328
  • 🏗️ Build: Build: Fix syntax error when parse object-form code snippets with Prettier #32963

If you've made any changes doing the above QA (change PR titles, revert PRs), manually trigger a re-generation of this PR with this workflow and wait for it to finish. It will wipe your progress in this to do, which is expected.

Feel free to manually commit any changes necessary to this branch after you've done the last re-generation, following the Make Manual Changes section in the docs, especially if you're making changes to the changelog.

When everything above is done:


Generated changelog

10.2.0-alpha.6

  • Controls: Fix displaying as object instead of select for optional union types - #33200, thanks tanujbhaud!
  • Controls: Force object control JSON mode to reset - #33330, thanks Sidnioulz!
  • Docs-Blocks: Fix broken tooltip in ArgValue details - #33264, thanks Sidnioulz!
  • Manager: Ensure reset item only appears in globals toolbar when specified - #33276, thanks mrginglymus!
  • Nextjs-Vite: Install vite during migration if not installed yet - #33316, thanks ghengeveld!
  • UI: Make vertical alignment of TestStatusIcon more robust - #33305, thanks Sidnioulz!

ia319 and others added 30 commits November 6, 2025 17:33
The third party action used in the documentation just provides a very thin wrapper around github's own actions, adding risk while providing little to no value.
…n types

Fixes #12641

When TypeScript properties are optional (prop?: Type), TypeScript adds
| undefined to the union type. The enum detection logic was failing
because undefined is not a literal type, causing the union to not be
recognized as an enum.

This resulted in controls displaying as "object" type instead of "select"
dropdown for optional properties with union types, regardless of the
number of items in the union.

The fix filters out undefined elements before checking if all remaining
elements are literals, allowing optional unions to be correctly recognized
as enums and display as select controls.
- Add type guard functions (isLiteral, isUndefined) for better type narrowing
- Add 'undefined' to TSScalarType union in types.ts
- Make elements non-optional in TSCombinationType (unions always have elements)
- Wrap case block in braces to fix Biome linting error
- Use proper type assertion instead of @ts-expect-error
- Separate TSLiteralType from TSScalarType to include 'value' property
- Use proper TypeScript type guard syntax (type is X) for narrowing
- Filter with type guard to get properly typed literal elements
- Removes need for explicit type casting
- Add getDependencyVersion mock to package manager in tests
- Split test into two scenarios: with and without vite installed
- Test that vite@^7.0.0 is added when vite is not installed
- Test that vite is not added when already installed

Co-authored-by: valentinpalkovic <[email protected]>
- Add VITE_DEFAULT_VERSION constant in both implementation and tests
- Add comment explaining explicit mock setup in test for clarity
- Update test to use constant instead of hardcoded version

Co-authored-by: valentinpalkovic <[email protected]>
- Export constant from main file to maintain single source of truth
- Import constant in test file instead of duplicating
- Remove redundant mock setup that was already done in beforeEach

Co-authored-by: valentinpalkovic <[email protected]>
@github-actions github-actions bot requested a review from kylegach as a code owner December 10, 2025 19:59
@github-actions github-actions bot added the release For PRs that trigger new releases. Automated label Dec 10, 2025
…add-vite

Nextjs-Vite: Install `vite` during migration if not installed yet
@storybook-bot storybook-bot force-pushed the version-non-patch-from-10.2.0-alpha.5 branch from 5a79134 to 4ca6476 Compare December 10, 2025 20:06
UI: Make vertical alignment of TestStatusIcon more robust
…-enum

Controls: Fix displaying as object instead of select for optional union types
@storybook-bot storybook-bot force-pushed the version-non-patch-from-10.2.0-alpha.5 branch from 4ca6476 to 5babe74 Compare December 10, 2025 20:21
valentinpalkovic and others added 3 commits December 10, 2025 21:21
Docs-Blocks: Fix broken tooltip in ArgValue details
Manager: Ensure reset item only appears in globals toolbar when specified
@storybook-bot storybook-bot force-pushed the version-non-patch-from-10.2.0-alpha.5 branch from 5babe74 to 9932826 Compare December 10, 2025 20:26
@valentinpalkovic valentinpalkovic added freeze Freeze the Release PR with this label ci:daily Run the CI jobs that normally run in the daily job. labels Dec 10, 2025
@storybook-app-bot
Copy link

Package Benchmarks

Commit: 9932826, ran on 10 December 2025 at 20:42:38 UTC

The following packages have significant changes to their size or dependencies:

@storybook/builder-webpack5

Before After Difference
Dependency count 191 191 0
Self size 75 KB 75 KB 0 B
Dependency size 32.18 MB 32.03 MB 🎉 -160 KB 🎉
Bundle Size Analyzer Link Link

@storybook/angular

Before After Difference
Dependency count 191 191 0
Self size 118 KB 118 KB 0 B
Dependency size 30.30 MB 30.14 MB 🎉 -160 KB 🎉
Bundle Size Analyzer Link Link

@storybook/ember

Before After Difference
Dependency count 195 195 0
Self size 15 KB 15 KB 🎉 -18 B 🎉
Dependency size 28.91 MB 28.75 MB 🎉 -160 KB 🎉
Bundle Size Analyzer Link Link

@storybook/nextjs

Before After Difference
Dependency count 537 537 0
Self size 645 KB 645 KB 🚨 +120 B 🚨
Dependency size 59.12 MB 58.96 MB 🎉 -160 KB 🎉
Bundle Size Analyzer Link Link

@storybook/react-webpack5

Before After Difference
Dependency count 277 277 0
Self size 24 KB 24 KB 0 B
Dependency size 44.07 MB 43.91 MB 🎉 -160 KB 🎉
Bundle Size Analyzer Link Link

@storybook/server-webpack5

Before After Difference
Dependency count 203 203 0
Self size 16 KB 16 KB 0 B
Dependency size 33.44 MB 33.28 MB 🎉 -160 KB 🎉
Bundle Size Analyzer Link Link

@storybook/cli

Before After Difference
Dependency count 173 173 0
Self size 774 KB 775 KB 🚨 +844 B 🚨
Dependency size 67.61 MB 67.46 MB 🎉 -156 KB 🎉
Bundle Size Analyzer Link Link

@storybook/codemod

Before After Difference
Dependency count 166 166 0
Self size 30 KB 30 KB 🚨 +36 B 🚨
Dependency size 66.18 MB 66.03 MB 🎉 -156 KB 🎉
Bundle Size Analyzer Link Link

@storybook/preset-react-webpack

Before After Difference
Dependency count 170 170 0
Self size 18 KB 18 KB 🚨 +24 B 🚨
Dependency size 31.31 MB 31.15 MB 🎉 -160 KB 🎉
Bundle Size Analyzer Link Link

@valentinpalkovic valentinpalkovic merged commit 3ad9891 into next-release Dec 11, 2025
119 of 125 checks passed
@valentinpalkovic valentinpalkovic deleted the version-non-patch-from-10.2.0-alpha.5 branch December 11, 2025 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:daily Run the CI jobs that normally run in the daily job. freeze Freeze the Release PR with this label release For PRs that trigger new releases. Automated

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants