Skip to content

Conversation

@shilman
Copy link

@shilman shilman commented Oct 27, 2025

Simple upgrade & verified that the Storybook is still working. Branched off of @SutuSebastian 's fix/dev-env work.

Summary by CodeRabbit

  • Chores

    • Upgraded Storybook from version 8.x to 9.1.15, including dependency updates for related tooling and plugins.
    • Updated flowbite-react dependency.
  • Refactor

    • Migrated Storybook configuration to use Vite-optimized integration.
    • Reorganized addon setup for improved performance and compatibility.

@changeset-bot
Copy link

changeset-bot bot commented Oct 27, 2025

🦋 Changeset detected

Latest commit: 2e62b86

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
flowbite-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Oct 27, 2025

@shilman is attempting to deploy a commit to the Themesberg Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 27, 2025

Walkthrough

Storybook upgraded from version 8.1.10 to 9.1.15 with corresponding dependency updates, addon reorganization, and type import source changes across story files to use Vite-based Storybook packages.

Changes

Cohort / File(s) Summary
Changeset
.changeset/neat-things-lie.md
Declares patch version bump for flowbite-react with "up packages" instruction
Storybook Configuration
apps/storybook/.storybook/main.ts, apps/storybook/.storybook/preview.tsx
Removed addon-essentials and addon-interactions; added addon-docs. Removed autodocs configuration. Updated type imports from @storybook/react to @storybook/react-vite.
Package Dependencies
apps/storybook/package.json
Upgraded Storybook from 8.1.10 to 9.1.15; updated eslint-plugin-storybook to 9.1.15; reorganized addons (removed addon-actions, addon-essentials, addon-interactions; added/retained addon-docs, addon-links, addon-themes, react-vite)
Story Files - Type Import Updates
apps/storybook/src/Accordion.stories.tsx, Alert.stories.tsx, Avatar*.stories.tsx, Badge.stories.tsx, Banner.stories.tsx, Blockquote.stories.tsx, Breadcrumb.stories.tsx, Button*.stories.tsx, Card.stories.tsx, Carousel.stories.tsx, Checkbox.stories.tsx, Clipboard.stories.tsx, DarkThemeToggle.stories.tsx, Datepicker.stories.tsx, Drawer.stories.tsx, FileInput.stories.tsx, FloatingLabel.stories.tsx, Footer.stories.tsx, HR.stories.tsx, Kbd.stories.tsx, Label.stories.tsx, List*.stories.tsx, MegaMenu.stories.tsx, Navbar.stories.tsx, Pagination.stories.tsx, Popover.stories.tsx, Progress.stories.tsx, Radio.stories.tsx, RangeSlider.stories.tsx, Rating.stories.tsx, Select.stories.tsx, Sidebar.stories.tsx, Spinner.stories.tsx, Table.stories.tsx, Tabs.stories.tsx, TextInput.stories.tsx, Textarea.stories.tsx, Timeline.stories.tsx, Toast.stories.tsx, ToggleSwitch.stories.tsx, Tooltip.stories.tsx
Updated Meta and StoryFn type imports from @storybook/react to @storybook/react-vite across all story files
Story Files - Addon Import Updates
apps/storybook/src/Dropdown.stories.tsx, Modal.stories.tsx
Updated addon-actions import path from @storybook/addon-actions to storybook/actions alongside type import source changes

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Areas requiring extra attention:

  • Verify Storybook 9.x runtime compatibility and confirm no breaking changes from the major version upgrade (8.x → 9.x)
  • Validate that removal of addon-essentials and addon-interactions does not impact existing story functionality or documentation generation
  • Confirm Vite integration is properly configured and all type definitions resolve correctly with @storybook/react-vite
  • Cross-check addon reorganization (particularly addon-docs addition) generates expected documentation output

Possibly related PRs

Suggested labels

enhancement, dependencies

Suggested reviewers

  • rluders
  • tulup-conner
  • connerdavis47

Poem

🐰 Fifty stories updated with care,
From React to React-Vite, a version repair,
Storybook nine now greets us with Vite's delight,
Addons reorganized, all imports set right! 📚✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The pull request title "Upgrade Storybook to 9.x" directly and accurately describes the primary change in the changeset. The main alteration is the upgrade of Storybook from version 8.1.10 to 9.1.15 in package.json, along with related addon updates and corresponding import path changes across approximately 40+ story files. The title is concise, specific, and clearly conveys the core objective without vague terminology or noise. It aligns with the PR description ("Simple upgrade & verified that the Storybook is still working"), making the intent immediately clear to anyone scanning the repository history.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@vercel
Copy link

vercel bot commented Oct 27, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
flowbite-react Ready Ready Preview Comment Oct 27, 2025 9:33am
flowbite-react-storybook Ready Ready Preview Comment Oct 27, 2025 9:33am

@SutuSebastian
Copy link
Collaborator

SutuSebastian commented Oct 27, 2025

@shilman u can sync the branch with latest main, I merged the dev fixes PR

@shilman
Copy link
Author

shilman commented Oct 27, 2025

@SutuSebastian I did. I'm not sure why it's still showing your changes 🤷

@SutuSebastian
Copy link
Collaborator

SutuSebastian commented Oct 27, 2025

@shilman the diff looks fine now. Only thing left to do is run bun format at the root level and cleanup the changeset file.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
.changeset/neat-things-lie.md (1)

5-5: Consider a more descriptive changeset message.

The message "up packages" is quite terse. Consider something like "Upgrade Storybook to 9.x" to better document what changed for future reference.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 74499c5 and 2e62b86.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (50)
  • .changeset/neat-things-lie.md (1 hunks)
  • apps/storybook/.storybook/main.ts (1 hunks)
  • apps/storybook/.storybook/preview.tsx (1 hunks)
  • apps/storybook/package.json (2 hunks)
  • apps/storybook/src/Accordion.stories.tsx (1 hunks)
  • apps/storybook/src/Alert.stories.tsx (1 hunks)
  • apps/storybook/src/Avatar.stories.tsx (1 hunks)
  • apps/storybook/src/AvatarGroup.stories.tsx (1 hunks)
  • apps/storybook/src/Badge.stories.tsx (1 hunks)
  • apps/storybook/src/Banner.stories.tsx (1 hunks)
  • apps/storybook/src/Blockquote.stories.tsx (1 hunks)
  • apps/storybook/src/Breadcrumb.stories.tsx (1 hunks)
  • apps/storybook/src/Button.stories.tsx (1 hunks)
  • apps/storybook/src/ButtonGroup.stories.tsx (1 hunks)
  • apps/storybook/src/Card.stories.tsx (1 hunks)
  • apps/storybook/src/Carousel.stories.tsx (1 hunks)
  • apps/storybook/src/Checkbox.stories.tsx (1 hunks)
  • apps/storybook/src/Clipboard.stories.tsx (1 hunks)
  • apps/storybook/src/DarkThemeToggle.stories.tsx (1 hunks)
  • apps/storybook/src/Datepicker.stories.tsx (1 hunks)
  • apps/storybook/src/Drawer.stories.tsx (1 hunks)
  • apps/storybook/src/Dropdown.stories.tsx (1 hunks)
  • apps/storybook/src/FileInput.stories.tsx (1 hunks)
  • apps/storybook/src/FloatingLabel.stories.tsx (1 hunks)
  • apps/storybook/src/Footer.stories.tsx (1 hunks)
  • apps/storybook/src/HR.stories.tsx (1 hunks)
  • apps/storybook/src/Kbd.stories.tsx (1 hunks)
  • apps/storybook/src/Label.stories.tsx (1 hunks)
  • apps/storybook/src/List.stories.tsx (1 hunks)
  • apps/storybook/src/ListGroup.stories.tsx (1 hunks)
  • apps/storybook/src/MegaMenu.stories.tsx (1 hunks)
  • apps/storybook/src/Modal.stories.tsx (1 hunks)
  • apps/storybook/src/Navbar.stories.tsx (1 hunks)
  • apps/storybook/src/Pagination.stories.tsx (1 hunks)
  • apps/storybook/src/Popover.stories.tsx (1 hunks)
  • apps/storybook/src/Progress.stories.tsx (1 hunks)
  • apps/storybook/src/Radio.stories.tsx (1 hunks)
  • apps/storybook/src/RangeSlider.stories.tsx (1 hunks)
  • apps/storybook/src/Rating.stories.tsx (1 hunks)
  • apps/storybook/src/Select.stories.tsx (1 hunks)
  • apps/storybook/src/Sidebar.stories.tsx (1 hunks)
  • apps/storybook/src/Spinner.stories.tsx (1 hunks)
  • apps/storybook/src/Table.stories.tsx (1 hunks)
  • apps/storybook/src/Tabs.stories.tsx (1 hunks)
  • apps/storybook/src/TextInput.stories.tsx (1 hunks)
  • apps/storybook/src/Textarea.stories.tsx (1 hunks)
  • apps/storybook/src/Timeline.stories.tsx (1 hunks)
  • apps/storybook/src/Toast.stories.tsx (1 hunks)
  • apps/storybook/src/ToggleSwitch.stories.tsx (1 hunks)
  • apps/storybook/src/Tooltip.stories.tsx (1 hunks)
🔇 Additional comments (51)
apps/storybook/src/Avatar.stories.tsx (1)

1-1: Clean migration to Vite-based Storybook types.

The import update from @storybook/react to @storybook/react-vite aligns with Storybook 9.x and the Vite integration. No logic changes, so the story behavior remains intact.

apps/storybook/src/Navbar.stories.tsx (1)

1-1: LGTM!

The type import update is consistent with the Storybook 9.x upgrade across the codebase.

apps/storybook/src/Progress.stories.tsx (1)

1-1: LGTM!

The Vite-based type import is correctly applied.

apps/storybook/src/Carousel.stories.tsx (1)

1-1: LGTM!

The import update is correctly applied for Storybook 9.x.

apps/storybook/src/FloatingLabel.stories.tsx (1)

1-1: LGTM!

The type import migration is correct.

apps/storybook/src/Pagination.stories.tsx (1)

1-1: LGTM!

The import path is correctly updated for the Vite-based Storybook setup.

apps/storybook/src/ListGroup.stories.tsx (1)

1-1: LGTM!

The type import update completes the migration pattern seen across all story files.

apps/storybook/src/Spinner.stories.tsx (1)

1-1: LGTM! Type import updated for Storybook 9.x compatibility.

The migration to @storybook/react-vite is consistent with the Storybook 9.x upgrade and Vite-based type definitions.

apps/storybook/src/MegaMenu.stories.tsx (1)

1-1: LGTM! Type import updated for Storybook 9.x compatibility.

The migration to @storybook/react-vite is consistent with the Storybook 9.x upgrade and Vite-based type definitions.

apps/storybook/src/HR.stories.tsx (1)

1-1: LGTM! Type import updated for Storybook 9.x compatibility.

The migration to @storybook/react-vite is consistent with the Storybook 9.x upgrade and Vite-based type definitions.

apps/storybook/src/Label.stories.tsx (1)

1-1: LGTM! Type import updated for Storybook 9.x compatibility.

The migration to @storybook/react-vite is consistent with the Storybook 9.x upgrade and Vite-based type definitions.

apps/storybook/src/Textarea.stories.tsx (1)

1-1: LGTM! Type import updated for Storybook 9.x compatibility.

The migration to @storybook/react-vite is consistent with the Storybook 9.x upgrade and Vite-based type definitions.

apps/storybook/src/Timeline.stories.tsx (1)

1-1: LGTM! Type import updated for Storybook 9.x compatibility.

The migration to @storybook/react-vite is consistent with the Storybook 9.x upgrade and Vite-based type definitions.

apps/storybook/src/AvatarGroup.stories.tsx (1)

1-1: LGTM! Type import updated for Storybook 9.x compatibility.

The migration to @storybook/react-vite is consistent with the Storybook 9.x upgrade and Vite-based type definitions.

apps/storybook/src/List.stories.tsx (1)

1-1: LGTM! Type import updated for Storybook 9.x compatibility.

The migration to @storybook/react-vite is consistent with the Storybook 9.x upgrade and Vite-based type definitions.

apps/storybook/src/Breadcrumb.stories.tsx (1)

1-1: LGTM! Type import correctly updated.

Consistent with the Storybook 9.x migration pattern.

apps/storybook/src/Tooltip.stories.tsx (1)

1-1: LGTM! Type import correctly updated.

Consistent with the Storybook 9.x migration pattern.

apps/storybook/src/Select.stories.tsx (1)

1-1: LGTM! Type import correctly updated.

Consistent with the Storybook 9.x migration pattern.

apps/storybook/src/Popover.stories.tsx (1)

1-1: LGTM! Type import correctly updated.

Consistent with the Storybook 9.x migration pattern.

apps/storybook/src/Blockquote.stories.tsx (1)

1-1: LGTM! Type import correctly updated.

Consistent with the Storybook 9.x migration pattern.

apps/storybook/src/Datepicker.stories.tsx (1)

1-1: LGTM! Type import correctly updated.

Consistent with the Storybook 9.x migration pattern.

apps/storybook/src/Toast.stories.tsx (1)

1-1: LGTM! Type import correctly updated.

Consistent with the Storybook 9.x migration pattern.

apps/storybook/src/Clipboard.stories.tsx (1)

1-1: ✓ Type import migration verified and valid.

The import of types from @storybook/react-vite is correct and confirmed—@storybook/react-vite v9.1.15 is properly installed in the project.

apps/storybook/src/Drawer.stories.tsx (1)

1-1: LGTM! Type import correctly updated for Storybook 9.x.

The migration from @storybook/react to @storybook/react-vite aligns with Storybook 9.x's Vite-based architecture.

apps/storybook/src/Alert.stories.tsx (1)

1-1: LGTM! Type import correctly updated for Storybook 9.x.

apps/storybook/src/ButtonGroup.stories.tsx (1)

1-1: LGTM! Type import correctly updated for Storybook 9.x.

apps/storybook/src/ToggleSwitch.stories.tsx (1)

1-1: LGTM! Type import correctly updated for Storybook 9.x.

apps/storybook/src/Radio.stories.tsx (1)

1-1: LGTM! Type import correctly updated for Storybook 9.x.

apps/storybook/src/Checkbox.stories.tsx (1)

1-1: LGTM! Type import correctly updated for Storybook 9.x.

apps/storybook/src/FileInput.stories.tsx (1)

1-1: LGTM! Type import correctly updated for Storybook 9.x.

apps/storybook/src/Dropdown.stories.tsx (1)

1-2: Action import is correct; but StoryFn is deprecated in Storybook 9.x—consider migrating to CSF3.

The action import from storybook/actions is correctly updated for Storybook 9.x. However, StoryFn is the deprecated CSF2 pattern. Storybook 9.x recommends CSF3 with StoryObj instead. While StoryFn still works in 9.1.15, consider migrating using the official codemod:

npx storybook@latest migrate csf-2-to-3 --glob="**/*.stories.*"

Update the import to import type { Meta, StoryObj } from "@storybook/react-vite"; and adjust story definitions accordingly for forward compatibility.

Likely an incorrect or invalid review comment.

apps/storybook/src/Rating.stories.tsx (1)

1-1: LGTM! Storybook type imports correctly updated for Vite.

The migration from @storybook/react to @storybook/react-vite is the correct approach for Storybook 9.x with Vite builder.

apps/storybook/src/Tabs.stories.tsx (1)

1-1: LGTM! Import updated correctly.

apps/storybook/src/Footer.stories.tsx (1)

1-1: LGTM! Import updated correctly.

apps/storybook/src/DarkThemeToggle.stories.tsx (1)

1-1: LGTM! Import updated correctly.

apps/storybook/src/Kbd.stories.tsx (1)

1-1: LGTM! Import updated correctly.

apps/storybook/src/Badge.stories.tsx (1)

1-1: LGTM! Import updated correctly.

apps/storybook/src/Table.stories.tsx (1)

1-1: LGTM! Import updated correctly.

apps/storybook/src/RangeSlider.stories.tsx (2)

1-1: LGTM! Import updated correctly.


1-1: All story files have been successfully migrated to @storybook/react-vite with no legacy imports remaining.

Verification confirms all 46 .stories.tsx files in the codebase use the new @storybook/react-vite import—no files remain on the old @storybook/react import. The migration is complete and consistent.

apps/storybook/src/TextInput.stories.tsx (1)

1-1: LGTM! Type import correctly updated for Storybook 9.x.

The migration to @storybook/react-vite for type imports is consistent with the Vite-based Storybook 9.x setup being adopted across the codebase.

apps/storybook/src/Modal.stories.tsx (2)

2-2: LGTM! Type import correctly updated.

The migration to @storybook/react-vite for type imports aligns with the Storybook 9.x upgrade.


1-1: The import path is correct and requires no changes.

In Storybook 9.x (including 9.1.15), actions should be imported from storybook/actions, which is exactly what the code does. This is the official consolidated core path and is the standard approach for this Storybook version. The import is being used correctly in the code.

Likely an incorrect or invalid review comment.

apps/storybook/.storybook/preview.tsx (1)

2-2: LGTM! Type imports correctly migrated.

The type import update to @storybook/react-vite is consistent with the Storybook 9.x migration and has no runtime impact.

apps/storybook/src/Sidebar.stories.tsx (1)

1-1: LGTM! Type import correctly updated.

The migration to @storybook/react-vite is consistent with the Storybook 9.x upgrade across all story files.

apps/storybook/src/Banner.stories.tsx (1)

1-1: LGTM! Type import correctly migrated.

The type import update aligns with the Vite-based Storybook 9.x setup being adopted throughout the project.

apps/storybook/src/Card.stories.tsx (1)

1-1: LGTM! Type import correctly updated.

The migration to @storybook/react-vite completes the consistent pattern across all reviewed story files.

apps/storybook/package.json (1)

22-25: Storybook 9.1.15 upgrade verified and confirmed compatible.

The action() function imports in Modal.stories.tsx and Dropdown.stories.tsx are already correctly configured for Storybook 9.x, using import { action } from "storybook/actions". The actions API is provided by Storybook's core package at the path storybook/actions, which is what your codebase is using. The old @storybook/addon-actions package has been properly removed from dependencies, and @storybook/test is not needed—it's only required for the fn() spy helper, not for action().

apps/storybook/.storybook/main.ts (1)

15-19: No action required—remove the review comment.

Storybook 9 no longer includes addon-essentials, as its functionality (Controls, Actions, Viewport, Interactions) was moved into core. The current configuration is correct for Storybook 9.x. The explicit addons present (addon-links, addon-themes, addon-docs) are the appropriate selections beyond core functionality. No broken features or missing panels will result from this change.

Likely an incorrect or invalid review comment.

apps/storybook/src/Accordion.stories.tsx (1)

1-1: LGTM: Type import correctly updated for Storybook 9.x with Vite.

The switch from @storybook/react to @storybook/react-vite is the expected change for Storybook 9.x using Vite. Since this is a type-only import, there's no runtime impact.

apps/storybook/src/Button.stories.tsx (1)

1-1: LGTM: Type import correctly updated for Storybook 9.x with Vite.

Consistent with the Accordion story file, this correctly switches to @storybook/react-vite for the Storybook 9.x upgrade.

@storybookjs storybookjs closed this by deleting the head repository Oct 28, 2025
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