Skip to content

[backend] Implement Agent Dashboard: Float Utilization, Earnings, Borrower Portfolio #423

Description

@ExcelDsigN-tech

[backend] Implement Agent Dashboard: Float Utilization, Earnings, Borrower Portfolio

Description: Agents need real-time dashboard showing: current float utilization %, projected earnings, borrower portfolio health, pending settlements, collateral ratio.

Impact: Agent retention; operational efficiency; proactive risk management; platform stickiness.

Suggested Fix:

  1. Add GET /api/agents/dashboard endpoint
  2. Aggregate: float utilization (current/limit), earnings (daily/weekly/monthly), borrower count, overdue rate, collateral ratio
  3. Add WebSocket updates for real-time metrics
  4. Create frontend dashboard page in frontend/src/app/[locale]/agent/dashboard
  5. Add caching with 30s TTL for expensive aggregations

Points: 150
Type: enhancement

Definition of Done

  • Dashboard endpoint implemented with all metrics
  • WebSocket real-time updates
  • Frontend dashboard page with charts
  • Caching with 30s TTL
  • Implementation complete following component patterns
  • Code review passed
  • Documentation updated if needed
  • All necessary CI checks passed

📋 Before working on this issue, please read our Contributing Guidelines — it covers branching, commits, PR standards, testing, and style guides.

Join our Telegram community to connect with other contributors, ask questions, and stay updated:

💬 Telegram: https://t.me/+eRqhka27TVo0NzM8

All official decisions, reviews, and coordination happen right here on GitHub. The Telegram group is a space for informal discussion and peer support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions