Skip to content

Add pause and resume buttons to stream detail page #356

@ogazboiz

Description

@ogazboiz

Join our community: https://t.me/+DOylgFv1jyJlNzM0

Description

The stream detail page (/streams/[id]) has Withdraw, Top-up, and Cancel buttons but no Pause or Resume. The Stream type already has isPaused and pausedAt fields — the UI just needs the actions.

What Needs to Happen

  • Add Pause button (sender only, stream active): call pause_stream() via Freighter, show TransactionTracker
  • Add Resume button (sender only, stream paused): call resume_stream(), show TransactionTracker
  • Show a "Stream Paused" banner with pausedAt timestamp when paused
  • Stop the live claimable counter from ticking while isPaused === true
  • Add pauseStream and resumeStream helpers to frontend/src/lib/soroban.ts

Files

  • frontend/src/app/streams/[id]/page.tsx
  • frontend/src/lib/soroban.ts

Acceptance Criteria

  • Pause/Resume shown based on stream state and user role
  • Live counter stops ticking when paused
  • Signed transaction submitted and confirmed via TransactionTracker

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programfrontendFrontend related tasks

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions