[Frontend] Remove the dead StreamCard/useOptimisticStream pair or wire it up
Overview & Background
StreamCard.tsx ships a full interactive component (withdraw/top-up/pause/cancel against useOptimisticStream) but is reachable only from tests — no page or production component renders it. Its "Top up" button would silently top up exactly 1000000 base units (StreamCard.tsx:115: onClick={() => void topUp('1000000')}) with no user input if it were ever mounted. useOptimisticStream is imported only by StreamCard, and the optimistic pipeline it exercises is untested in any real UI flow.
Technical Specification & Architecture
- Either delete both files (and the
optimistic-uitest that only exercises the dead component), or - Integrate
StreamCardinto the dashboard/incoming views with a real amount input.
Target Files
frontend/src/components/dashboard/StreamCard.tsxfrontend/src/hooks/useOptimisticStream.tsfrontend/src/__tests__/optimistic-ui.test.tsx
Acceptance Criteria
- [ ] No dead interactive components remain unreferenced by production code.
- [ ] If kept, the top-up flow takes user input and is covered by an integration test.
- [ ] No magic hardcoded transfer amounts.
@abercrombie04 has applied to work on this issue as part of the Stellar Wave Program's 11th wave.
i can solve
ℹ️ Repo Maintainers: To accept this application, review their application or assign @abercrombie04 to this issue.
Congratulations, @abercrombie04! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.
🧑💻 @abercrombie04: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
This issue has been completed by @abercrombie04 as part of the Stellar Wave Program's 11th Wave 🥳
😎 @abercrombie04: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.