Commit graph

97 commits

Author SHA1 Message Date
vrubelroman
5911750506 maia::strength: the strength tables and the choice of a move shared; Android trainer screen
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
The measured tables (strength → rating input, temperature) and the choice of
Maia's move (rare moves dropped) move from the desktop's play.rs into the maia
crate; the desktop plays by them. Android: «Learn the opening up to this
move» in the move sheet opens the trainer over the game (tasks bar, wrong
move lit for 400 ms, «Show the move» after three mistakes, the result card).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 01:05:04 +03:00
vrubelroman
bb2ef38ef6 trainer: the opening trainer as a crate shared by the desktop and Android
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
apps/desktop/src/train.rs moves to crates/trainer; the rule of a move (right,
the last one, wrong) becomes Training::judge, the desktop uses it; the app
names the stats file (set_file). The line's last move comes in plain SAN; the
desktop shows it its own way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 01:00:11 +03:00
vrubelroman
dbcfe81856 Play: Maia up to 2100 (surer choices above a model's top), measured with random openings
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 00:11:02 +03:00
vrubelroman
ca0a60c5b6 Play: Maia's strength tables measured down to the bottom of the slider
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 23:10:20 +03:00
vrubelroman
8f94403aa9 Game analysis: options other than the defaults count as chosen before
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 23:03:16 +03:00
vrubelroman
9c9f7e9178 Game analysis: «Analyse» starts at once with the options chosen before
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
The dialog comes the first time (no analysis started from it yet) and with
«Analyse again…». The analysis options are now saved when changed. Dev
hook CP_REVIEW=ask presses «Analyse».

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 22:47:39 +03:00
vrubelroman
d4cccb3f68 Play: the large Maia (79M), the slider in real strength
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
- The slider shows Maia's measured strength on the Lichess blitz scale
  (1100–2000, step 50); per-model tables turn it into her rating input.
- The large model plays every strength once downloaded (316 MB); with only
  the small one, up to 1800, above it «Download and play» brings the large.
- The network runs on half the cores; Maia's clock takes the computing
  when it is longer than her pause.
- A rematch or a game from a position whose model is missing reopens the
  dialog with the same choices; the main button keeps its width; no game
  while a download runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 22:20:09 +03:00
vrubelroman
f90c636dd7 Play dialog: the strength slider alone (no Weaker · As me · Stronger)
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
The owner found the relative buttons silly: the slider sets Maia's strength;
named levels (ranks) will come after the study of what Maia's ratings mean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 16:42:57 +03:00
vrubelroman
319e8808ab Library title row in three groups: databases | a game to enter | Play
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
The owner's order: «+ Add database · ✚ New database · 🌐 Online games», a line,
«♟ New game · 📋 Paste PGN», a line, «♞ Play»; Settings on the right. The
narrow row (the database list) keeps the same groups.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 15:21:04 +03:00
vrubelroman
a5614d91fc Paste a line, play on from here, learn the opening
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Paste a line from the clipboard (Ctrl+V on a game, the move menu, ☰):
chess-core paste.rs plans where the text fits without touching the game — a
PGN game where its moves part from this one along any branch, or where one of
its positions occurs (another move order, noted); a fragment (SAN, numbered
or not, «…» for black, UCI) after the selected move, instead of it, or at its
move number — and grafts the new moves with their comments, symbols and
variations (the pasted game's alternatives along the way too) as one undo
step, the players' names after the line. A game with no position in common
is refused with a message; a line going elsewhere than the selected move is
asked about; an impossible move inserts nothing.

Play on from here (the move menu, Ctrl+G on a game, ☰): the play dialog shows
the position on a small board and the game it comes from; the new game holds
the moves up to it (Maia sees the history, repetitions count), dimmed during
play, with a comment saying where it comes from; take-backs, abort and resign
count only the new moves; the source game waits under it («⬅ Back to the
game»); the side to move plays by default, a rematch keeps the colour.

Learn the opening up to this move (the move menu, ☰): a training screen over
the game; the user plays both sides; a wrong move is counted, shown for
400 ms in red with a short sound and taken back; from the third mistake on a
move «Show the move» puts an arrow (the run marked with a hint); at the end
the mistakes by move, the line's runs (last, best, clean in a row, recent),
«Again» (Enter). Runs are kept in training.json by the line (start position
and moves), shared between games; an entry or a file that does not read is
kept aside, not lost. New sounds Wrong (Kenney, CC0) and Success (Lichess
Victory, Kenney).

Keys of the game do nothing under a modal question or dialog. Dev hooks
CP_PASTE_LINE, CP_PLAY_FROM, CP_TRAIN, CP_TRAIN_MOVES, CP_TRAIN_KEEP,
CP_TRAINING_FILE. Texts in nine languages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 14:51:09 +03:00
vrubelroman
53da355044 A defeat sound when Maia offers to resign
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Every sound set gets a Defeat sound, played when Maia offers to resign: the
Lichess sets their own Defeat.ogg (sfx, piano, futuristic, nes — Enigmahack,
AGPLv3+, unmodified), the Kenney sets a falling tone of «Interface Sounds»
(CC0: clicks minimize_006, the pair of its checkmate maximize_006; wood
minimize_008; glass minimize_004), leading silence trimmed and the peak matched
to the set's checkmate sound. Sources in THIRD_PARTY_NOTICES.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 13:11:16 +03:00
vrubelroman
5e7a588368 Maia offers to resign; even custom-time and Resign? buttons
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
When her position is lost — twelve pawns or more, or mated by force — on two
of her turns judged in a row, Maia offers to resign instead of moving: «Accept
the win» ends the game (You won · Maia resigned), «Play to the end» lets her
move and she does not offer again. The judge is ChessPenguin's Stockfish (else
the active engine when its file is there) in its own thread for the whole
game, 150k nodes a position, never shown; without an engine she plays every
game out. The clocks wait while the offer is open, also under the leave
question (one pause, the offer's) and at any end; a take-back closes it; a
verdict on a position gone is dropped.

The custom-time labels flush left in one column; «Yes» and «No» of «Resign?»
of one size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 12:54:14 +03:00
vrubelroman
9ecc1a0a07 Premoves, the auto-queen setting, the play dialog redone
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Premoves in the game against Maia, as on Lichess: while she thinks, a move of
the user's piece by its pattern on an empty board (a pawn forward and both
diagonals, sliders through pieces, the king at home to castle with an own rook,
by the king's square or the rook's) is set and shown in dark blue; after her
move it is played at once when legal (a promotion as a queen), else dropped.
A right click or a click beside the own pieces cancels it; a take-back, the
leave question and the end drop it. A piece in hand stays there when Maia
moves, unless she took it.

Settings › Board: «Always promote to a queen», off by default — then the
piece is chosen, as before.

The dialog «Play against the computer» redone after the owner's review: You,
Opponent (the strength in the title, the slider edge to edge with 600/2600,
Weaker · As me · Stronger lit when they match, or a line asking for the
rating), Colour, Time; every choice a framed tile of one height, the tiles of a
row sharing its width; time 3+0…30+20 without category captions, Custom with
aligned sliders, Unlimited (no clocks) as a double tile; a solid scroll bar
in a low window, where the introduction is left out. Dev hook CP_PREMOVE.
Adjourning a game recorded as a task.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 12:12:35 +03:00
vrubelroman
6cd5250e99 Play against Maia: 10+5 by default, no bullet, no time limit as a tile
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
The owner's choices: the fastest control is 3+0 (the bullet presets and the
custom minutes below 3 are gone; a remembered bullet control falls back to
the default), 10+5 by default, «∞ No time limit» a tile of the grid like the
others. The tiles' lines are centred. The note on ratings says what it means:
Maia's scale is Lichess's, higher than FIDE and club ratings, so Maia 1500 is
weaker than a club player rated 1500. Decisions recorded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 11:33:39 +03:00
vrubelroman
ff4dc8b7ed Play against Maia: the designer's must-fix items
- The toolbar's words (Take back, Abort, Resign, Yes/No) at 14 pt, as tall
  as the icon buttons beside them.
- The result strip: four even buttons in a row when they fit; else Analyse,
  Rematch and New game side by side, Save — each as wide as the strip.
- ♞ instead of ⚔ for Play and New game: at small sizes ⚔ read as a cross.
- Maia not downloaded: the main button says «Download and play» and starts
  the game once she is there; the size line, progress and errors sit by the
  buttons, outside the scrolling body.
- No unsaved mark during the game; an unnamed user is «You» in the title.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 05:04:34 +03:00
vrubelroman
9d44c3fea0 Play against Maia: the tester's findings
- Leaving a game in progress any way (window closed, Find in database, an
  update restart) asks «The game is on» first; «Resign and leave» asks nothing
  more. Find in database and the game data are hidden during the game.
- Maia's pause is at most a fortieth of her time plus most of the increment,
  and her clock takes the pause only, not the computing: she never flags.
- Take back gives the clock back to the user (and a first move stays free).
- Maia plays no move a tenth as likely as her best: human mistakes, not a
  2600 hanging her queen.
- The clocks stand on screen while «The game is on» is open.
- The moves played are not undone with Ctrl+Z after the end.
- The dialog body scrolls in a low window; its buttons stay in view.
- «Viewing an earlier position» has its own strip above the user's clock.
- Weights that do not load are removed, so the dialog offers them again.
- Who could not mate when time ran out is said right.
- The checkpoint reader: checked sizes and offsets, bounded memo values.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 04:56:51 +03:00
vrubelroman
41c00fa43d Play against Maia: texts in nine languages
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 04:11:22 +03:00
vrubelroman
9cd28b9039 Play against Maia: dialog, clocks, game screen, result strip
«⚔ Play» (Ctrl+G) opens «Play against the computer»: name and rating
(optional), strength 600–2600 (or weaker/as me/stronger), colour, Lichess time
controls, custom, no clock. The game screen in play mode: clock cards above
and below the notation (read-only), take back, resign (abort before the first
moves); no engine, analysis or editing. Maia answers in a background thread
with a human-like pause bounded so she never loses on time; stale answers are
dropped. Endings: mate, stalemate, no material, threefold, fifty moves, time
(draw when the other side cannot mate), resignation; then the result strip
(Analyse, Rematch, New game, Save to a database) and an ordinary game with the
tags of a played game and [%clk]. Leaving during a game asks (resign and add /
resign and leave / keep playing), the clocks wait meanwhile. maia reads the
published PyTorch checkpoint directly (zip + a small pickle reader that refuses
everything but tensors); maia_download fetches it on request (pinned revision,
SHA-256). Dev hooks CP_PLAY, CP_PLAY_AUTO, CP_MAIA. Russian texts; the other
languages follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 04:10:02 +03:00
vrubelroman
f03a0d2a4b No preview strip: «+ Add as variation» at the end of the line being shown
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-25 03:22:51 +03:00
vrubelroman
6d3d393e25 Notation: the moves of a «Better:» line are painted by hand too (no size change under the mouse)
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-25 03:17:11 +03:00
vrubelroman
670360b9e7 Notation: a variation's moves are painted by hand, so the current move does not change size under the mouse
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-25 03:09:23 +03:00
vrubelroman
fbb5233395 Comment editor: the reviewers' fixes
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Shift+Enter is a paragraph (checked before Enter); the editor does not widen the
narrow panel (22-wide symbols, tighter margins); a variation's continuation after
the editor starts with the move number; 💾, «Add to database…», quitting and a
line preview write the draft first; Ctrl+1…6 with the editor open change its
draft; the ☰ item sits after «Game data…». Look: «Done» at the far right, Cancel
as tall; painted ✓/✕ in a narrow panel; 24-wide symbols with both groups on one
line at 1400; the pressed symbol in the selection's text colour; the field in its
own box; a readable hint line; the field capped so a notation row stays above
and below; the end of a long comment in view; the comment block lights up under
the mouse; the field is named after the title.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-25 03:04:00 +03:00
vrubelroman
7aee0467db Comment editor: own-language notes are not translated, the whole block takes the click, Cancel as tall as Done
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
A short note in the interface language's script inside a book of another script
(and a longer one the detector tells unreliably) is the reader's own: it is left
out of the translation plan. The comment block, not only its text, takes the
double click and the right button.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-25 02:54:13 +03:00
vrubelroman
dc7d9f88b3 User comments: an editor in the notation, symbols, arrows on the board
Some checks are pending
CI / macos-build (push) Waiting to run
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
Enter on a move (the move's menu, a double click on a comment, the ☰ menu) opens
the editor where the comment stands: after any move, in a variation too (the
flow is cut at the move), or at the start of the game; Enter — done, Esc —
cancel, Shift+Enter — a paragraph; another move writes the draft; one edit —
one undo step. Symbols of the move (! ? !! ?? !? ?!, Ctrl+1…6) and of the
position in the editor and in the menu. The right mouse button draws arrows
and circles on the board ([%cal]/[%csl] of the current move; colours by
modifiers). Existing comments are edited and deleted; their commands and
untouched bytes are kept. chess_core: with_text, with_shapes, shapes,
Game::set_comments_before. Dev hooks CP_COMMENT_EDIT, CP_TYPE, CP_SHAPE.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-25 02:35:54 +03:00
vrubelroman
b1e3b6eab7 Library: New game and Paste PGN first in the title row; the chooser's search only for a long list
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 01:59:34 +03:00
vrubelroman
863c957947 Library: New game and Paste PGN beside the database actions; one «+ Game» in an empty base; the folder button under the path
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 01:49:40 +03:00
vrubelroman
1518fc5f70 Library: shelf actions in the title row, «+ Game» for a database, read-only samples
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
The cards row holds only databases; «+ Add database», «✚ New database» and
«🌐 Online games» stand beside «Databases» (folded to «+ ▾ 🌐» when narrow); an
empty shelf shows them as large cards. A database that takes games has «+ Game»
in its table header: a new game meant for it, whose Ctrl+S adds it there (the
target is dropped when the base leaves the shelf or stops taking games). The
chooser lists only databases that take games; with none, «✚ New database…» is
the main button; the UTF-8 copy is in the card menu (also for a file not read
yet). Built-in samples are read-only. An empty database has no filter panel or
search; a narrow search field says «🔍 Search». The table header keeps a short
database name. Task 8 closed: the quick search stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 01:39:19 +03:00
vrubelroman
05026ec45a Own databases: the chooser lists only bases that take games; UTF-8 copy from the card menu; Create does not jump
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 01:03:57 +03:00
vrubelroman
0f66486a22 Own databases: create PGN bases, add, save, delete games; library logging
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Desktop: «✚ New database» on the shelf (Ctrl+Shift+N), «Add to database…»
(Ctrl+Shift+S, 💾, ☰) for any game — new, pasted, from a ChessBase, online or
legacy-encoded database — into a PGN of the user's choice; Ctrl+S saves the
changes back into the game's own PGN (its record is replaced) or adds the game
when the source is read-only; the game data editor (F2, the title, ☰) asked once
when a new game is first added; duplicate check (same players, date, moves →
replace / add as new, no Enter); delete from the table with a question and Undo
(Ctrl+Z, 6 s, waits under the mouse); UTF-8 copy for legacy-encoded files with
the restored letters; online and ChessBase stay read-only. Writes are explicit:
append, or an atomic rewrite through a temporary file and a rename (through a
symlink, keeping the mode, syncing the folder), refused when the file changed on
the disk. chess_core::pgn::store: append/replace/remove/restore/write_utf8_copy,
find_same_game, pgn_date; Game::remove_tag and order_roster. Settings: your
name (annotator), the folder for new databases, the last target. Nine languages.

Also: library warnings (wgpu, winit) go to chesspenguin.log, CP_LOG_FRAMES=1
traces egui_wgpu frames (the GNOME hang hunt); dev hooks CP_OWN, CP_PASTE,
CP_COMMENT, CP_KEYS with Ctrl+, CP_SETTINGS=interface.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-25 00:46:47 +03:00
vrubelroman
ed0e3b1fe1 A new icon everywhere: the penguin in a crown (icons/icon2.png)
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
packaging/icons/make-icons.sh makes every icon from one picture: the Linux hicolor PNGs
(the macOS .icns and the packages take them), the window icon, the Windows .ico, the
Android adaptive foreground (62 % of the 108 dp canvas) and a solid monochrome one for
themed icons, the site's tab, header and iOS icons. The site's link preview takes the
transparent icon and names Android too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 15:20:01 +03:00
vrubelroman
df2ee6f528 Installation counter after review: strict input, limits, country only, GitHub outages
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
- /api/update takes a 32-hex id, an x.y.z version and a known platform; at most 5 new
  installations a day per address are counted (made-up ids do not flood the bot).
- A download's notice: once a day per file and visitor; notices name the country only,
  as the texts promise; Android's text also says the system is sent.
- The release cache is not locked while GitHub is asked (one request asks, the others
  get what is known); after a failure GitHub is asked again in a minute, not on every
  request.
- An unrecognised desktop installation counts as 'other'; the bot logs a wrong token or a
  second listener; .env.example lists the bot's settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 14:08:05 +03:00
vrubelroman
1edbbda368 Count installations that run: the update check goes through the site
The programs (desktop, Android) ask https://chess.vrubel.xyz/api/update for the latest
release instead of GitHub, with a random id of the installation (made once, kept in the
settings), the version and the platform; the site passes GitHub's answer on and keeps one
row per installation and day (no IP; the country of the address). Without the site the
programs ask GitHub, uncounted; with the update check off nothing is sent. /stats shows
installations that ran today, in 7 and 30 days, in all and new ones, by platform and
version. The texts about the update check and the site's privacy line say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 13:45:15 +03:00
vrubelroman
9734108b83 Portuguese (Brazil), Uzbek (Latin) and Kazakh (Cyrillic) on the desktop, Android and the site
Nine interface languages. The system's language is picked up; Portuguese notation has its
own piece letters (R D T B C), Uzbek and Kazakh keep the Latin ones (the 'letters of
the language' choice is not offered for them). Uzbek o'/g' are written with U+2018 on
the desktop, whose font has no U+02BB. Comment translation targets the new languages too.
The shelf's two side cards widen for a longer label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 12:48:03 +03:00
vrubelroman
38841574fb Desktop: narrow windows after testing — Escape and the filters over the list
- The library's Escape waits while a window is open over it (settings, notes); on the
  board alone it first puts back a picked-up piece.
- A condition's chip clicked with the filters over the list keeps them open; widening
  the window with them open over the board alone keeps the board.
- The list's header leaves the database's name out before taking a second line.
- The report's long names wrap in a narrow panel.
- In the 'Game modified' question Escape is Cancel when quitting the program.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 10:39:38 +03:00
vrubelroman
c17f5bc1cb Desktop: narrow side panel polish (designer review)
- The engine row: the name and depth go under the row when they do not fit beside the
  evaluation (⚙ covered them in a 240 pt panel); alone, the name is centred.
- Stacked: the notation part grows by the engine's lines and settings.
- The toolbar wraps a group at a time, without a separator at a row's end.
- A move's cell is at most 160 pt (the notation under the board).
- The filters over the list cast their shadow to the left; the counter on a line of its
  own loses its leading dot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 10:34:20 +03:00
vrubelroman
4ebb1bb683 Desktop: the library in a narrow window — filters over the list, the board in its place
By the window's width alone (docs/design/narrow-windows.md §2): when the list would get
less than its least width beside them, the filters open over it (Esc, a click elsewhere
or the segment closes them) and the search board takes the list's place (Esc, the
segment or the counter go back). The header of the list is measured from its texts and
takes a second line when needed; the shelf folds into one line when its cards need more
than two rows or the window is low, its buttons showing icons when narrow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 10:19:59 +03:00
vrubelroman
0a2c924bfa Desktop: a narrow tall window stacks the notation under the board; least sizes
The game screen is side by side or stacked by the window's size alone (stacked when the
board would be at least 1.25 times bigger so). The side panel never leaves the board
under 220 pt; the window's least size is 640×480 (docs/design/narrow-windows.md §3).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 10:14:10 +03:00
vrubelroman
f65668c0b7 Desktop: side panel content fits its panel (reference tab, engine settings, game header)
- Reference tab: the database box's text was shortened to the whole row (a wrapping row
  reports it as available), and an 8 pt gap stuck out at the end of a full row; the
  result bar was never given up. The content was 51 pt wider than the 320 pt panel, and
  egui moved the panel left, under the board, from a 1200 pt window down.
- Engine settings: the slider gets what the measured names and values leave; under
  100 pt the name and value share a line above a slider across the panel.
- Game header: the buttons are measured first; the title gets the rest and is shortened,
  the result always shows; under 160 pt for the title the buttons show icons.
- CP_PANEL_CHECK=1 reports a side panel wider than its place (a debug build also marks
  what widened it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 10:12:10 +03:00
vrubelroman
e68f4ecbc1 Desktop: the filter panel keeps its width while one types; the Game group on one grid
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
- A text field keeps the place of its × (22 pt and a 4 pt gap) whether shown or not: the
  row stuck out 4 pt once there was text, egui's side panel widened to it, the field grew
  again… up to the panel's largest width.
- The colours row wraps (long words in French); a name field's «=» is on its caption's
  line, so the field does not move when a name is picked.
- «Game»: Years, Elo, Moves, ECO on one grid — captions in a column as wide as the
  longest, «from – to» and Elo with its rule in equal halves, one right edge; Result
  after them (docs/design/large-databases.md §2.6).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 00:43:21 +03:00
vrubelroman
a3541ed1d4 Desktop: Escape in a modified game asks about saving; Escape in the question leaves
The game's Escape is taken when it leaves: the question about unsaved edits, opened in
the same frame, read the same key as its own Escape and closed at once, so Escape seemed
to do nothing in a modified game. In the question Escape now goes on without saving (the
owner's choice); Cancel stays to keep editing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 00:37:34 +03:00
vrubelroman
35ab12999a Desktop: tester's review of the unified view
- Guiding texts of a converted ChessBase database are texts again (§9.4): the converter
  marks them (CbText), the list shows «📄 title», the header counts them, «show texts»
  is offered, a text is no player and only tournament and annotator conditions keep it.
- The PGN filters' index is built in the loading thread, not on the screen's.
- Empty names last when sorting both ways (PGN and ChessBase).
- The quick search finds a date as the table shows it (18.10.2026).
- A position not applied for lack of memory: the arrow shows the order in effect.
- «21 текст», «3 текста»: plural forms of games and texts in the header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 23:57:11 +03:00
vrubelroman
bd1daef951 Desktop: design review of the unified view
- A position not applied for lack of memory: the list in the view's own order (not
  strongest first) and the counter of the filters only.
- The header shortens the database's name before the counter; the quick search keeps
  the place of its × so it does not move on the first letter.
- Each set of table columns keeps its own widths (no stale widths after a resize).
- «Рез.» in the header, «Сбросить поиск» when only the search is set, «нет Эло»,
  «ходов: N» and «тур 1.1» in a row's tooltip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 23:46:36 +03:00
vrubelroman
8c8a723eee Desktop: CP_SEARCH sets the quick search at start (screenshots)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 23:39:46 +03:00
vrubelroman
29ffff3de9 Desktop: the filters and position search of ChessBase for every database
- chess-import pgn_catalog: the tags of a PGN as ChessBase's filters, sorting and name
  suggestions (tournament «Event (place) year», dates with any separator, rating, ECO,
  length counted when there is no PlyCount, comments without clock marks); the quick
  search (Filter::text) for PGN and ChessBase, ё folded as е; which fields a database
  has. The PGN scan counts main-line and all moves and real comments; the position
  table's memory is reckoned from the moves.
- Desktop: one view for all databases (large_db.rs): the PGN table and its small board
  are gone; the quick search in the header with its chip, Ctrl+F twice to the filters;
  downloaded databases sorted newest first by date; texts' checkbox only where there are
  texts; an empty result says which field no game has; position search without memory
  says so on the board and its chip; a reread keeps the conditions.
- Bench: the quick search on a large base.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 23:39:31 +03:00
vrubelroman
e8deec7b27 Downloaded games newest first on the desktop too; the games list counts a download as it goes
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
- Desktop: in a database from Lichess and Chess.com the «№» order is the time the games
  were played, the most recent first (as on the phone); a click turns it around.
- chess-core GameEntry::played_at: the shared key (UTCDate+UTCTime, else Date).
- Android: over a downloaded database's games list the number of games grows with its
  download (it stood still until the end), as on the list of databases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 23:08:40 +03:00
vrubelroman
7f23bca320 Android: the app updates itself; one release check for the desktop and the phone
Some checks are pending
CI / macos-build (push) Waiting to run
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
- crates/releases: the latest release on GitHub, its files and SHA-256 sums, shared by
  the desktop updater and the phone (desktop update.rs keeps its installers).
- mobile-api check_release: a newer release with its APKs and sums; a desktop-only
  release is no update, one without the light APK's sum cannot be checked.
- Android (android-ui.md §25): a check at start and on return once a day (switch and
  «Check now» in About), a card over the databases, a sheet through the install
  permission, the download (DownloadManager), the SHA-256, the full build keeping its
  engine network, and PackageInstaller; the state survives restarts, the update's
  snackbar waits for a screen. Network state permission for both builds (the full one
  crashed without it). Debug builds may ask a test server (CP_UPDATE_API).
- Release notes on GitHub come from this version's CHANGELOG section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 18:42:27 +03:00
vrubelroman
f6072cb7c3 Android: games from Lichess and Chess.com, newest first, with «Download new games»
The downloads of the desktop (lookup by nickname, one database per site or both in one,
resuming without duplicates, games still being played fetched once they end) move into a
shared crate, online-games; the desktop keeps its window on top of it.

On Android, «Add a database» → «Games from Lichess and Chess.com»: a nickname, what each
site has, the download with its progress. It belongs to the app, not to the screen: the
list of databases shows how it goes and says how it ended. «Download new games» in the
database's menu and over its games list fetches only the new ones. The games of a
downloaded database are listed from the most recent one (by UTC date and time, both sites
interleaved). Both builds may now use the internet, only when the user asks.

Reviewed by an independent tester and designer (docs/design/android-ui.md §23, §24).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 16:37:16 +03:00
vrubelroman
1661e238d8 Android: game report — mistakes, blunders and accuracy, as on the desktop
The game analysis of the desktop (evaluations of the main line, judgements, accuracy,
cache and the engine job) moves into a shared crate, game-review, so both apps give the
same numbers. The desktop uses it unchanged in behaviour.

On Android, ⋮ → «Game analysis» runs Stockfish over the main line in its own process
(the live engine waits): an evaluation graph and a status row between the board and the
notation, marks in the notation, the better line of an error on the board, a report sheet
with both players side by side. Games with [%eval] and games analysed before show their
report at once. The analysis stops with the screen and goes on after it, also after the
phone is turned, and is cached as it goes.

Reviewed by an independent tester and designer (docs/design/android-ui.md §21, §22).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 14:10:58 +03:00
vrubelroman
29ded2f55f Desktop: ↑ to the end, ↓ to the start, Escape leaves the game
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Variations move to Shift+↑/↓. Escape cancels a preview or a picked-up piece first, then
returns to the previous game or the library; a window, menu or dialog open over the game
(this frame or the last) keeps the key. CP_KEYS presses keys for manual checks.
Also drops an empty database of a local site run committed by mistake.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 19:57:53 +03:00
vrubelroman
0c912ac669 Android stage 0: the core opens databases without paths; the mobile-api bridge
chess-import opens a database from its content (PGN, zip, 7z, cbv) and a
ChessBase database from the contents of its files: Android hands over file
descriptors, not paths. The text of comments as shown moves to chess-core
(comment_display_text), so the phone and the desktop show the same.

crates/mobile-api: a thin UniFFI bridge — open a database from a descriptor, a
ChessBase folder's files, or a path (tests); game rows a page at a time; a game
as a tree of moves with positions, last-move squares, NAGs and comments. It
builds for arm64-v8a and x86_64 with cargo-ndk (NDK r30, API 31) and its Kotlin
bindings generate with `cargo run -p mobile-api --features bindgen --bin
uniffi-bindgen`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 00:43:54 +03:00