Skip to content

feat: integrate storybook-addon-tanstack-start#7

Open
jonmumm wants to merge 3 commits intomainfrom
feat/storybook-addon-tanstack-start
Open

feat: integrate storybook-addon-tanstack-start#7
jonmumm wants to merge 3 commits intomainfrom
feat/storybook-addon-tanstack-start

Conversation

@jonmumm
Copy link
Copy Markdown
Member

@jonmumm jonmumm commented Mar 23, 2026

Summary

  • Add storybook-addon-tanstack-start (v0.1.0 from npm) which provides a Vite plugin that stubs TanStack Start server-side imports so stories render without a server
  • Remove hand-rolled .storybook/withTanStackRouter.tsx (was dead code, never imported)
  • Use tanstackStartPlugin() in viteFinal to handle import stubbing for @tanstack/react-start, @tanstack/start-server-core, routeTree.gen, and virtual entries

Test plan

  • pnpm typecheck — clean
  • pnpm test — 147/147
  • pnpm build-storybook — builds successfully
  • pnpm test-storybook — 44/44 passing

🤖 Generated with Claude Code

AI Feature Agent and others added 2 commits March 17, 2026 10:37
actor-kit 0.52.5 fixes the createMachineServer type constraint —
TMachine now extends AnyActorKitStateMachine instead of over-constraining
with WithActorKitContext<Record<string, unknown>, ...>.

Both game.server.ts and session.server.ts now pass their machines
without any type cast.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace hand-rolled .storybook/withTanStackRouter.tsx with
storybook-addon-tanstack-start, which provides a Vite plugin
that stubs TanStack Start server-side imports (createServerFn,
server entries, cookies) so stories render without a server.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 23, 2026

Preview Deployment

URL https://trivia-jam-pr-7.jonathanrmumm.workers.dev
Worker trivia-jam-pr-7
Status Deployed
Commit b950c8a95d91d656a09433180b479e5bfd199060

Single-package install — router addon is now bundled as a dependency.

Co-Authored-By: Claude Opus 4.6 (1M context) <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.

1 participant