Skip to content

[Feature] Add rank change indicator (↑↓) to leaderboard rows using historical data #71

@akshara200829-lgtm

Description

@akshara200829-lgtm

Feature Request

Currently the leaderboard shows only current ranks with no indication of movement since the last sync. Users have no way to know if they climbed or dropped in ranking.

Proposed behaviour:

Each leaderboard row should show a rank change indicator:

  • ↑3 (moved up 3 places) in green
  • ↓2 (dropped 2 places) in red
  • = (no change) in dim
  • NEW (first appearance on this tab's leaderboard)

This fits the terminal theme and can be styled as:
[+3] / [-2] / [==] / [NEW]

How to implement:

The leetcode-ranking-data repo already stores daily JSON snapshots.Fetch both today's and yesterday's JSON for the active tab, compute rank delta per user.id, and render inline.

Why it matters:

Every competitive leaderboard (Codeforces, LeetCode itself) shows rank movement. Without it, the leaderboard feels static and loses motivational value — users can't see their progress reflected in real time.

Hey @codepvg ,
I would like to work on this issue under GSSOC. Please assign this to me!

Metadata

Metadata

Labels

BackendTask mainly involving backendFrontendTask mainly involving frontendlevel:intermediateIndicates the difficultytype:featureNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions