Skip to content

feat: add Storybook stories for remaining UI primitives#871

Merged
Ejirowebfi merged 5 commits into
Favourorg:mainfrom
Dennis-Ritchie1:feat/storybook-ui-primitive-stories
Jun 25, 2026
Merged

feat: add Storybook stories for remaining UI primitives#871
Ejirowebfi merged 5 commits into
Favourorg:mainfrom
Dennis-Ritchie1:feat/storybook-ui-primitive-stories

Conversation

@Dennis-Ritchie1

@Dennis-Ritchie1 Dennis-Ritchie1 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds Storybook stories for the remaining UI primitive components so they can be developed and reviewed in isolation:

  • ConfirmModal.stories.tsx
  • ProgressIndicator.stories.tsx
  • InsufficientBalanceWarning.stories.tsx

Also adds esbuild as a direct frontend devDependency so the Storybook build resolves correctly in CI.

Changes

  • 3 new .stories.tsx files under frontend/src/components/UI/
  • frontend/package.json / package-lock.json: add esbuild devDependency
  • frontend/.gitignore: ignore Storybook build output

Notes

Dennis-Ritchie1 and others added 5 commits June 25, 2026 14:08
…InsufficientBalanceWarning

Adds *.stories.tsx coverage for the remaining UI primitives so every
component in src/components/UI/ has a default plus meaningful variants:

- ConfirmModal: default, no-description, destructive, and closed states
- ProgressIndicator: pending, in-progress, completed, and error states
- InsufficientBalanceWarning: testnet, mainnet, and large-shortfall states
  (wrapped in mocked Wallet/Toast context providers)

Also ignores the Storybook build output (storybook-static/). The
build-storybook step already runs in .github/workflows/storybook.yml and
passes locally via `npm run build-storybook`.
The Storybook CI job installs with `npm install --legacy-peer-deps`, which
skips peer dependencies. esbuild was only present as a peer dep, so
esbuild-register (used to evaluate .storybook/main.ts) failed with
"Cannot find module 'esbuild'" in CI. Declaring esbuild directly ensures
it is hoisted to top-level node_modules during the workflow build.
Fixes the Frontend 'Check formatting' CI job (prettier --check).
Repo-wide formatting debt unrelated to the Storybook stories but
required for this branch's CI to pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Fixes the 'Rust Formatting' CI job (cargo fmt -- --check).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…rimitive-stories

# Conflicts:
#	frontend/package-lock.json
#	frontend/package.json
#	frontend/src/components/TokenDetail.tsx
#	frontend/src/components/TransactionHistory.tsx
#	frontend/src/hooks/useTransactionHistory.ts
@Ejirowebfi Ejirowebfi merged commit e09eef9 into Favourorg:main Jun 25, 2026
8 of 9 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.

Storybook: add stories for all UI primitive components

2 participants