Skip to content

feat(archive): show past editions on the leaderboard and profile - #6

Merged
coko7 merged 1 commit into
mainfrom
feat/archive-2025
Nov 29, 2026
Merged

coko7 merged 1 commit into
mainfrom
feat/archive-2025

Conversation

@coko7

@coko7 coko7 commented Nov 28, 2026

Copy link
Copy Markdown
Owner

What

  • /leaderboard?edition=2025 and /me?edition=2025 show a past edition. Without the parameter you get the current one. Unknown years (1999, abc) return a 404.
  • Both pages have an edition switcher (European 2026 edition · Sweden 2025 edition) and show the edition name under the title.
  • Archived editions:
    • use their own rules: 2025 is v1's formula with no bonus, and the max-score line drops the bonus;
    • hide the "Check point system" link, because the about page explains this year's scoring;
    • show day numbers on the profile without links, because /day/N is this year's picture.
  • Release 2.2.0, dated 2026-12-01.

Check

  • Imported the real v1 data into a throwaway DB. The 2025 leaderboard shows the same top 5 as the import summary (quack-engine 4415, better-statement 4414, towering-point 4300, …). I checked v1: its rank-based bonus (guess_order_to_bonus) was never called, so 2025 scores are base points only and should match last year.
  • New test past_editions_stay_visible.
  • fmt, clippy, 27 tests pass.

Not included

  • Viewing last year's pictures again: there is no /day/N for past editions.
  • No link to the archive from the home page; the switcher is only on the leaderboard and the profile.

Co-Authored-By: lazytrek 352825308+lazytrek@users.noreply.github.com

`?edition=YEAR` on /leaderboard and /me picks an edition (default: the
current one; unknown years are a 404). An edition switcher sits on both
pages. Archived editions use their own scoring rules, hide the link to
this year's point system, and don't link days to this year's pictures.
Version 2.2.0.

Co-Authored-By: lazytrek <352825308+lazytrek@users.noreply.github.com>
@coko7
coko7 merged commit ec24969 into main Nov 29, 2026
2 checks passed
@coko7
coko7 deleted the feat/archive-2025 branch November 29, 2026 15:42
@coko7
coko7 restored the feat/archive-2025 branch November 29, 2026 15:42
@coko7
coko7 deleted the feat/archive-2025 branch November 29, 2026 15:42
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