Skip to content

Add Transaction History and Analytics Dashboard #741

@famvilianity-eng

Description

@famvilianity-eng

Title: Build User Transaction History and Analytics Dashboard

Description: Users need visibility into their match history, earnings, and win/loss records. Create a dashboard component that displays analytics and transaction history.

Requirements and Context:

  • Display: match history, total earnings, win rate, average stake
  • Time periods: last 7 days, 30 days, all time
  • Export to CSV functionality
  • Filter by token and status
  • Security: Only show user's own data (no data leaks)

Suggested Execution: feature/analytics-dashboard

Implement Changes:

  • Create React dashboard component with time period selector
  • Implement analytics calculation service (earnings, win rate, etc.)
  • Add CSV export functionality
  • Create chart components (win rate trend, earnings over time)

Test and Commit:

  • Unit tests for analytics calculations
  • Component snapshot tests
  • Test export functionality
  • Document analytics formulas

Example Commit Message:

feat(frontend): add user analytics dashboard and transaction history

- Create dashboard with earnings, win rate, and match statistics
- Implement time period selectors and filters
- Add CSV export for transaction history
- Include comprehensive test coverage

Guidelines:

  • Use recharts for visualizations
  • Cache analytics data (update every 5 minutes)
  • Add loading states for data fetching

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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