Skip to content

feat(frontend): add Storybook component catalog - #958

Merged
Dydex merged 1 commit into
AstronLabs:mainfrom
Adedayo0101:feat/frontend-storybook-component-catalog
Oct 29, 2026
Merged

Dydex merged 1 commit into
AstronLabs:mainfrom
Adedayo0101:feat/frontend-storybook-component-catalog

Conversation

@Adedayo0101

Copy link
Copy Markdown
Contributor

Summary

Closes #869. Adds Storybook 10 with 13 co-located stories covering 29 deterministic states for shared state, form, loan, governance, milestone, onboarding, notification, and transaction components. Storybook's axe accessibility checks are configured to fail the browser test suite on violations.

A pull-request workflow runs the Storybook tests and static build, uploads a 14-day preview artifact, and links it in the workflow summary. This repository has no configured public preview provider, so the artifact is downloadable but not a hosted live URL. See docs/STORYBOOK.md for setup and authoring guidance.

Testing

  • cd frontend && npm run test:storybook — passed (13 files, 29 tests, including axe checks).
  • cd frontend && npm run build-storybook — passed. Vite emitted use client and large-chunk warnings.
  • cd frontend && npm run type-check — passed.
  • cd frontend && npm run lint -- .storybook 'src/components/**/*.stories.tsx' src/components/CreditMilestoneCard.tsx src/components/governance/QuorumProgressBar.tsx src/components/onboarding/ProgressStepper.tsx src/components/tx/TransactionResult.tsx — passed with one unused-import warning for CreditTier in CreditMilestoneCard.tsx.
  • git diff --check — passed.

Checklist

  • Tests cover the change
  • Tests build loans, applicants and milestones with the shared factories in backend/src/test-utils/factories — no inline fixtures for these entities (see docs/TEST_DATA_FACTORIES.md) — reviewed; not applicable to these frontend component stories (no backend entity tests were added).
  • Nothing secret is exposed to the client: new browser-side variables use the NEXT_PUBLIC_ prefix and hold only public values — no browser-side variables were added.
  • Docs updated if behaviour or configuration changed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Dydex
Dydex merged commit 63318a9 into AstronLabs:main Oct 29, 2026
30 of 58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(frontend): Add a Storybook Component Catalog with Visual States

2 participants