Skip to content

Add portfolio tracker dashboard for aggregate asset & yield analytics - #678

Merged
Sadeequ merged 2 commits into
StellarFlow-Network:mainfrom
ogbemercyada-sketch:feat/606-portfolio-tracker
Aug 2, 2026
Merged

Add portfolio tracker dashboard for aggregate asset & yield analytics#678
Sadeequ merged 2 commits into
StellarFlow-Network:mainfrom
ogbemercyada-sketch:feat/606-portfolio-tracker

Conversation

@ogbemercyada-sketch

Copy link
Copy Markdown
Contributor

Summary

  • Adds PortfolioSummary (src/components/analytics/PortfolioSummary.tsx): total net worth header with 24h change, and a wallet/liquidity-pool/vault balance breakdown.
  • Adds PortfolioAllocationChart: an interactive doughnut chart (chart.js) breaking down allocation by token/position, with a clickable legend that toggles slices and shows live percentages.
  • Adds PortfolioHistoryChart: a net-worth line chart with 7D/30D/90D/1Y timeframe switching and period change summary.
  • Adds a usePortfolio react-query hook (mock-data fallback, following the existing useCorridorMetrics pattern) since there was no portfolio/balance data source in the app yet — the referenced api.getPortfolio() stub has no backing route.
  • Wires everything up on a new /dashboard/portfolio page, following the existing /dashboard/corridors layout conventions.

Test plan

  • npx tsc --noEmit — no new type errors
  • npx eslint on all changed files — clean
  • Verified /dashboard/portfolio renders net worth, balance cards, history chart with timeframe switching, and the allocation donut in a local dev server

Closes #606

Adds a PortfolioSummary component showing total net worth across
wallet, liquidity pool, and vault positions, an interactive donut
chart breaking down allocation by asset, and a historical net-worth
line chart with 7D/30D/90D/1Y timeframe switching. Backed by a
usePortfolio react-query hook with mock-data fallback (no portfolio
data source existed yet), wired up on a new /dashboard/portfolio
page.

Closes StellarFlow-Network#606
@drips-wave

drips-wave Bot commented Aug 1, 2026

Copy link
Copy Markdown

@ogbemercyada-sketch Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Sadeequ
Sadeequ merged commit 95a5df6 into StellarFlow-Network:main Aug 2, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

📊 Portfolio-Tracker | Aggregate User Asset & Yield Analytics Dashboard

2 participants