Skip to content

[#1040] Fix participant count using total from API#1044

Merged
realproject7 merged 1 commit intomainfrom
task/1040-fix-participant-count
May 4, 2026
Merged

[#1040] Fix participant count using total from API#1044
realproject7 merged 1 commit intomainfrom
task/1040-fix-participant-count

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Add totalParticipants (from pointsByAddress.size) to leaderboard API response
  • Update Leaderboard component to display data.totalParticipants instead of data.entries.length
  • Fixes participant count being capped at 50 (the top-N slice limit)

Fixes #1040

Test plan

  • Verify /api/airdrop/leaderboard response includes totalParticipants field
  • Verify leaderboard UI shows correct total when >50 participants exist

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 4, 2026

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored May 4, 2026 1:22pm

Request Review

Copy link
Copy Markdown
Owner Author

@realproject7 realproject7 left a comment

Choose a reason for hiding this comment

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

re2 review: APPROVE — Clean fix. pointsByAddress.size correctly reflects the true participant count regardless of the top-N slice. Empty-state path returns totalParticipants: 0 consistently. Interface type updated. No issues found.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

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

Verdict: APPROVE

Summary

The PR implements issue #1040 by returning totalParticipants from the leaderboard API using the already-computed unique-address count and displaying that value in the leaderboard UI. The change is minimal and focused.

Findings

  • None.

Decision

Approved. Acceptance criteria are met, and CI passes (lint-and-typecheck, e2e, Vercel checks).

@realproject7 realproject7 merged commit d1efc84 into main May 4, 2026
4 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.

Airdrop: fix participant count using total from API, not entries.length

2 participants