Skip to content

[codex] Hide time remaining for always-open leaderboards#229

Merged
msaroufim merged 1 commit intomainfrom
codex/hide-always-open-time-remaining
Apr 13, 2026
Merged

[codex] Hide time remaining for always-open leaderboards#229
msaroufim merged 1 commit intomainfrom
codex/hide-always-open-time-remaining

Conversation

@msaroufim
Copy link
Copy Markdown
Member

Summary

  • hide the time remaining countdown for leaderboards whose deadline is more than 365 days away
  • apply the same heuristic on home-page tiles and in the leaderboard selection dialog so always-open getting-started problems no longer show misleading countdowns
  • add frontend test coverage for the shared date heuristic and the home page rendering path

Why

The getting-started *_v2 problems are effectively always open, so showing a countdown is misleading. Using a deadline distance heuristic keeps the behavior general instead of hardcoding those names.

Validation

  • npm test -- --run src/lib/date/utils.test.ts
  • npm test -- --run src/pages/home/Home.test.tsx

@msaroufim msaroufim marked this pull request as ready for review April 13, 2026 03:40
@msaroufim msaroufim merged commit 387ff98 into main Apr 13, 2026
1 check 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.

1 participant