WIP: Draft: feat(frontend): show Charts trader leaderboard on /trader (#657) #1166

Closed
PlasticDigits wants to merge 0 commits from 657-trader-show-charts-leaderboard-at-bottom-of-trader-and-trader-address into main
PlasticDigits commented 2026-08-26 07:12:37 +00:00 (Migrated from gitlab.com)

Summary

  • Extract the Charts trader leaderboard into shared TraderLeaderboard (getLeaderboard(sort, 20), query key ['leaderboard', sort], USD Volume via formatIndexedVolumeUsd).
  • Mount it as the last /trader and /trader/:address page section (empty lookup, 404, and profile outage included). /portfolio is unchanged.
  • Document invariants TL-1–TL-10, skill AGENTS_FRONTEND_TRADER_LEADERBOARD.md, and make verify-issue-657.

Closes #657

Test plan

  • Vitest: TraderLeaderboard.test.tsx, TraderPage.test.tsx, ChartsPage.test.tsx (#553), PortfolioPage.test.tsx (no board)
  • make verify-issue-657 (docs/skills, chrome nesting, Playwright e2e/trader-page.spec.ts)
  • Manual: /trader empty lookup — Leaderboard below empty prompt, above legal footer
  • Manual: /trader/:address found — board below Trade History
  • Manual: 404 + indexer outage — board still visible; profile banner/RetryError unchanged
  • Volume tab compact USD (no raw T); unpriced —; idle $0
  • P&L tabs: Best Trade / Most Profit / Most Loss
  • Light + dark; ~375px horizontal scroll; last rows not under mobile nav
  • /portfolio has no leaderboard

Closes #657

## Summary - Extract the Charts trader leaderboard into shared `TraderLeaderboard` (`getLeaderboard(sort, 20)`, query key `['leaderboard', sort]`, USD Volume via `formatIndexedVolumeUsd`). - Mount it as the **last** `/trader` and `/trader/:address` page section (empty lookup, 404, and profile outage included). `/portfolio` is unchanged. - Document invariants **TL-1–TL-10**, skill `AGENTS_FRONTEND_TRADER_LEADERBOARD.md`, and `make verify-issue-657`. Closes #657 ## Test plan - [x] Vitest: `TraderLeaderboard.test.tsx`, `TraderPage.test.tsx`, `ChartsPage.test.tsx` (#553), `PortfolioPage.test.tsx` (no board) - [x] `make verify-issue-657` (docs/skills, chrome nesting, Playwright `e2e/trader-page.spec.ts`) - [ ] Manual: `/trader` empty lookup — Leaderboard below empty prompt, above legal footer - [ ] Manual: `/trader/:address` found — board below Trade History - [ ] Manual: 404 + indexer outage — board still visible; profile banner/RetryError unchanged - [ ] Volume tab compact USD (no raw `T`); unpriced `—`; idle `$0` - [ ] P&L tabs: Best Trade / Most Profit / Most Loss - [ ] Light + dark; ~375px horizontal scroll; last rows not under mobile nav - [ ] `/portfolio` has no leaderboard Closes #657
PlasticDigits (Migrated from gitlab.com) closed this pull request 2026-08-26 07:13:27 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
code/cl8y-dex-terraclassic!1166
No description provided.