Skip to content

new-webui: Add Storybook support for custom components. #825

@junhaoliao

Description

@junhaoliao

Request

To make all custom components in the application testable and documentable via Storybook. This will enable visual testing, interaction simulation, and accessibility checks, while also improving maintainability and onboarding.

Possible implementation

  1. Initial setup

    • Integrate Storybook for React into the project using the recommended CLI setup.
    • Configure Webpack or Vite support as needed based on the current bundler used in the app.
  2. Component story creation

    • Write individual stories (.stories.tsx) for each reusable UI component.
    • Include multiple states (e.g., loading, error, active, disabled) to support visual regression and interaction testing.
  3. Testing integration

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions