Summary
Add Storybook to the console/ frontend application to enable isolated component development, visual documentation, and testing for our UI components.
Motivation
The console application has a rich set of UI components (43 shadcn/ui primitives in src/components/ui/ plus ~20 app-level shared components) but currently lacks:
- Visual documentation for component variants and states
- An isolated environment for component development
- A way to test components in isolation without running the full application
Scope
Components to document
UI Primitives (src/components/ui/):
- Core:
Button, Input, Select, Checkbox, Switch, Badge, Avatar
- Layout:
Card, Dialog, Sheet, Tabs, Sidebar, ScrollArea, Separator
- Data:
Table, DataTable, JsonView
- Forms:
Form, Combobox, MultiSelect, ColorPicker, InlineEdit, KeyValueEditor, TemplateInput, AttributeEditor
- Feedback:
Tooltip, Popover, DropdownMenu, Command, Skeleton
- Custom:
CodeEditor, Map, NavTabs, UserImportDialog
App-level components (src/components/):
AppSidebar, DataTable, Heading, Modal, PageContent, Pagination, Preview, ProjectSwitcher, SearchTable, Stack, Tile, Toast, CodeExample, ActionPreviewIframe
Implementation tasks
Technical notes
- Package manager: pnpm
- Build tool: Vite (use
@storybook/react-vite builder)
- Styling: Tailwind CSS v4 + CVA + tailwind-merge
- Component library: shadcn/ui with Radix UI primitives
Summary
Add Storybook to the
console/frontend application to enable isolated component development, visual documentation, and testing for our UI components.Motivation
The console application has a rich set of UI components (43 shadcn/ui primitives in
src/components/ui/plus ~20 app-level shared components) but currently lacks:Scope
Components to document
UI Primitives (
src/components/ui/):Button,Input,Select,Checkbox,Switch,Badge,AvatarCard,Dialog,Sheet,Tabs,Sidebar,ScrollArea,SeparatorTable,DataTable,JsonViewForm,Combobox,MultiSelect,ColorPicker,InlineEdit,KeyValueEditor,TemplateInput,AttributeEditorTooltip,Popover,DropdownMenu,Command,SkeletonCodeEditor,Map,NavTabs,UserImportDialogApp-level components (
src/components/):AppSidebar,DataTable,Heading,Modal,PageContent,Pagination,Preview,ProjectSwitcher,SearchTable,Stack,Tile,Toast,CodeExample,ActionPreviewIframeImplementation tasks
@storybook/react-vite, etc.).storybook/with Vite builder and Tailwind CSS supportpackage.json(storybook,build-storybook)Technical notes
@storybook/react-vitebuilder)