Skip to content

feat(frontend): portfolio analytics dashboard with performance metrics #225

Description

@samjay8

Summary

Build a comprehensive analytics dashboard showing portfolio performance metrics, yield history, and risk analysis for lenders.

Problem

Lenders have no visibility into their portfolio performance over time. They can see current positions but not historical yields, risk exposure, or diversification metrics.

Requirements

  • Total portfolio value (USD equivalent) over time
  • Yield earned per position and aggregate
  • Risk exposure by invoice status (Financed, Repaid, Defaulted)
  • Diversification metrics (number of invoices, currencies, originators)
  • Historical charts (30d, 90d, 1y, all-time)
  • Export to CSV/PDF
  • Shareable portfolio snapshot

Technical Details

  • Data from indexer aggregate tables (Task 13)
  • Charts via recharts or @nivo library
  • Historical data from Soroban event history
  • PDF export via @react-pdf/renderer

Acceptance Criteria

  • Dashboard shows all key metrics
  • Charts render with historical data
  • Export works for CSV and PDF
  • Loading states for async data
  • Responsive on mobile
  • Shareable snapshot link

Related Issues

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third CampaignfrontendNext.js frontend workhigh-complexityLarge multi-part effort — new subsystems, cross-cutting changes

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions