Gamify icon indicating copy to clipboard operation
Gamify copied to clipboard

[Feature]: ELUSoC_2026 — Leaderboard page has no search or filter — users cannot find themselves in large communities

Open Babin123456 opened this issue 5 months ago • 3 comments

Problem

The LeaderboardPage fetches up to 50 entries and displays them in a table, but provides no search box or filter controls. In communities with more than ~20 members, users cannot quickly locate a specific player or filter by role.

Current Behavior

  • The leaderboard renders a flat table with no way to search or filter.
  • Users must visually scan all 50 rows to find a specific username.
  • The "Your rank" pill at the top only appears when the logged-in user is in the top 50 — no way to search for others outside the list.

Why This Improvement Is Needed

  • Large communities (50+ members) need search to find specific participants.
  • Admins/Moderators often want to filter the leaderboard by role (e.g., "show all Members").
  • This is a standard UX feature expected in any ranking system.
  • The data is already fetched client-side, so no additional API calls are needed.

Proposed Solution

Add a search box and role filter pills above the leaderboard table:

  1. A text input that filters entries by username (case-insensitive substring match).
  2. Role pills (All / Admin / Organisation / Moderator / Event Staff / Member).
  3. A result count label shown when a filter is active.
  4. The top-3 podium is hidden when a filter is active (rankings would be misleading).
  5. An empty state is shown when no players match the current filter.

All filtering is client-side with useMemo — no new API endpoints required.

Expected Outcome

  • Users can type a username to instantly locate a player in the leaderboard.
  • Admins can click a role pill to view only Members or only Moderators.
  • The UX is consistent with the existing Shop page's search + category filter pattern.

Additional Notes

  • No backend changes required.
  • The podium correctly reappears when filters are cleared.

Babin123456 avatar Jun 27 '26 11:06 Babin123456

Thank you for raising this issue!

We'll review it as soon as possible. We truly appreciate your contributions! ✨

Meanwhile make sure you've visited the README.md, CONTRIBUTING.md, and CODE_OF_CONDUCT.md before creating a PR for this. Also, please do NOT create a PR until this issue has been assigned to you. 😊

github-actions[bot] avatar Jun 27 '26 11:06 github-actions[bot]

Hi, I'd like to work on this issue. I'll add a client-side search box and role filter pills to LeaderboardPage with useMemo-based filtering, result count label, and empty state, as outlined above. Could you please assign it to me?

/assign /claim

anshul23102 avatar Jun 29 '26 07:06 anshul23102

Hi,could you assign this issue to me?

Keshavsspppp avatar Jul 03 '26 22:07 Keshavsspppp