feat: Sync Countdown + "What Changed" diff popup after each leaderboard sync
Problem Statement
The leaderboard currently shows:
[SYS_STATUS]: LAST SYNC JUN 05, 12:13 AM GMT+5:30
[NEXT_SYNC]: ≈2 MIN
While this is informative, the sync itself is a silent background event - the page just quietly updates with no indication of what actually changed. Users have no way to know:
Did my rank change?
Did someone overtake me?
How many problems were solved across the board since last sync?
This makes the leaderboard feel static even though it's actively updating every few minutes.
Proposed Solution
After each sync completes, show a non-intrusive toast/diff popup at the bottom of the screen summarizing what changed, styled to match the existing terminal aesthetic.
Example popup content:
[SYNC_COMPLETE] ─────────────────────────────
↑ harsh-0_2 moved #4 → #3 (+8 pts)
↑ anuragmuley moved #5 → #4
● 12 new problems solved across 6 users
● 2 new users joined the leaderboard
───────────────────────────── [dismiss] [view]
Behaviour Details
Toast appears automatically after the sync polling detects new data
Stays visible for 8–10 seconds, then auto-dismisses
Has a [dismiss] button and a [view] button that scrolls to the leaderboard
If the current user's rank changed, highlight that line specifically:
★ You moved #12 → #10 (+15 pts)
If nothing changed (no rank shifts, no new problems), show a minimal:
[SYNC_COMPLETE] No changes detected.
feat: Sync Countdown + "What Changed" diff popup after each leaderboard sync
Problem Statement
The leaderboard currently shows:
[SYS_STATUS]: LAST SYNC JUN 05, 12:13 AM GMT+5:30
[NEXT_SYNC]: ≈2 MIN
While this is informative, the sync itself is a silent background event - the page just quietly updates with no indication of what actually changed. Users have no way to know:
Did my rank change?
Did someone overtake me?
How many problems were solved across the board since last sync?
This makes the leaderboard feel static even though it's actively updating every few minutes.
Proposed Solution
After each sync completes, show a non-intrusive toast/diff popup at the bottom of the screen summarizing what changed, styled to match the existing terminal aesthetic.
Example popup content:
[SYNC_COMPLETE] ─────────────────────────────
↑ harsh-0_2 moved #4 → #3 (+8 pts)
↑ anuragmuley moved #5 → #4
● 12 new problems solved across 6 users
● 2 new users joined the leaderboard
───────────────────────────── [dismiss] [view]
Behaviour Details
Toast appears automatically after the sync polling detects new data
Stays visible for 8–10 seconds, then auto-dismisses
Has a [dismiss] button and a [view] button that scrolls to the leaderboard
If the current user's rank changed, highlight that line specifically:
★ You moved #12 → #10 (+15 pts)
If nothing changed (no rank shifts, no new problems), show a minimal:
[SYNC_COMPLETE] No changes detected.