Add Storybook stories for DashboardStats

Closed Beginner friendly
#971 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Mystery-CLI is already working on this.

Since Oct 16, 2026.

  • #1004 by @Mystery-CLI — merged

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
react, storybook, typescript
Domain
frontend

Research direction

Start with components/streams/dashboard-stats.tsx to read its TypeScript props and find any hooks or providers it uses. Copy the structure of components/ui/badge.stories.tsx and create a sibling dashboard-stats.stories.tsx with a with-data story and a skeleton story, mocking hooks or providers where needed. Done when the stories render in npm run storybook and npx tsc --noEmit reports no errors in the new file.

Written by the indexing model from the issue text.

Description

documentation frontend good first issue

Description

DashboardStats has no stories, so its states can't be reviewed in isolation.

Location

components/streams/dashboard-stats.tsx. Stories live next to the component as *.stories.tsx (see components/ui/badge.stories.tsx).

Task

Add a *.stories.tsx covering:

  • with data
  • skeleton

Use the component's real props (check its TypeScript props) and mock hooks/providers where needed.

Acceptance criteria

  • Stories render in npm run storybook
  • npx tsc --noEmit reports no errors in the story file
  • Each listed state has a story

Good for contributors because

No app logic to change; a friendly way to learn the UI components.

Dominant language
TypeScript
Stars
1
Forks
144
Avg merge
11h 24m
Merged PRs (30d)
55

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from FlowwStar/FlowStar

All issues in FlowwStar/FlowStar

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.