Skip to content

Leaderboard page with top bridge users ranking#60

Merged
a-novi merged 5 commits intomainfrom
leaderboard
Feb 11, 2026
Merged

Leaderboard page with top bridge users ranking#60
a-novi merged 5 commits intomainfrom
leaderboard

Conversation

@a-novi
Copy link
Contributor

@a-novi a-novi commented Jan 20, 2026

Adds a new Leaderboard page that displays top bridge users ranked by volume or transaction count.

View top bridge users ranked by volume or transaction count. Filter by address type, see activity trends, and click any user to view their full profile.

Features

  • Sortable by volume or transaction count
  • Filterable by address type (All/SUI/ETH)
  • Summary stat cards (Total Users, Total Volume, Avg Volume, Top User)
  • Activity sparklines matching selected time period
  • Medal badges for top 3 users
  • Click-to-profile navigation
  • Pagination (25 users/page)

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a comprehensive Leaderboard feature that displays top bridge users ranked by transaction volume or count. The implementation includes backend API endpoints, frontend components with interactive filtering and sorting, and visual enhancements like medals, sparklines, and statistics cards.

Changes:

  • Added two new API endpoints (/api/leaderboard and /api/leaderboard-sparklines) for fetching leaderboard data and user activity trends
  • Created reusable UI components for displaying rankings with medal badges, address cells with copy functionality, activity sparklines, and summary statistics
  • Integrated navigation menu item and routing configuration for the new leaderboard page

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 16 comments.

Show a summary per file
File Description
src/utils/axios.ts Added API endpoint constants for leaderboard and sparklines
src/routes/paths.ts Added leaderboard route path configuration
src/pages/api/leaderboard.ts Backend API that queries and ranks users by volume/transaction count with filtering
src/pages/api/leaderboard-sparklines.ts Backend API that provides activity trend data for leaderboard users
src/layouts/config-nav-dashboard.tsx Added leaderboard navigation menu item
src/components/leaderboard/medal-rank.tsx Component for displaying rank with medal badges for top 3 positions
src/components/leaderboard/address-cell.tsx Component for displaying blockchain addresses with chain icons and copy functionality
src/components/leaderboard/activity-sparkline.tsx SVG sparkline component for visualizing user activity trends
src/components/leaderboard/leaderboard-stats.tsx Summary statistics cards showing total users, volume, and averages
src/components/leaderboard/leaderboard-table.tsx Main table component with sorting, filtering, and pagination
src/components/leaderboard/index.ts Component exports barrel file
src/app/leaderboard/page.tsx Main leaderboard page component
src/app/leaderboard/loading.tsx Loading state component
src/app/leaderboard/layout.tsx Page layout wrapper

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 14 out of 14 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@a-novi a-novi merged commit ab2321d into main Feb 11, 2026
2 checks passed
@a-novi a-novi deleted the leaderboard branch February 11, 2026 09:42
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.

2 participants