Skip to content

[Frontend] Dashboard maps every stream to token 'TOKEN' and never reflects Paused/Cancelled status #553

@ogazboiz

Description

@ogazboiz

Telegram: https://t.me/+DOylgFv1jyJlNzM0

Why this matters

mapBackendStreamToFrontend in frontend/src/lib/dashboard.ts has two display bugs feeding the dashboard:

  1. token: "TOKEN" is hardcoded, so the dashboard table/cards literally show "TOKEN" instead of XLM/USDC/EURC (the symbol can be resolved from tokenAddress via TOKEN_ADDRESSES, as lib/api/streams.ts already does with resolveTokenLabel).
  2. status: s.isActive ? "Active" : "Completed" never produces "Paused" or "Cancelled", even though those are valid Stream["status"] values and BackendStream carries isPaused. As a result the dashboard's Paused tab (which filters s.status === "Paused") is always empty, and cancelled streams show as "Completed".

Acceptance criteria

  • Resolve the real token label from tokenAddress
  • Map status to Paused (when isPaused), Cancelled/Completed (when inactive — use events or available flags), and Active otherwise
  • Dashboard Paused tab shows paused streams; token column shows real symbols

Files to touch

  • frontend/src/lib/dashboard.ts (mapBackendStreamToFrontend)

Out of scope

  • The incoming-streams mapper in lib/api/streams.ts (already resolves token + status).

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programbugSomething isn't workingfrontendFrontend related tasks

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions