Skip to content

Add flow chart#1196

Draft
rossgalloway wants to merge 18 commits into
mainfrom
add-flow-chart
Draft

Add flow chart#1196
rossgalloway wants to merge 18 commits into
mainfrom
add-flow-chart

Conversation

@rossgalloway

@rossgalloway rossgalloway commented Apr 22, 2026

Copy link
Copy Markdown
Collaborator

Description

  • Migrates the DOA visualization backend from visual.yearn.dev to this repo as a central place to serve this data.
  • Uses the backend to display the DOA/Allocation visualization in a new card on the vault pages where the DOA is running.
image

Motivation

We want to show allocation data on the yearn site and also on powerglove. The plan is to use this site, which already has backend functions as the place this happens. We can then call it from the powerglove site. But we can also easily use it here. The first implementation is a new chart showing allocation history over time.

To Test

Visit a v3 single asset vault and scroll down to the Allocations tab. you should see a sankey diagram of allocation changes that you can scroll through.

@vercel

vercel Bot commented Apr 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
yearnfi Error Error May 16, 2026 4:08pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
yearnfi-nextjs Ignored Ignored Preview May 16, 2026 4:08pm

Request Review

@github-actions

github-actions Bot commented Apr 22, 2026

Copy link
Copy Markdown

Dependency Review

The following issues were found:
  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ⚠️ 1 package(s) with unknown licenses.
See the Details below.

License Issues

package.json

PackageVersionLicenseIssue Type
@upstash/redis^1.37.0NullUnknown License
Allowed Licenses: MIT, Apache-2.0, BSD-3-Clause, BSD-2-Clause, ISC, CC0-1.0, CC-BY-3.0, CC-BY-4.0, Unlicense

OpenSSF Scorecard

PackageVersionScoreDetails
npm/@upstash/redis ^1.37.0 UnknownUnknown

Scanned Files

  • package.json

@socket-security

socket-security Bot commented Apr 22, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​upstash/​redis@​1.37.098100100100100

View full report

rossgalloway and others added 2 commits April 23, 2026 18:28
)

* feat: init portfolio history

* fix: build

* fix: getEnv

* fix: env

* fix: localhost connection attempt

* chore: debug

* chore: attempt

* feat: add v2 support

* fix: transfers calculation

* chore: rm clearCache

* feat: calculate gauge

* fix: loading state

* fix: optimize pps fetch

* chore: rename

* feat: add breakdown

* feat: store aggregated data

* chore: upd docs

* feat: add seenTokens

* feat: always recalculate today

* fix: use only 12:00:00 AM timestamps

* feat: add 1y option

* feat: cache prices

* feat: doc

* feat: add batching for queries

* feat: doc

* feat: sequential + batching

* upd: doc

* fix: db spam

* feat: rate limit & clear stale cache

* debug: add logs

* fix: query

* chore: do not expose internals

* chore: remove logging

* chore: misc

* chore: cleanup

* chore: rm dead code

* feat: invalidate cache

* chore: address comments

* chore: remove refresh for safety

* chore: return clear cache for local

* chore: lint

* Feat/portfolio pnl 2 (#1125)

* feat: init pnl

* feat: consider staking

* feat: omit migrate

* chore: support migrate

* feat: 3 calc types

* feat: add totalEconomicGainUsd

* chore: docs

* chore: refactor

* feat: actually consider price at deposit time

* chore: optimize price fetch

* fix: cache

* chore: make fetching more aggressive

* feat: test params

* feat: improve totalCurrentValueUsd

* feat: share events & kong

* feat: fe + history fix

* fix: defillama batching

* feat: tooltips

* feat: handle cow

* feat: tune defillama

* chore: tune a bit more

* feat: add missing prices cache

* feat: docs

* fix: timeout

* chore: copy

* feat: stable vs volatile

* Feat/portfolio pnl excessive (#1148)

* feat: init excessive

* chore: naming

* feat: actually add drilldown

* fix: v2/v3 filter

* fix: version

* fix: env

* feat: cover crvusd rewards

* feat: vault to vault migrate via enso

* feat: init katana rewards

* chore: upd receiver address

* feat: fix bold

* feat: add fetchType + paginationMode

* feat: support fetchtype + pagination on vercel

* feat: hash user address

* feat: ensure schema is initialized

* chore: lint

* fix: katana pricing

* feat: dummy chart

* feat: breakdown

* feat: breakdown for timestamp

* feat: merge yvUSD

* fix: nasty scroll

* chore: lint

* chore: hide if isHidden=true

* feat: make it case insensitive

* feat: init simple

* feat: display

* add annualized return and ETH denominated charting

* Styling and add all time duration

* add charts

* fix staked asset withdrawal issue

* fix issues with staked shares

* fix simple return accounting and growth index charts

* add simple return chart explainers

* add growth chart numeraire spec

* Finalize growth display modes

* Split growth index chart modes

* Keep ETH growth history when partial vaults exist

* remove overall cumulative chart

* improve charts and add to portfolio rows

* Feat/chart tweaks (#1193)

* fix: rescale growth

* fix: prevent flickering

* style: flickering & mobile

* feat: sort overlay by index

* feat: add growth position & index

* fix: growth index empty values

* feat: connect the dots

* feat: consistent chart

* Add position charts to vault pages with balance and to portfolio expanded views. other minor tweaks

* fix review comments

* fix review issues and dark mode tooltip

* feat: dedupe transfer and stake

* feat: improve aggregator (#1195)

* feat: improve aggregator

* chore: lint

* Feat/indexed history (#1198)

* feat: init activity

* feat: enrich

* chore: rm address

---------

Co-authored-by: w84april <donyaschefer@gmail.com>
Co-authored-by: w84april <32621609+w84april@users.noreply.github.com>
…chart

# Conflicts:
#	.env.example
#	api/server.ts
Co-Authored-By: w84april <donyaschefer@gmail.com>
This reverts commit 7ceff63.
* test: mobile

Co-Authored-By: w84april <donyaschefer@gmail.com>

* chore: rm year

Co-Authored-By: w84april <donyaschefer@gmail.com>

* style: blocks

Co-Authored-By: w84april <donyaschefer@gmail.com>

* rm: year

Co-Authored-By: w84april <donyaschefer@gmail.com>
w84april
w84april previously approved these changes Apr 29, 2026

@w84april w84april left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just updated mobile styles, looks good otherwise

@w84april

Copy link
Copy Markdown
Collaborator

we should probably change this 'Recent Reallocations' copy so it fit
image

@rossgalloway rossgalloway marked this pull request as draft April 29, 2026 21:36
@rossgalloway

Copy link
Copy Markdown
Collaborator Author

converting this to draft because we should get the full allocation history backend work done before we push this.

Base automatically changed from release/26-04-17 to main May 29, 2026 13:12
@rossgalloway rossgalloway dismissed w84april’s stale review May 29, 2026 13:12

The base branch was changed.

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.

3 participants