Commit graph

199 commits

Author SHA1 Message Date
vrubelroman
b384f7b792 task 43 review: hint stays dimmed during an engine line, plain text, help under «Board», ring 10×10, reopened game keeps the hint 2026-11-27 14:24:02 +03:00
vrubelroman
112fee89a5 task 43: arrows/circles hint above the notation, sign by moves with [%cal]/[%csl], apply_shape tests, CP_HINT_RESET 2026-11-27 13:55:54 +03:00
vrubelroman
df7ac0c5ae opening trainer: starter repertoires with Russian comments for the Russian interface 2026-11-27 13:27:42 +03:00
vrubelroman
2f75b52556 opening trainer: four starter repertoires for new and updated users, wider repertoire panel; headless test windows 2026-11-27 12:54:40 +03:00
vrubelroman
27217322ed opening trainer: table columns «Today» (review N / new: N / when) and «Passed» (bar at a fixed place, A/Y); «passed / consolidated» wording in the card, the summary and Lines 2026-11-27 09:38:35 +03:00
vrubelroman
613d14bfdd opening trainer: the table's bar is green/blue on a visible track (white on a dark selection), «learning Z» instead of «0/Y», column «Progress», the next review under «Today» 2026-11-27 09:23:54 +03:00
vrubelroman
87e8a6d794 opening trainer: the mini-bar on a selected row takes the selection's text colour; a grey track in the light theme 2026-11-27 08:42:18 +03:00
vrubelroman
3011bebd80 opening session: the line of moves to the board (block C) is back, by the owner's decision of 2026-11-27 2026-11-27 08:23:31 +03:00
vrubelroman
7cb0291e48 opening trainer: the «Learned» column has the card's two-segment bar and a hint on what «learned» takes; «no moves» for an empty repertoire; the summary shows «Learning +N» 2026-11-27 08:22:02 +03:00
vrubelroman
8ca7f43c3c board: temporary right-button arrows and circles in play and opening training (ported from the working tree) 2026-11-27 08:18:33 +03:00
vrubelroman
358e1bf08e opening trainer: no «0 left» on the summary; «Learned X of Y · learning Z»; S0 shows the repertoire's start; «Switch colour to …» in the menu 2026-11-27 02:16:55 +03:00
vrubelroman
f717644b6d opening trainer: «Review all» is always in the card's button row when the repertoire has moves; a narrow panel narrows the buttons 2026-11-27 02:14:57 +03:00
vrubelroman
2128573b5d opening trainer: the section header has the game screen's height (separator at 52, the same board) 2026-11-27 02:13:19 +03:00
vrubelroman
ebd705cf5d opening trainer: the branch header names the branch in SAN with move numbers (also from the QA hook) 2026-11-27 02:10:00 +03:00
vrubelroman
04af686dfc i18n: drop 202 strings of the removed training section 2026-11-27 01:59:14 +03:00
vrubelroman
9a26290b93 opening session: the summary test computes the summary 2026-11-27 01:57:49 +03:00
vrubelroman
a9fc7b98fe opening session: summary shows new moves left and the next review separately; no «× Finish» on the summary 2026-11-27 01:57:37 +03:00
vrubelroman
e1ea994da4 opening session: test that a first-move mistake returns once and keeps the count (10 → 20 is the next session: 10 learned moves due today + 10 new) 2026-11-27 01:55:43 +03:00
vrubelroman
a5b07e9409 opening trainer: starter repertoires (Spanish for White, Najdorf for Black) on the first opening 2026-11-27 01:51:22 +03:00
vrubelroman
d54e359f76 opening trainer: whole card frames, buttons never cut, path cut on the left, no arrow after a stopped session 2026-11-27 01:40:14 +03:00
vrubelroman
8a94d08822 opening session: a new move's showing is recorded only with the played move
A new move left on the board when the session stops stays new, as the result
and the card say (restores the original expectation of
a_session_needs_no_question_to_go_back_and_counts_refresh_after_it).
2026-11-27 01:34:36 +03:00
vrubelroman
0493965a71 wip: repertoire_ui test fixes in progress 2026-11-27 01:31:14 +03:00
vrubelroman
98f0e4749f wip: opening trainer v2 desktop UI (repertoires, session, lines), i18n, devhooks doc
One repertoire_ui test still fails (see docs/qa/opening-trainer-v2-devhooks.md).
2026-11-26 17:13:34 +03:00
vrubelroman
8c430f1eaf release: prepare 2.3.0 with annotated repertoire variations and faster training 2026-11-06 01:31:15 +03:00
vrubelroman
860e84d0d9 fix: refine opening training UI, move feedback and opponent preparation 2026-11-06 00:26:01 +03:00
vrubelroman
a4521d94ed Merge Android clipboard into opening training
# Conflicts:
#	CHANGELOG.md
#	docs/decisions.md
#	docs/dev/tasks.md
2026-11-05 21:23:29 +03:00
vrubelroman
d1733b4fe5 feat: implement ChessTempo opening learning trainer 2026-11-04 16:24:30 +03:00
vrubelroman
b08aca0b4c refine opening repertoire table 2026-11-03 22:56:09 +03:00
vrubelroman
1b4d30900e feat: refine opening repertoire training 2026-11-03 19:04:22 +03:00
vrubelroman
71ca5ad9e6 feat: simplify opening variation training 2026-11-03 11:03:24 +03:00
vrubelroman
f49aab68fa feat: add opening repertoire training 2026-11-03 00:03:51 +03:00
vrubelroman
fdcb12bd80 Release 2.1.5
Some checks failed
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 / android (push) Has been cancelled
Release / publish (push) Has been cancelled
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Release / version (push) Has been cancelled
Automatically save opponent preparations and start the opening-error engine when the report is ready, while preserving manual Stop and saved evaluations.

Remove the book comparison from opponent preparation: its UI, background work, algorithm and development hook are gone. Legacy saved data remains readable and is preserved for a possible future revert.

Align game counts, error counts and percentages in the preparation summary and refresh the architecture and team documentation.
2026-11-02 13:35:21 +03:00
vrubelroman
b682755f0e Prep row shortens in one order; the game link as in its header everywhere
The period and the depth captions are chosen together: the depth gives
way first at every width. The list's context menu reads the game's link
(once per menu) and names the site as the game screen does; the header's
subtitle leaves the web address to the globe, whose tooltip says what
opens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 22:04:09 +03:00
vrubelroman
a3532d6a73 Open a downloaded game on Lichess or Chess.com
The game screen has a globe after the result and an item in ☰ when the
game's Link or Site is a web address: a Lichess game opens at the move
shown, from the side at the bottom of the board; a Chess.com game (its
Link tag) at its page. The game list's context menu opens it too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 22:01:11 +03:00
vrubelroman
eb3b8fd8df Opponent prep: more room for the period's middle caption
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 22:01:11 +03:00
vrubelroman
d4c141a841 Opponent prep: combos as wide as their text, no search or save in no games
The period and the depth fit at 640 px with their middle captions; the
header counts the games of the colour shown; the empty-period note names
the colour; the preparations list says «за 2 года · 8 партий» and
«последние 100».

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 21:58:56 +03:00
vrubelroman
e2f4935ecc Opponent prep: the newest game by its earliest day; dates after today are typos
One game of «2026.??.??» no longer moves a period past the exactly dated
games; a date after today counts as none (in periods and in «Last N»).
Every colour change goes through set_color; a name with two ids in the
database takes both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 21:58:10 +03:00
vrubelroman
758856f458 Opponent prep: the tester's findings
A saved preparation is the player's by his names, not the database's
name ids (they shift when a game is deleted or the file is replaced):
opened from the list, the names are found again. The period counts are
of the games a report can take (set-up games left out first). A partly
known date is in a period when any day it can mean is; a date after
today is not the newest. Reopening a hidden report notices a deleted
preparation; a colour change is saved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 21:54:03 +03:00
vrubelroman
e80933d48d Opponent prep: the designer's review
The period caption shortens in a narrow row; «Last N» with both colours
shows «N + N»; the menu says from which date it counts; undated games
left out are named in the summary; no games in a period offer all games.
Without any dates a period by months takes all. Crisp icons (★, 🗐);
saved is a quiet mark. The list cuts long texts, names the colour in
words, opens on double-click, renames with Cancel, explains a missing
database, and tells while it opens one. CP_PREP_LIST for screenshots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 21:47:08 +03:00
vrubelroman
570bd84dcf Opponent prep: periods of 3 and 6 months, not 5 years
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 20:28:35 +03:00
vrubelroman
57fa98241b Opponent prep: which games by period or number, saved preparations
The report takes all the player's games, those of the last 1/2/5 years
before his newest game, or his last 50/100/200 of each colour; every
choice shows how many games it takes. Undated games count only with all.
«💾 Save» keeps a preparation with its errors in the program's data;
«📑 Preparations» in the library opens, renames and deletes them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 18:11:58 +03:00
vrubelroman
771162f627 Review engine: the probe started by the user's path, a timeout told and not kept, no wait on quitting; the shelf takes a link once
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 «checking your engine» toast only while an engine is really being checked.
- The probe starts the engine by the path of the settings or PATH (a snap or a
  wrapper looks at its name); the verdict stays the real file's.
- A Stockfish 19 that does not finish the check in time: its own text, kept in
  memory until the next request, never on the disk.
- Quitting waits for probes 2 s at most; an engine hung in its handshake dies with
  the probe's thread (uci: EngineConfig::kill_with_parent, PR_SET_PDEATHSIG).
- touch_database: a link to a database on the shelf is that database.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 13:51:29 +03:00
vrubelroman
829bde9fdb Review engine and dropped files: fixes after the independent check
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 probe turns down an engine not called «Stockfish 19» right after `uci`, without
  a search; a search has a 10 s guard, the probe 30 s; probes stop and their engines
  quit (or are killed) when the program quits. Play engines (Rodent, Maia) are never
  candidates.
- «Did not start» is its own outcome, said once and tried again next time; verdicts
  are kept for the real file with the reference's key; the engine's name is checked
  again when a job starts (a wrapper may run another program).
- The wait for a probe belongs to its game or preparation; the game analysis and the
  opening errors wait apart; «analyse anew» keeps its `full`.
- The offer says why: another engine (settings / system), a Stockfish 19 that
  calculates otherwise, one that did not start; the size line is back.
- Dropped files: missing ones told, known ChessBase parts only, duplicates by the real
  file, each folder listed once; drops never replace a database being chosen again,
  a cancelled «Choose again» ends it; «Added to the shelf» over a game; a framed
  highlight with a card; long names shortened.
- decisions.md: where dropping works (not in a Wayland session: winit 0.30).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 13:42:19 +03:00
vrubelroman
391977a5ef Game analysis on the user's own Stockfish 19 once it searches as ours; files dropped on the window open as databases
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
- review_engine: ChessPenguin's Stockfish 19, else a Stockfish 19 of the user's
  (settings, PATH) whose probe (game_review::probe: id name and three searches of the
  analysis's fixed mode at 100k nodes) matches the reference of ours; probed in the
  background, the verdict kept by path, size and time. Other engines: the offer names
  them («В настройках указан …»).
- Dropped files and folders open as «Add database» does (.pgn/.cbh/.cbv/.zip/.7z, the
  .cbh of any ChessBase part); others get a toast; «Release to open» while dragging.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 13:16:15 +03:00
vrubelroman
b5da315343 Sizes in the interface's language: units and the decimal sign («2,2 ГБ, предел 2,0 ГБ»)
platform::size_text takes the units from the translations ({n} GB …) and
the decimal comma where the language writes one; every size the web version
shows goes through it. chessbase.mjs takes CP_LANG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 21:15:11 +03:00
vrubelroman
bc104c55b4 Web version: ChessBase databases of several files and folders, a 2 GB limit with a polite refusal, messages without the page's paths
A .cbh chosen alone brings a window: its folder (Chrome, Edge:
showDirectoryPicker opening beside the file, the folder remembered; others:
webkitdirectory) or all its files; the files are grouped into databases by
name (chess_import::group_chosen), the reader opens a ChessBase one with
open_chessbase_owned. The user's files stay the browser's File objects: the
worker reads them, the page never holds a database's bytes; a kept copy
takes the whole database. Over 2 GB of the files read: refused with the way
to the desktop program. A reader out of memory says so in the user's words.
Paths like /opened/... are no longer shown (platform::files::shown).

chess-core: detect_letter_substitution decodes the text a piece at a time;
it held the whole text as chars (four times its size): a 1 GB cp1251 PGN
could not be read in a browser (capacity overflow) and cost gigabytes on a
computer. Now 1.95 GB opens in Firefox and Chromium.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 20:42:18 +03:00
vrubelroman
bda92c5675 Web version: «Allow reading» checked, a kept copy lets the handle go, dropped files told apart in Chrome; docs: §9, the checks in Chromium
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 17:58:01 +03:00
vrubelroman
f694bc768b Web version: databases read in a worker, the shelf's counts, Chrome and Edge remember chosen files
The page's reader: a Web Worker with a second instance of the program reads
a database (PGN, CBV, ZIP, 7Z) and gives back its text and index; the page
puts it together without reading it again (chess_core::PgnIndex,
PgnDatabase::into_index / from_index, serde behind a feature). A 13 MB CBV:
the longest frame 17 ms in Firefox, 67 ms in Chromium (1000 ms before).
platform::open_database is the same on both sides: away from the screen,
done when read. The shelf's cards count the games the same way (one file
at a time); the counts are kept through platform::fs.

Chrome, Edge (File System Access): a chosen file's handle is kept in the
browser's storage; at the next visit the file is read again by itself when
the browser allows it, else the card offers «Allow reading» (the browser's
own question). Files of different visits get folders of their own.

Checks: t.choose(files, open) for both browsers (in Chromium the handles of
the site's private file system stand for the dialog's); app.mjs checks the
draft, the question on leaving and the remembered file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 17:50:54 +03:00
vrubelroman
000821887f Web version: the engine's location as a type, the browser's history and Back, the question on leaving, the draft of an unsaved game
EngineLocation: an engine starts from its program on a computer, from the
address of its Web Worker's script in a browser; analysis, the review job,
the judge and the settings take it instead of a path.

platform::page: a game on the screen is an entry of the browser's history,
so Back is «← Library» (with the same questions); unsaved changes or a
running review make the browser ask before the page is left. The draft of an
unsaved game is written every 5 s while it has changes and offered at the
next start (Open / Delete); a saved or left game takes it away.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 17:35:30 +03:00
vrubelroman
67c91b6e0d Web version: no engine-file or folder buttons in a browser's settings; docs: the review check (359 of 359 positions the same as on the computer), checks of stage 2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 16:43:28 +03:00