Skip to content

feat: add reason-specific microcopy to ZeroAccrualBanner - #1355

Open
waterWang wants to merge 1 commit into
Fluxora-Org:mainfrom
waterWang:feat/zero-accrual-banner-reason-copy-1284
Open

feat: add reason-specific microcopy to ZeroAccrualBanner#1355
waterWang wants to merge 1 commit into
Fluxora-Org:mainfrom
waterWang:feat/zero-accrual-banner-reason-copy-1284

Conversation

@waterWang

Copy link
Copy Markdown

Summary

Adds reason-specific microcopy to ZeroAccrualBanner so recipients see distinct explanatory text depending on *why* their balance is zero.

Changes

New reason variants

  • not-started — streams are configured but haven't started yet
  • pre-cliff — streams are live but the cliff date hasn't been reached
  • paused — already existed, kept as-is

Updated callers

  • Streams.tsx: now passes pre-cliff instead of cliff when no zero-rate stream is detected
  • Recipient.tsx: now passes pre-cliff instead of cliff

Backward compatibility

All existing reason values (cliff, paused, rate-zero, schedule-future) remain supported.

Testing

  • 56 tests pass (added 4: not-started title/description, pre-cliff title/description, not-started chip label, pre-cliff chip label)
  • All existing tests continue to pass

Closes #1284

… / paused / pre-cliff)

Adds three new reason variants to ZeroAccrualBanner:
- "not-started": streams haven't started yet
- "paused": sender has paused the stream (already existed)
- "pre-cliff": cliff period hasn't been reached

Updates the Streams page and Recipient page to use "pre-cliff"
instead of the older "cliff" reason.

Closes Fluxora-Org#1284
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.

Add reason-specific microcopy (not-started / paused / pre-cliff) to src/components/ZeroAccrualBanner.tsx instead of one generic message

1 participant