Skip to content

feat: stream UX enhancements - KPI cards, preview chart, one-click top-up, latency tooltip - #839

Merged
Jaydbrown merged 1 commit into
conduit-protocol:mainfrom
rossydefi:feature/ux-enhancements-684-685-779-796
Oct 22, 2026
Merged

Jaydbrown merged 1 commit into
conduit-protocol:mainfrom
rossydefi:feature/ux-enhancements-684-685-779-796

Conversation

@rossydefi

Copy link
Copy Markdown
Contributor

Summary

This PR ships four small, focused UX enhancements for senders, treasury managers, and engineers troubleshooting RPC issues. Each change is independent, covered by unit tests, and backwards compatible (no contract changes).

Changes

Dashboard KPI cards (#685)

  • Added components/dashboard/KpiCards.tsx rendering Total Value Streamed (total capital locked) and Active Run Rate (aggregate $/hour across active streams).
  • Wired into app/dashboard/page.tsx with i18n keys (en/es/pt).
  • Added components/__tests__/KpiCards.test.tsx.

Interactive stream preview chart (#684)

  • Added components/stream/StreamPreviewChart.tsx — lightweight SVG projection showing linear accrual slope plus cliff unlock jump, current-time marker, and end-of-stream projection.
  • Embedded in app/create/page.tsx so senders get visual confirmation before funding.
  • Added components/__tests__/StreamPreviewChart.test.tsx.

One-click top-up modal with balance auto-fill (#779)

  • Added components/stream/QuickTopUpModal.tsx — one-click top-up with wallet balance auto-fill (useTokenBalance), MAX button, and duration-extension preview.
  • Wired into app/stream/[id]/page.tsx via StreamActions quick action.
  • Added new topUpStream helper in lib/soroban.ts.
  • Added components/__tests__/QuickTopUpModal.test.tsx.

Network latency tooltip with exact RPC timing (#796)

  • Extended components/NetworkLatencyIndicator.tsx with an accessible tooltip showing exact Horizon RPC round-trip time in ms, last-checked timestamp, and status thresholds.
  • Updated components/__tests__/NetworkLatencyIndicator.test.tsx.

Testing

  • New unit tests for all four components (KpiCards, StreamPreviewChart, QuickTopUpModal, NetworkLatencyIndicator).
  • Updated dashboard and stream detail page tests for new UI.
  • tsc --noEmit shows no new errors vs baseline (repo has pre-existing type errors in unrelated files).

Screenshots / Notes

  • No breaking changes, no new dependencies, no env changes.
  • i18n strings added for dashboard KPIs in en/es/pt.

Closes #779
Closes #685
Closes #684
Closes #796

@drips-wave

drips-wave Bot commented Oct 20, 2026

Copy link
Copy Markdown

@rossydefi 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

@Jaydbrown
Jaydbrown merged commit dd0eb67 into conduit-protocol:main Oct 22, 2026
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