Skip to content

Conversation

@saddlepaddle
Copy link

Summary

  • Add 100+ new component stories across packages/ui, packages/features, and apps/web
  • Migrate from local hacky implementation to @onlook/storybook-plugin npm package
  • Clean up Storybook configuration and remove redundant code
  • Simplify E2B sandbox template

Changes

New Stories

Added comprehensive Storybook stories for components including:

  • Form inputs (TextField, Select, DatePicker, etc.)
  • Layout components (WizardLayout, Shell, etc.)
  • Avatar and image components
  • Editor and plugins
  • Feature components (troubleshooter, settings, etc.)

Plugin Migration

  • Replaced storybook-onbook-plugin with @onlook/storybook-plugin
  • Removed local vite-plugin-component-loc.ts (now in npm package)
  • Removed iframe communication components (handled by plugin)
  • Removed generate-screenshots.ts (CLI handles this)

Cleanup

  • Simplified .storybook/main.ts configuration
  • Simplified .storybook/preview.tsx decorators
  • Removed unused Babel and Playwright dependencies from storybook package
  • Simplified E2B sandbox template (plugin CLI starts Storybook automatically)

Test plan

  • Storybook runs locally with yarn dev
  • E2B sandbox build completes successfully
  • Screenshot generation works (1857 stories)

🤖 Generated with Claude Code

saddlepaddle and others added 8 commits December 23, 2025 15:48
Generated comprehensive Storybook stories for components in:
- packages/ui/components (slider, app cards, calendar switch, etc.)
- packages/features (data-table, embed, insights, forms, schedules, etc.)
- apps/web/components (dialogs, booking actions, auth, apps setups)

Key changes:
- Add path aliases in .storybook/main.ts for apps/web components
- Fix @storybook/test -> storybook/test imports (11 files)
- Fix JSX syntax errors in AddVariablesPlugin and MintlifyChat stories
- Add tooling/storybook-generator for parallel story generation

Note: Some stories removed due to platform-atoms dependencies that
require additional Storybook configuration (Booker, EmbedTabs, etc.)

TODO: Fix ESLint warnings (unused imports, explicit any types)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Update template.ts to use feat/storybook-stories branch
- Limit screenshot generation to 10 for e2e testing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Import storybookOnlookPlugin from storybook-onbook-plugin@0.2.1
- Update sandbox template to use yarn exec for CLI binary
- Add --start flag to generate-screenshots CLI

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Update storybook-onbook-plugin from 0.2.1 to 0.2.7
- Remove -p 6006 from storybook scripts to avoid duplicate args when plugin adds port
- Update sandbox template to use 2-step screenshot generation approach

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Delete local plugin now using storybook-onbook-plugin npm package
- Fix unused import warning in ModalContainer.stories.tsx

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Replace storybook-onbook-plugin with @onlook/storybook-plugin
- Remove local vite-plugin-component-loc.ts (now in npm package)
- Remove iframe communication components (handled by plugin)
- Remove generate-screenshots.ts (CLI handles this)
- Simplify template.ts (CLI starts Storybook automatically)
- Remove unused Babel and Playwright dependencies

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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