Skip to content

[Frontend] — My Predictions Filter by Status and Outcome #1556

Description

@Olowodarey

Problem
frontend/src/app/(authenticated)/my-predictions/page.tsx shows a flat list with no filtering by pending/won/lost, making history hard to review.

Requirements

  • Status filter (Pending / Won / Lost / Refunded) and a text search on market title.
  • Result summary chips (win rate, net P/L) above the list.
  • Persist the last-used filter in the URL query.
  • Tests: filters narrow correctly; summary reflects the filtered set.

Acceptance Criteria

  • Users filter and summarize their prediction history. Covered by tests.

Files

  • frontend/src/app/(authenticated)/my-predictions/page.tsx
  • frontend/src/component/ActivePrediction.tsx
  • frontend/src/lib/api.ts

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions