[Campaign Launcher UI] Leaderboard#835
Draft
KirillKirill wants to merge 6 commits intokb/785-redesign-campaign-detailsfrom
Draft
[Campaign Launcher UI] Leaderboard#835KirillKirill wants to merge 6 commits intokb/785-redesign-campaign-detailsfrom
KirillKirill wants to merge 6 commits intokb/785-redesign-campaign-detailsfrom
Conversation
4e8a4a2 to
0cee6d0
Compare
There was a problem hiding this comment.
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
Leaderboardcomponents (top-3 card, sliced list, and searchable overlay). - Displays the leaderboard on the Campaign Details page for active, non-threshold campaigns.
- Adds a shared
getCompactNumberPartsutility and reuses it inCampaignCard; adjustsBaseDrawersizing 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.
779bc75 to
2b7a925
Compare
0c96e92 to
12e410f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue tracking
Context behind the change
How has this been tested?
Release plan
Potential risks; What to monitor; Rollback plan