Skip to content

feat(gf-15): analytics page and live landing page stats#70

Merged
wumibals merged 2 commits into
LadderMine:mainfrom
walexjnr:feat/gf-15-analytics-page
Jun 26, 2026
Merged

feat(gf-15): analytics page and live landing page stats#70
wumibals merged 2 commits into
LadderMine:mainfrom
walexjnr:feat/gf-15-analytics-page

Conversation

@walexjnr

Copy link
Copy Markdown
Contributor

Summary

  • Adds /analytics page with four overview stat cards (TVL, Best APY, Yield Harvested, Depositors), a TVL-by-tier horizontal bar chart, an APY-per-vault table, and a harvest history feed
  • Adds a time range selector (7d / 30d / All Time) that filters the harvest feed and yield-harvested card
  • Replaces the four hardcoded landing page stat values with live data — TVL via useTVL() and Best APY via useAPY(); Protocol Fee (0%) and Max Pool Exposure (35%) remain hardcoded constants
  • Extracts the stats bar into a StatsBar client component so page.tsx stays a server component
  • Adds an Analytics link to the landing page nav
  • All data hooks (useTVL, useAPY, useHarvestHistory) are stubbed with representative placeholder data and clearly marked TODO(GF-12) for replacement once the data service layer ([GF-12] [FRONTEND] Data Service Layer (Soroban RPC hooks, price feeds, TVL/APY) #44) is merged

Test plan

  • /analytics renders four overview cards with non-zero values
  • Time range selector switches between 7d / 30d / All Time and updates the harvest table and yield card
  • TVL breakdown bars render with correct proportional widths
  • APY table lists all four vault tiers
  • Landing page stats bar shows $762.5K TVL and 11.2% Best APY (from stub data)
  • pnpm typecheck passes with no errors
  • All loading states show placeholders before data resolves

closes #47

- Add /analytics page with TVL cards, APY table, and harvest history feed
- Add time range selector (7d / 30d / all-time) that filters all charts
- Replace hardcoded landing page stats with live useTVL() and useAPY() data
- Add StatsBar client component to keep page.tsx a server component
- Add Analytics nav link to landing page
- Add useTVL, useAPY, useHarvestHistory hooks (stub data, wired for GF-12)

closes LadderMine#47
@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

@walexjnr is attempting to deploy a commit to the wumibals' projects Team on Vercel.

A member of the Team first needs to authorize it.

@wumibals wumibals left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for your contribution

@wumibals wumibals merged commit b3470a0 into LadderMine:main Jun 26, 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.

[GF-15] [FRONTEND] Analytics Page + Live Landing Page Stats

2 participants