Full date and round in game lists; engine evals from White's side - #292
Merged
Merged
Conversation
The Players and Games pages showed only the year, and games on the same day came back in no particular order. - Replace the Year column with Date (the known part: 2026-03-15, 2026-03 or 2026) and add a Round column; saved column widths are kept. - /games returns each game's round and orders by date, then round (as numbers on its round and sub-round parts, so 10 sorts before 9), then id so paging is stable. - Unknown date parts sort as zero: "2026-??-??" sorted above every dated 2026 game, since "?" sorts after digits. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FzbThuPFuAz9VYWoZd4ESu
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FzbThuPFuAz9VYWoZd4ESu
…l scrollbar - chessdb.cn scores are side-to-move relative; show them White-relative like Lichess, so negative always means Black is better. - Colour Lichess evals as well as chessdb ones. Green/red means good/bad for the player to move, matching the !/? marks, not the displayed sign. - Pad the Analysis page's column of open games: WebKitGTK draws the scrollbar over the content, where it covered each card's close button. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WhMko1N4uhAAyTjAkBcqAS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Players page (and the Games page, which shares the list) showed only the year, and games played on the same day came back in no particular order.
2026-03-15,2026-03or2026.?or-).10sorts before9and3.2before3.1. Game id breaks any remaining ties, so infinite-scroll paging never skips or repeats a game.2026-??-??) now sort below that year's fully dated games. Before, they sorted above them, because?sorts after digits.Also in this PR: engine panel and Analysis rail
!/?marks, not the displayed sign.Cost
With no filter, the Games page sorts every game. On a synthetic 14M-row table each page takes about 125 ms instead of about 6 ms: the round expressions are computed for every row. A player's list is a few hundred games, so the change is negligible there.
Test plan
cargo test -p chess-db: 107 passedvite buildsucceeds2026-??-??→ 2025. The offset page continues correctly.🤖 Generated with Claude Code
https://claude.ai/code/session_01FzbThuPFuAz9VYWoZd4ESu