Commit graph

25 commits

Author SHA1 Message Date
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
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
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
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
d0846daf9b ChessPenguin 0.8.0: games from Lichess and Chess.com
Pending Lichess games are asked about by id; broken connections are retried with waits;
a file lock keeps two running ChessPenguins from writing one database.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 08:50:18 +03:00
vrubelroman
e0c99074e2 Online games: anyone's games, one download per database, crash-safe resume, unfinished Lichess games, friendly errors, progress per site
- the window and the shelf speak of any player's games (yours, a pupil's, an opponent's)
- a database is claimed by one download at a time; updates write into the database itself
- merged databases of different nicknames get names of their own
- the state remembers the file length and its last bytes: what a crash appended is cut off
- a deleted database is downloaded again; a partial download goes on the shelf
- Lichess games still being played are fetched once they end (correspondence)
- downloads stop and save on quitting; results show as a toast when the window is closed
- New games button with the time of the last download, disabled offline; 🌐 on online databases

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 08:30:31 +03:00
vrubelroman
79a1a43423 Merge main (0.7.1) into feature/online-games
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 08:03:26 +03:00
vrubelroman
8c3ed18b12 ChessPenguin 0.7.1: updates
The newest release is checked at start; a button next to Settings offers it. The Windows
zip, the AppImage and the Linux archive replace themselves (checksum-checked) and restart;
macOS opens the disk image; packages are downloaded with the command that installs them.
Reviewed by independent tester and designer agents; their findings fixed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 07:55:59 +03:00
vrubelroman
3e8377dba7 Merge main (0.7.0) into feature/online-games
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 00:25:15 +03:00
vrubelroman
3f16ba50fe Справочник (Reference) tab: moves and games of the current position in a shelf database
Two tables (moves with statistics; strongest/newest games with how they went on), theory
of the game and its copies in the database, a stack of games opened from it with no lost
edits, background work cancellable. Reviewed by independent designer and tester agents;
their findings fixed and re-verified.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 23:20:37 +03:00
vrubelroman
d3c87ae269 Games from Lichess and Chess.com by nickname (feature branch, not released)
Probe of both public APIs at start (hidden when offline or changed), lookup, download
into a database per platform with resumable updates, window and shelf card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 21:10:22 +03:00
vrubelroman
e11e09aa18 ChessPenguin 0.6.3
Some checks failed
CI / macos-build (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / check (push) Waiting to run
Release / version (push) Has been cancelled
Release / linux (push) Has been cancelled
Release / flatpak (push) Has been cancelled
Release / windows (push) Has been cancelled
Release / macos (push) Has been cancelled
Release / publish (push) Has been cancelled
Opening index: games from a set-up position are left to the pass; exact preparation
progress; quiet import notes; clearer preparation text; randomized Mega test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 19:48:14 +03:00
vrubelroman
4b92fa32de Opening index for large ChessBase bases (first 10 moves, built with the booster, loaded when memory allows); memory guard for big PGN position tables; CP_MEMORY_LIMIT
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-19 19:24:15 +03:00
vrubelroman
a7d9d599aa Large ChessBase bases: our own search booster when .cbb is missing or stale; skip the booster for early positions
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-19 18:54:22 +03:00
vrubelroman
131e4b62fb Position search fixes from QA report 3
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
- The result cache keys on the board's move order too, so "in this move
  order" is not reused from another order of the same position.
- While a search runs, the hover arrow and the position a game opens at
  belong to the rows shown; small databases keep the last result dimmed.
- PGN: a game ending in its chosen occurrence has no next move (it was
  taken from a variation); Collector::add_match_with_next.
- Average rating of a continuation only from games with both ratings.
- Narrow windows: the pane switch stays visible, chips that do not fit
  become "+N more", columns hide by priority, the date becomes the year.
- Ctrl+Shift+Backspace clears all conditions with the position; × for the
  position in small databases; the outcome cache is bounded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 09:03:26 +03:00
vrubelroman
307c55d8e6 ChessPenguin 0.5.0: find games by position on a board
Some checks are pending
CI / windows-build (push) Waiting to run
CI / check (push) Waiting to run
Release / version (push) Waiting to run
Release / linux (push) Blocked by required conditions
Release / flatpak (push) Blocked by required conditions
Release / windows (push) Blocked by required conditions
Release / publish (push) Blocked by required conditions
The "Board" pane next to the game list (Ctrl+B): moves played on it filter
the list to the games that reach the position by any move order, together
with the filters; the moves played next are listed with games, a results
bar, average rating and last year. Games reached by another order are
marked and "only this order" narrows the list; strongest games first.
A game opens at the found position; "Find in database" (Ctrl+Shift+F)
searches the position of the game on screen.

Large ChessBase databases: a fast main-line walk (moves built from the
board), pruning by material and pawns, the .cbb search booster when valid;
Mega Database: 0.4 s for the starting position, under 0.1 s deeper.
PGN databases and books: positions of all games, variations included,
kept in memory once built.

Also: × to clear filter and search fields; "Open as a new game" opens at
the last move; the "Moves" column is now "Length".

Docs: decision 13, design (docs/design/board-search.md), research
(position-search, position-index), dev notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 08:42:08 +03:00
vrubelroman
34a4a6ad15 ChessPenguin 0.4.0: large ChessBase databases with a filter panel
Some checks failed
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
Release / version (push) Has been cancelled
Release / linux (push) Has been cancelled
Release / flatpak (push) Has been cancelled
Release / windows (push) Has been cancelled
Release / publish (push) Has been cancelled
Mega Database (11.7 million games) opens in under a second: a .cbh with
20,000 records or more is read in place, a game is converted to PGN when
opened. Filter panel on the right (player with suggestions, colour,
opponent, tournament, annotator, years, Elo rule, result, ECO, moves,
comments, variations), applied live in the background with cancellation.

Fixes: a ChessBase game unreadable from its first move (Chess960) crashed
the import; databases mixing UTF-8 and single-byte texts were decoded as
Cyrillic.

Docs: decision 12, design (docs/design/large-databases.md), format research
and acceptance criteria, QA report 2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 01:02:36 +03:00
vrubelroman
ff1a939ef3 Remove the in-app close button; the window manager provides window controls
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 23:04:13 +03:00
vrubel
f25826664a Game screen: result in the header, move badges, refutation arrows, viewed games
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
- Header shows the result (1-0, 0-1, ½-½) next to the players.
- Lichess-style badge on the moved piece: engine judgement (??, ?, ?!) when the
  game analysis is shown, otherwise the author's !/?/!!/!?/?! symbol.
- On a marked move the board shows the engine's refutation (opponent's best
  reply) and the best answer to it instead of the better move.
- Engine arrows are all blue and deduplicated; with the live engine on only its
  arrows are drawn.
- Library marks games opened before with a check (remembered by content in
  viewed.json); context menu to mark/unmark.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 14:00:19 +03:00
vrubel
bb7d3b3fa6 Open ChessBase databases (.cbh, .cbv) and zip/7z archives
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
New crate chess-import converts non-PGN sources to PGN in memory and returns
a PgnDatabase, so the library, notation and analysis work unchanged:
- .cbv archives (container rewritten after uncbv), .cbh with companion files
  (layout after the public Morphy format description): games, variations,
  comments with per-database code page detection, NAGs, squares/arrows, set-up
  positions, time spent, book chapters (guiding texts) as move-less records;
- ChessBase figurines become piece letters, diagram/object markers handled,
  Western names in Cyrillic databases read correctly;
- .zip/.7z with PGN (own encoding each), .cbh and .cbv; duplicates skipped;
- .cbz/encrypted archives and 2CBH rejected with clear messages.
Library: '+ Add database', format shown, import notes; comments keep
paragraph breaks. Tests on the user's sample books (skipped when absent).

Also: AUR PKGBUILD for 0.2.0 with the bundled Stockfish.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 13:18:27 +03:00
vrubel
8188b584aa ChessPenguin 0.1.0
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
Native chess database for Linux: PGN library, notation with variations and
comments, UCI engine analysis, move entry and export.

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