Skip to content

[Frontend] Build activity page with full event history #424

Description

@ogazboiz

https://t.me/+DOylgFv1jyJlNzM0

Description

The /activity route is stubbed out but needs a proper event timeline that shows all stream events for the connected wallet. Users need to audit what happened to their streams (creates, tops-ups, withdrawals, pauses, cancellations). This page should pull from the backend events API, support filtering by event type, and allow exporting the full history as CSV.

Acceptance Criteria

  • Page fetches all events for the connected wallet from GET /api/v1/events with pagination
  • Events are displayed in reverse-chronological order in a timeline/list layout
  • Each event row shows: event type badge, stream ID (linked to detail page), amount (if applicable), timestamp, and tx hash (linked to Stellar Explorer)
  • Filter bar allows narrowing by event type (e.g. CREATED, WITHDRAWN, CANCELLED, PAUSED, COMPLETED)
  • "Export CSV" button generates and downloads a CSV of the filtered event list client-side
  • Infinite scroll or "Load more" pagination (not full-page navigation)
  • Empty state with helpful copy when no events exist

Files to Touch

  • src/app/activity/page.tsx — full implementation
  • src/components/activity/EventTimeline.tsx — timeline list component
  • src/components/activity/EventRow.tsx — single event row
  • src/components/activity/EventFilterBar.tsx — filter controls
  • src/hooks/useActivityEvents.ts — React Query infinite query hook
  • src/lib/api/events.tsfetchEvents API helper
  • src/lib/exportCsv.ts — CSV export utility

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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