Skip to content

fix(#387,#400,#402,#398): invert demo-history ternary, validate strea… - #440

Merged
Jaydbrown merged 1 commit into
conduit-protocol:mainfrom
BaseDev-Eth:main
Aug 31, 2026
Merged

fix(#387,#400,#402,#398): invert demo-history ternary, validate strea…#440
Jaydbrown merged 1 commit into
conduit-protocol:mainfrom
BaseDev-Eth:main

Conversation

@BaseDev-Eth

Copy link
Copy Markdown

Closes #387 lib/indexer.ts:77 Flipped ternary: publicKey ? [] : DEMO_TXS — demo data now only shows for placeholder mode (no wallet), not for real users

Closes #400 app/stream/[id]/page.tsx:80 Added /^\d+$/ validation before BigInt(id) — non-numeric IDs show "Invalid stream ID" instead of raw SyntaxError

Closes #402 app/stream/[id]/page.tsx:89-100,118-131 Replaced Promise.all with sequential loading — stream info loads first (core content), withdrawable fetches independently with its own catch block so a timeout/rate-limit doesn't block the detail view

Closes #398 components/stream/RateTicker.tsx:14,39-46 Added endTime prop; elapsed seconds are capped at endTime - startRef.ts so the live counter freezes at the stream's end instead of ticking past the contract balance

…nduit-protocol#398): invert demo-history ternary, validate stream id, graceful withdrawable fallback, cap RateTicker at endTime

- conduit-protocol#387: flip fetchTransactionHistory ternary so demo data returns only when
  no publicKey is connected, not for real wallets
- conduit-protocol#400: validate URL segment against /^\d+$/ before BigInt() to prevent
  raw SyntaxError surfacing to the user
- conduit-protocol#402: load getStreamInfo first, then fetch getWithdrawable separately with
  independent error handling so a withdrawable failure doesn't block the
  entire detail page (both initial load and background refresh)
- conduit-protocol#398: add endTime prop to RateTicker and cap elapsed seconds so the live
  counter freezes at the stream's end instead of ticking past the contract
  balance
@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@BaseDev-Eth 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 91747d2 into conduit-protocol:main Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment