Skip to content

chore: remove unused exportStreams util and add stream component stories - #1003

Merged
Austinaminu2 merged 1 commit into
FlowwStar:mainfrom
MamaLove360:chore/issues-980-981-984-985
Oct 16, 2026
Merged

Austinaminu2 merged 1 commit into
FlowwStar:mainfrom
MamaLove360:chore/issues-980-981-984-985

Conversation

@MamaLove360

Copy link
Copy Markdown
Contributor

Summary

#985 Remove unused utils/exportStreams.ts

  • Deleted utils/exportStreams.ts and __tests__/utils/exportStreams.test.ts.
  • The module was only imported by its own test and duplicated lib/export.ts with a separate number-based Stream type. grep -r exportStreams confirms nothing else references it.

#984 StreamTemplates stories

  • components/streams/stream-templates.stories.tsx: Default list story, with selection state wired through the real onSelect / selectedId props.

#981 CreateConfirmation stories

  • components/streams/create-confirmation.stories.tsx: Ready and Pending stories using the component's real bigint props. useTokenPrice falls back to a null price on its own, so no provider mocks are needed.

#980 StreamPreview stories

  • components/streams/stream-preview.stories.tsx: WithCliff and WithoutCliff stories.

Verification

  • npx tsc --noEmit: no errors
  • npm run build: passes
  • npm test: all tests pass except 7 in __tests__/lib/contract-scval.test.ts, which fail on main too and are not related to this PR.

Closes #985
Closes #984
Closes #981
Closes #980

Remove dead code:
- Delete utils/exportStreams.ts and its test. The module was only imported
  by its own test and duplicated lib/export.ts using a separate Stream type
  with number amounts, while the app uses bigint StreamData. Verified with
  `grep -r exportStreams` that nothing else references it.

Add Storybook stories (components/streams):
- stream-templates.stories.tsx: Default list story with interactive
  selection state wired through the real onSelect/selectedId props.
- create-confirmation.stories.tsx: Ready and Pending stories using the
  component's real bigint props (USDC, 30-day stream). The useTokenPrice
  hook degrades gracefully to a null price, so no provider mocks are needed.
- stream-preview.stories.tsx: WithCliff and WithoutCliff stories covering
  the cliff step in the chart, cliff stats and timeline.

`npx tsc --noEmit` reports no errors and `npm run build` passes.

Closes FlowwStar#985
Closes FlowwStar#984
Closes FlowwStar#981
Closes FlowwStar#980
@drips-wave

drips-wave Bot commented Oct 16, 2026

Copy link
Copy Markdown

@MamaLove360 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Austinaminu2
Austinaminu2 merged commit ef0d254 into FlowwStar:main Oct 16, 2026
4 of 6 checks passed

This branch was successfully deployed

1 active deployment
staging — 7f48da1d Deployed Oct 16, 2026 by MamaLove360 via deploy-staging #318
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants