feat: add and update Storybook stories for UI components #3067
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds comprehensive Storybook stories for UI components and updates existing stories to follow the project's storybook playbook guidelines.
Updates to existing stories (5 files):
@storybook/reactto@storybook/nextjs-viteto match the storybook framework configtitleproperty from meta objects per playbook guidelinesfn()from@storybook/testNew stories created (15 files):
All stories follow the playbook patterns with
Defaultas the first exported story, properargTypeswith descriptions, andfn()for callback props.Related Issues
N/A - Audit task to improve Storybook coverage
Type of Change
Testing
Note: Unable to run Storybook locally due to Node.js version requirements (needs 20.19+ or 22.12+). Stories should be verified in CI or by a reviewer with the correct Node version.
Human Review Checklist
Card.stories.tsxhas an unusedfnimport that should be removed@onlook/ui/ai-elements) resolve correctlyAdditional Notes
Important
Adds and updates Storybook stories for various UI components, aligning with project guidelines and using
@storybook/nextjs-vite.Avatar,Badge,Button,Card,Checkbox,CodeBlock,Input,Progress,ProjectCard,ProjectsPage,Reasoning,Select,SelectProject,Skeleton,Switch,Tabs,Textarea,Tool,Tooltip, andTopBar.@storybook/nextjs-viteand removestitleproperty from meta objects.fn()from@storybook/testfor callback mocks.Defaultas the first exported story and properargTypeswith descriptions.This description was created by
for f25c5c2. You can customize this summary. It will automatically update as commits are pushed.