Skip to content

[Campaign Launcher UI] Leaderboard#835

Draft
KirillKirill wants to merge 6 commits intokb/785-redesign-campaign-detailsfrom
kb/586-leaderboard
Draft

[Campaign Launcher UI] Leaderboard#835
KirillKirill wants to merge 6 commits intokb/785-redesign-campaign-detailsfrom
kb/586-leaderboard

Conversation

@KirillKirill
Copy link
Copy Markdown
Collaborator

Issue tracking

Context behind the change

How has this been tested?

Release plan

Potential risks; What to monitor; Rollback plan

Copy link
Copy Markdown

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

Adds a Leaderboard section to the Campaign Details UI, including a “View All” searchable overlay, and centralizes compact-number formatting for reuse across the UI.

Changes:

  • Introduces new Leaderboard components (top-3 card, sliced list, and searchable overlay).
  • Displays the leaderboard on the Campaign Details page for active, non-threshold campaigns.
  • Adds a shared getCompactNumberParts utility and reuses it in CampaignCard; adjusts BaseDrawer sizing for overlays.

Reviewed changes

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

Show a summary per file
File Description
campaign-launcher/client/src/utils/index.ts Adds getCompactNumberParts for compact numeric display parts (value/suffix/decimals).
campaign-launcher/client/src/pages/CampaignDetails/index.tsx Renders the new Leaderboard for eligible campaigns and wires leaderboard data hook.
campaign-launcher/client/src/components/Leaderboard/index.tsx Implements the main leaderboard card (top 3 + sliced list + “View All”).
campaign-launcher/client/src/components/Leaderboard/List.tsx Renders leaderboard rows and highlights the active wallet entry.
campaign-launcher/client/src/components/Leaderboard/Overlay.tsx Adds searchable “View All” overlay for leaderboard entries.
campaign-launcher/client/src/components/Leaderboard/MyEntryLabel.tsx Adds a “You” label for the active wallet entry.
campaign-launcher/client/src/components/CampaignCard/index.tsx Switches target formatting to reuse getCompactNumberParts.
campaign-launcher/client/src/components/BaseDrawer/index.tsx Changes drawer sizing behavior (height set to 75dvh).

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

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