# TASK-004: Storybook 8 Story Migration ## Status: ✅ COMPLETED (2025-07-12) ## Overview Migrate all Storybook stories from the deprecated CSF2 format (using `ComponentStory` and `ComponentMeta`) to the new CSF3 format required by Storybook 8. ## Problem Statement After upgrading to Storybook 8 in TASK-001, the story files still use the old Storybook 6/7 APIs: - `ComponentStory` type is removed - `ComponentMeta` type is removed - Stories use the old CSF2 format This causes ~214 TypeScript errors in `*.stories.tsx` files. ## Error Analysis | Error Type | Count | Location | |------------|-------|----------| | `ComponentStory` not exported | ~107 | `*.stories.tsx` | | `ComponentMeta` not exported | ~107 | `*.stories.tsx` | | **Total** | **~214** | `packages/noodl-core-ui/src/components/*` | ## Migration Pattern ### Before (CSF2 / Storybook 6-7) ```typescript import { ComponentStory, ComponentMeta } from '@storybook/react'; import { Button } from './Button'; export default { title: 'Components/Button', component: Button, argTypes: { variant: { control: 'select', options: ['primary', 'secondary'] } } } as ComponentMeta; const Template: ComponentStory = (args) =>