Skip to content

tailwind v2 migration: leaderboard#617

Closed
kokonut121 wants to merge 1 commit into
tailwind-settingsfrom
tailwind-leaderboard
Closed

tailwind v2 migration: leaderboard#617
kokonut121 wants to merge 1 commit into
tailwind-settingsfrom
tailwind-leaderboard

Conversation

@kokonut121

Copy link
Copy Markdown
Collaborator

Summary

  • Add views/private/leaderboardV2.ejs using base.ejs layout — rating leaderboard 4-col grid (Physics/Chemistry/Biology/USABO), Rush leaderboard, Experience leaderboard
  • Consolidate four near-identical rating tables into a single forEach over [title, list, valueGetter] tuples; row colors and medal SVGs preserved
  • Wire /leaderboard to V2 view via expressLayouts

Stacked on #614 (settings).

Test plan

  • /leaderboard loads at 1280px with no console errors and 4 ratings columns side-by-side
  • /leaderboard loads at 375px — columns stack to 1 wide, tables don't horizontal-scroll the page (each table individually scrolls if needed)
  • 1st/2nd/3rd row colors render correctly (sky blue / yellow / red), 4th+ rows are green; medals show as SVG icons in rank 1–3
  • Click a username → navigates to /profile/:username in a new tab
  • view-source:/leaderboard contains exactly one <head> and one <body>

🤖 Generated with Claude Code

- Add views/private/leaderboardV2.ejs using base.ejs layout: rating leaderboard 4-col grid (Physics/Chemistry/Biology/USABO), Rush leaderboard, Experience leaderboard
- Consolidate the four near-identical rating tables into a single forEach over [title, list, valueGetter] tuples; preserves row colors (1st/2nd/3rd/4th+) and medal SVGs
- Wire /leaderboard route to render leaderboardV2.ejs with expressLayouts

Part of the broader Tailwind V2 migration tracked in #609.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@kokonut121 kokonut121 requested a review from a team as a code owner May 7, 2026 23:57
@kokonut121 kokonut121 mentioned this pull request May 7, 2026
8 tasks
@kokonut121

Copy link
Copy Markdown
Collaborator Author

Superseded by #621 which combines settings/leaderboard/stats into a single PR targeting master.

@kokonut121 kokonut121 closed this May 8, 2026
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