Skip to content

fix: show in-view rank indicator when leaderboard filters are active (#1102)#1214

Open
alpurkan17 wants to merge 1 commit into
entrius:testfrom
alpurkan17:fix/view-rank-indicator-1102-v2
Open

fix: show in-view rank indicator when leaderboard filters are active (#1102)#1214
alpurkan17 wants to merge 1 commit into
entrius:testfrom
alpurkan17:fix/view-rank-indicator-1102-v2

Conversation

@alpurkan17
Copy link
Copy Markdown
Contributor

Description

The Rank column on Top Miners / Discoveries leaderboards always shows the global rank. When a filter is active, consecutive rows show gaps (16, 19, 23, 48, 94) with no UI indication that the gaps are caused by filtered-out miners. Users reasonably interpret this as a bug.

Fix: add a subtle ·N in view indicator next to the global rank when filters are active and the two ranks diverge.

Changes

  • types.ts: add viewRank to MinerStats — 1-indexed position in filtered subset
  • TopMinersTable.tsx: compute viewRank only when a search/eligibility filter is active
  • MinersList.tsx: show ·{viewRank} beside the RankIcon in list view
  • MinerCard.tsx: show ·{viewRank} in view next to the global rank on cards

Edge cases

  • No filter active → no indicator shown
  • First row (rank=viewRank=1) → no indicator shown
  • Pure search filter → indicator shown for mismatched rows
  • Both search + eligibility → indicator shown correctly

Screenshots

Before/After

Validation

  • npx tsc -b — 0 errors
  • npx prettier --check — clean
  • 4 files, +48/-1, no new dependencies
  • Null-guarded: viewRank != null before comparison
  • Both card view and list view covered

Closes #1102

@xiao-xiao-mao xiao-xiao-mao Bot added the enhancement New feature or request label May 17, 2026
…ntrius#1102)

Adds a ·N indicator next to the global rank in card view, list view, and
miner cards when a search or eligibility filter is active and the rank
within the filtered subset differs from the global rank.

Closes entrius#1102
@alpurkan17 alpurkan17 force-pushed the fix/view-rank-indicator-1102-v2 branch from eb8beac to f691602 Compare May 19, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UX] Leaderboard rank column shows global ranks with unexplained gaps under any filter

1 participant