Skip to content

Add Storybook for component development and documentation #189

Description

@Akatenvictor

What

Set up Storybook for isolated component development, visual testing, and interactive documentation of the component library.

Why

Storybook lets developers build and test components in isolation without running the full application. It serves as living documentation for the component library and enables visual regression testing.

Scope

In scope:

  • Install and configure Storybook for Next.js
  • Create stories for core components: Sidebar, TopHeader, MusicLoader, OverviewCards
  • Add controls for props manipulation
  • Configure viewport addon for responsive testing
  • Add a11y addon for accessibility checking

Out of scope:

  • Stories for all components (add incrementally)
  • Visual regression testing setup (separate issue)
  • Design token documentation
  • Deployment of Storybook

Acceptance Criteria

  • Storybook runs locally with npm run storybook
  • Stories exist for Sidebar, TopHeader, MusicLoader, OverviewCards
  • Props controls work for each story
  • Viewport addon shows responsive layouts
  • a11y addon catches accessibility issues
  • Build succeeds without errors

Technical Context

  • Run npx storybook@latest init in the app/ directory
  • Stories in app/src/components/ComponentName/ComponentName.stories.tsx

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions