Skip to content

feat: wire validator dashboard and earnings pages#22

Merged
vaamx merged 1 commit into
mainfrom
feature/validator-earnings-dashboard
Feb 6, 2026
Merged

feat: wire validator dashboard and earnings pages#22
vaamx merged 1 commit into
mainfrom
feature/validator-earnings-dashboard

Conversation

@vaamx

@vaamx vaamx commented Feb 6, 2026

Copy link
Copy Markdown
Member

Summary

  • Dashboard: Replaced with useDashboardWithDb() composite hook — validator status banner, 4-col stats grid, dynamic GPU hardware cards with utilization/temp/VRAM bars, and recent jobs table with status dots and formatted durations
  • Earnings: Wired to useEarningsPageData(), useEarningsSummary(), useEarningsHistory() — personal earnings cards, period breakdown (24h/7d/30d), CSS bar chart with period toggle, network stats grid, leaderboard table with Starkscan links, and paginated payment history with privacy indicators
  • Zero new files — 2 existing stub pages replaced, all hooks and types already existed

Test plan

  • Verify /dashboard loads with wallet connected — validator status banner shows staked amount and reputation
  • Verify /dashboard GPU cards render when GPU metrics are available (empty state otherwise)
  • Verify /dashboard recent jobs table shows correct status colors and formatted durations
  • Verify /earnings personal cards show total/pending/claimed from useEarningsSummary
  • Verify /earnings chart toggles between 7d and 30d views
  • Verify /earnings leaderboard highlights current user row
  • Verify /earnings payment history pagination (Previous/Next) works correctly
  • Verify both pages show appropriate empty/loading states without wallet connected
  • npx tsc --noEmit passes with zero errors
  • npm run build succeeds cleanly

Replace dashboard with useDashboardWithDb() composite hook, adding
validator status banner, GPU hardware cards, stats grid, and recent
jobs table. Replace earnings page with useEarningsPageData(),
useEarningsSummary(), and useEarningsHistory() hooks, adding CSS bar
chart with 7d/30d toggle, network stats, leaderboard, and paginated
payment history.
@vercel

vercel Bot commented Feb 6, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
bitsage-webapp Error Error Feb 6, 2026 6:59pm

@vaamx vaamx merged commit 5f88b6c into main Feb 6, 2026
1 of 3 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.

1 participant