Add portfolio tracker dashboard for aggregate asset & yield analytics - #678
Merged
Sadeequ merged 2 commits intoAug 2, 2026
Merged
Conversation
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
|
@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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PortfolioSummary(src/components/analytics/PortfolioSummary.tsx): total net worth header with 24h change, and a wallet/liquidity-pool/vault balance breakdown.PortfolioAllocationChart: an interactive doughnut chart (chart.js) breaking down allocation by token/position, with a clickable legend that toggles slices and shows live percentages.PortfolioHistoryChart: a net-worth line chart with 7D/30D/90D/1Y timeframe switching and period change summary.usePortfolioreact-query hook (mock-data fallback, following the existinguseCorridorMetricspattern) since there was no portfolio/balance data source in the app yet — the referencedapi.getPortfolio()stub has no backing route./dashboard/portfoliopage, following the existing/dashboard/corridorslayout conventions.Test plan
npx tsc --noEmit— no new type errorsnpx eslinton all changed files — clean/dashboard/portfoliorenders net worth, balance cards, history chart with timeframe switching, and the allocation donut in a local dev serverCloses #606