release: prepare ChessPenguin 2.2.0 and update website

This commit is contained in:
vrubelroman 2026-11-06 00:26:37 +03:00
parent 860e84d0d9
commit f425e3abc2
19 changed files with 121 additions and 31 deletions

View file

@ -5,7 +5,7 @@
- Исходное ТЗ: `техническое задание.txt`.
- Пользовательские материалы: `designExample/`, `pgnFilesforExample/`, `engines/`.
- Рабочий язык обсуждений и проектных заметок — русский; идентификаторы кода — английский.
- Текущий этап: развитие выпускаемого продукта (релиз 2.1.5). Задачи и бэклог — `docs/dev/tasks.md`.
- Текущий этап: развитие выпускаемого продукта (релиз 2.2.0). Задачи и бэклог — `docs/dev/tasks.md`.
- Архитектура реализованной системы: `docs/architecture.md`; архитектурное предложение этапа исследования — `docs/research/architecture-proposal-2026-10-17.md`; исследования: `docs/research/`.
- Журнал решений: `docs/decisions.md`; подтверждённые пользователем решения имеют приоритет над предложениями исследований.

View file

@ -4,7 +4,9 @@ All notable changes are listed here. Versions follow [Semantic Versioning](https
## [Unreleased]
- Desktop opening training: collect PGN repertoires, add a line from a game, and learn
## [2.2.0] — 2026-11-06
- Desktop opening training (α version): collect PGN repertoires, add a line from a game, and learn
one main answer per position for White or Black. Learning history and the SRS schedule
are shared between transpositions and repertoires. Three independent correct answers
mark a move as learnt without ending reviews; mistakes, previews and replays after an
@ -19,10 +21,21 @@ All notable changes are listed here. Versions follow [Semantic Versioning](https
- The learning dashboard compares repertoires and their branches without double-counting
shared positions, and shows exact move analytics, daily history, scheduled reviews and
answer-sequence charts. Snapshots are captured automatically on the first daily view of
a scope and can also be saved explicitly without changing PGN or learning state. Full-line
a scope without changing PGN or learning state. Full-line
statistics preserve shared moves on each actual PGN line while the global total deduplicates
them. The library table keeps ECO codes, opening names and the actual number of variations;
the training board has no move list and keeps PGN badges, arrows and circles.
- Training follows the main application's layout: clearer progress labels and settings,
consistent buttons, compact session controls and board rotation in the bottom toolbar.
The selected repertoire is ready to train on entry; its saved colour and mode are restored.
Progress saves in the background without a repeated status message or blocking the board.
- Moves no longer jump back after a drag while progress is being saved. A completed move
reused as the next task's context does not repeat its animation or sound.
- Opponent preparation ignores a player's later mistakes once their opponent has made the
first mistake. Saved reports and cached evaluations are rechecked without rerunning the engine.
- The main toolbar keeps its position and button appearance while the app starts and checks
the network. Online games can be opened immediately; connection status and retry are shown
inside that dialog. Startup spinners have been removed from the main screen.
- Android: when the app opens or returns to the foreground, a PGN in the clipboard can be
opened from a small confirmation dialog. One or several games are stored as a local copy,
and the first game always opens on the board. Opening or dismissing the same text is remembered

28
Cargo.lock generated
View file

@ -774,7 +774,7 @@ dependencies = [
[[package]]
name = "chess-core"
version = "2.1.5"
version = "2.2.0"
dependencies = [
"encoding_rs",
"pgn-reader",
@ -785,7 +785,7 @@ dependencies = [
[[package]]
name = "chess-import"
version = "2.1.5"
version = "2.2.0"
dependencies = [
"chess-core",
"encoding_rs",
@ -798,7 +798,7 @@ dependencies = [
[[package]]
name = "chess-openings"
version = "2.1.5"
version = "2.2.0"
dependencies = [
"chess-import",
"serde",
@ -807,7 +807,7 @@ dependencies = [
[[package]]
name = "chesspenguin"
version = "2.1.5"
version = "2.2.0"
dependencies = [
"arboard",
"base64 0.22.1",
@ -854,7 +854,7 @@ dependencies = [
[[package]]
name = "chesspenguin-web"
version = "2.1.5"
version = "2.2.0"
dependencies = [
"chesspenguin",
"eframe",
@ -1705,7 +1705,7 @@ dependencies = [
[[package]]
name = "game-review"
version = "2.1.5"
version = "2.2.0"
dependencies = [
"chess-core",
"chess-openings",
@ -2426,7 +2426,7 @@ dependencies = [
[[package]]
name = "maia"
version = "2.1.5"
version = "2.2.0"
dependencies = [
"serde_json",
"shakmaty",
@ -2513,7 +2513,7 @@ dependencies = [
[[package]]
name = "mobile-api"
version = "2.1.5"
version = "2.2.0"
dependencies = [
"chess-core",
"chess-import",
@ -3121,7 +3121,7 @@ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
[[package]]
name = "online-games"
version = "2.1.5"
version = "2.2.0"
dependencies = [
"chess-core",
"serde",
@ -3394,7 +3394,7 @@ checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6"
[[package]]
name = "play"
version = "2.1.5"
version = "2.2.0"
dependencies = [
"chess-core",
"getrandom 0.3.4",
@ -3495,7 +3495,7 @@ checksum = "196a7c80b9a7652aba7cc070827516c2abe4ccdf53d128e1944003cf5726cff1"
[[package]]
name = "prep"
version = "2.1.5"
version = "2.2.0"
dependencies = [
"chess-core",
"chess-import",
@ -3694,7 +3694,7 @@ dependencies = [
[[package]]
name = "releases"
version = "2.1.5"
version = "2.2.0"
dependencies = [
"serde_json",
"ureq",
@ -4692,7 +4692,7 @@ dependencies = [
[[package]]
name = "trainer"
version = "2.1.5"
version = "2.2.0"
dependencies = [
"chess-core",
"chrono",
@ -4735,7 +4735,7 @@ checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
[[package]]
name = "uci"
version = "2.1.5"
version = "2.2.0"
dependencies = [
"js-sys",
"libc",

View file

@ -18,7 +18,7 @@ members = [
]
[workspace.package]
version = "2.1.5"
version = "2.2.0"
edition = "2024"
rust-version = "1.97"
license = "GPL-3.0-or-later"

View file

@ -1,6 +1,6 @@
# Архитектура ChessPenguin
Статус: описание реализованной системы. Обновлено 2026-11-04: выпущен релиз **2.1.5**; изменения тренажёра дебютов ниже относятся к текущей невыпущенной ветке.
Статус: описание реализованной системы для выпуска **2.2.0**, обновлено 2026-11-06. Тренажёр дебютов включён в настольное приложение с пометкой α.
Первоначальный документ с этим именем — архитектурное предложение этапа исследования
(2026-10-17) — сохранён в `docs/research/architecture-proposal-2026-10-17.md`.
@ -69,7 +69,8 @@ desktop (egui, apps/desktop) │ web (wasm, apps/web) │ android (Kotlin + mobi
- **Обучение дебютов**: PGN-дерево отделено от знания хода. Ключ LearningItem —
`(profile, FEN4, expected UCI)`, поэтому транспозиции и одинаковые ходы из разных
репертуаров используют общую историю. Попытка, SRS-расписание и snapshot сессии
сохраняются атомарно; `client_attempt_id` исключает дубли, revision обнаруживает
сохраняются атомарно в фоновом worker; UI получает результат через канал и не принимает
повторный ответ до завершения записи. `client_attempt_id` исключает дубли, revision обнаруживает
конфликт одновременных сессий. Исторические снимки не пересчитываются задним числом.
Агрегаты и подготовка сессии выполняются вне UI-потока.

View file

@ -466,3 +466,14 @@ AUTO_CONTEXT сохраняются прежним способом, включ
по-прежнему содержит только ответившие сервисы. Доступность обновления уже
открытой онлайн-базы сохраняет прежнюю зависимость от результата проверки.
На главный экран индикатор ожидания не возвращается.
## Выпуск 2.2.0 (2026-11-06)
Владелец разрешил закоммитить изменения, слить ветку тренировки в `main`, отправить
в Forgejo и GitHub и выпустить сборки с обновлением сайта. Версия «2.2» оформляется
по принятому SemVer как `2.2.0`, тег `v2.2.0`. Тренировка дебюта в desktop сохраняет
пометку α; Android получает уже включённое открытие PGN из буфера с подтверждением.
GitHub публикуется существующим фильтром внутренних материалов; ТЗ тренажёра
также исключено. Отправка главной ветки и тегов атомарная, без перезаписи чужой
истории. Сайт получает номер и файлы выпуска из GitHub; новый текст на девяти
языках публикуется после готовности сборок.

View file

@ -43,6 +43,11 @@
<category>BoardGame</category>
</categories>
<releases>
<release version="2.2.0" date="2026-11-06">
<description>
<p>Opening repertoire training (alpha) with spaced repetition, resumable sessions and learning statistics. Clearer training controls, smoother moves and a stable startup toolbar. Opponent preparation excludes mistakes after the opponent went wrong first. Android can open PGN from the clipboard with confirmation.</p>
</description>
</release>
<release version="2.1.5" date="2026-11-02">
<description>
<p>Opponent preparations save automatically, the engine starts searching for opening mistakes by itself, and the preparation layout is clearer. The book comparison has been removed.</p>

View file

@ -25,6 +25,7 @@ internal=(
docs/architecture.md
docs/decisions.md
docs/implementation-plan.md
docs/chesstempo_opening_trainer_TZ.md
docs/research
docs/design
docs/qa
@ -72,6 +73,7 @@ if [[ -n "${DRY_RUN:-}" ]]; then
exit 0
fi
git push --force "${remote}" main
git push --force "${remote}" --tags
# Deterministic filtering keeps the published history intact. Refuse divergence
# or an existing tag change instead of overwriting a concurrent publication.
git push --atomic "${remote}" main --tags
echo "Published $(git rev-parse --short main) to ${remote}"

View file

@ -113,3 +113,25 @@ its dev hooks (`docs/dev/desktop.md`) into `shots/raw/` (not committed), then
`python3 -I shots/derive.py` makes the WebP/JPEG/PNG sizes and `static/og-image.png`. The
games are public domain with our own comments; the large database appears only as a table
of game data under a neutral name, never with its annotations.
## Production deployment
Run from the repository root after committing `website/`:
```sh
cargo test --manifest-path website/server/Cargo.toml --locked
website/deploy/deploy.sh
website/deploy/deploy.sh status
```
The script builds an image tagged with the current commit, sends it over SSH to
`docker-prodVM:/home/vrubel/services/ChessPenguinSite`, restarts the container and checks
`http://127.0.0.1:8140/healthz` on that host. It preserves the remote `.env` and `data/`.
Use `website/deploy/deploy.sh rollback` to restore the previously deployed image.
For 2.2.0, publish the GitHub release and verify its expected downloadable assets before
deploying the translated release highlights. The site's version, publication date, asset
names, sizes and download destinations come from GitHub, not these highlights. The
10-minute release cache refreshes automatically; restarting the site also clears it.
After deployment, check `/healthz`, `/api/release`, `/`, and `/ru/` on the public site.
Do not probe `/download/*` merely to check availability: those routes count downloads.

View file

@ -205,5 +205,8 @@
"app_open_anyway_note": "Sie ist für den großen Bildschirm eines Computers gemacht: Auf Handy und Tablet ist alles klein, und für die Analyse lädt sie die Engine herunter ({size}).",
"app_nojs": "ChessPenguin braucht JavaScript.",
"app_loading": "ChessPenguin wird geladen…",
"app_failed": "ChessPenguin ist in diesem Browser nicht gestartet. Aktualisieren Sie den Browser oder öffnen Sie die Seite in Chrome, Edge, Firefox oder Safari."
"app_failed": "ChessPenguin ist in diesem Browser nicht gestartet. Aktualisieren Sie den Browser oder öffnen Sie die Seite in Chrome, Edge, Firefox oder Safari.",
"release_220_title": "Neu in 2.2.0",
"release_220_training": "Eröffnungstraining am Computer (α-Version): PGN-Repertoires importieren, mit Weiß oder Schwarz in zeitlichen Abständen wiederholen, Sitzungen fortsetzen und den Lernfortschritt verfolgen. Gemeinsame Stellungen werden über alle Repertoires hinweg nur einmal gezählt.",
"release_220_android": "Unter Android lässt sich beim Start oder bei der Rückkehr zur App PGN aus der Zwischenablage öffnen. Der Import beginnt erst nach Bestätigung: Eine oder mehrere Partien werden als lokale Kopie gespeichert, und die erste Partie öffnet sich auf dem Brett."
}

View file

@ -205,5 +205,8 @@
"app_open_anyway_note": "It is made for a computer's big screen: on a phone or tablet everything is small, and for analysis it downloads the engine ({size}).",
"app_nojs": "ChessPenguin needs JavaScript.",
"app_loading": "Loading ChessPenguin…",
"app_failed": "ChessPenguin did not start in this browser. Update the browser or open the page in Chrome, Edge, Firefox or Safari."
"app_failed": "ChessPenguin did not start in this browser. Update the browser or open the page in Chrome, Edge, Firefox or Safari.",
"release_220_title": "New in 2.2.0",
"release_220_training": "Opening training on desktop (α version): import PGN repertoires, practise White or Black with spaced repetition, resume sessions and follow your progress. Shared positions count once across repertoires.",
"release_220_android": "On Android, opening or returning to the app offers to open PGN from the clipboard. Import starts only after confirmation: one game or several are saved as a local copy, and the first game opens on the board."
}

View file

@ -205,5 +205,8 @@
"app_open_anyway_note": "Está pensada para la pantalla grande de un ordenador: en el móvil y la tableta todo se ve pequeño y, para analizar, descarga el motor ({size}).",
"app_nojs": "ChessPenguin necesita JavaScript.",
"app_loading": "Cargando ChessPenguin…",
"app_failed": "ChessPenguin no se ha iniciado en este navegador. Actualiza el navegador o abre la página en Chrome, Edge, Firefox o Safari."
"app_failed": "ChessPenguin no se ha iniciado en este navegador. Actualiza el navegador o abre la página en Chrome, Edge, Firefox o Safari.",
"release_220_title": "Novedades de la versión 2.2.0",
"release_220_training": "Entrenamiento de aperturas en el ordenador (versión α): importa repertorios PGN, practica con blancas o negras con repetición espaciada, retoma sesiones y sigue tu progreso. Las posiciones compartidas entre repertorios se cuentan una sola vez.",
"release_220_android": "En Android, al abrir la app o volver a ella, puedes abrir el PGN del portapapeles. La importación solo empieza tras confirmarla: una o varias partidas se guardan como copia local y la primera se abre en el tablero."
}

View file

@ -205,5 +205,8 @@
"app_open_anyway_note": "Elle est faite pour le grand écran d'un ordinateur : sur téléphone et tablette tout est petit, et pour l'analyse elle télécharge le moteur ({size}).",
"app_nojs": "ChessPenguin a besoin de JavaScript.",
"app_loading": "Chargement de ChessPenguin…",
"app_failed": "ChessPenguin n'a pas démarré dans ce navigateur. Mettez le navigateur à jour ou ouvrez la page dans Chrome, Edge, Firefox ou Safari."
"app_failed": "ChessPenguin n'a pas démarré dans ce navigateur. Mettez le navigateur à jour ou ouvrez la page dans Chrome, Edge, Firefox ou Safari.",
"release_220_title": "Nouveautés de la version 2.2.0",
"release_220_training": "Entraînement aux ouvertures sur ordinateur (version α) : importez des répertoires PGN, entraînez-vous avec les blancs ou les noirs grâce à la répétition espacée, reprenez vos séances et suivez vos progrès. Les positions communes aux répertoires ne sont comptées qu’une fois.",
"release_220_android": "Sur Android, au lancement ou au retour dans l’application, vous pouvez ouvrir le PGN du presse-papiers. L’import ne commence qu’après confirmation : une ou plusieurs parties sont enregistrées dans une copie locale, puis la première s’ouvre sur l’échiquier."
}

View file

@ -205,5 +205,8 @@
"app_open_anyway_note": "È pensata per lo schermo grande di un computer: su telefono e tablet è tutto piccolo e per l'analisi scarica il motore ({size}).",
"app_nojs": "ChessPenguin richiede JavaScript.",
"app_loading": "Caricamento di ChessPenguin…",
"app_failed": "ChessPenguin non si è avviato in questo browser. Aggiorna il browser o apri la pagina in Chrome, Edge, Firefox o Safari."
"app_failed": "ChessPenguin non si è avviato in questo browser. Aggiorna il browser o apri la pagina in Chrome, Edge, Firefox o Safari.",
"release_220_title": "Novità della versione 2.2.0",
"release_220_training": "Allenamento delle aperture sul computer (versione α): importa repertori PGN, esercitati con il Bianco o il Nero con la ripetizione dilazionata, riprendi le sessioni e segui i progressi. Le posizioni comuni ai repertori vengono contate una sola volta.",
"release_220_android": "Su Android, all’avvio o quando torni nell’app, puoi aprire il PGN dagli appunti. L’importazione inizia solo dopo la conferma: una o più partite vengono salvate come copia locale e la prima si apre sulla scacchiera."
}

View file

@ -205,5 +205,8 @@
"app_open_anyway_note": "Ол компьютердің үлкен экранына арналған: телефон мен планшетте бәрі ұсақ, ал талдау үшін қозғалтқышты ({size}) жүктеп алады.",
"app_nojs": "ChessPenguin үшін JavaScript керек.",
"app_loading": "ChessPenguin жүктелуде…",
"app_failed": "ChessPenguin бұл браузерде іске қосылмады. Браузерді жаңартыңыз немесе бетті Chrome, Edge, Firefox не Safari-де ашыңыз."
"app_failed": "ChessPenguin бұл браузерде іске қосылмады. Браузерді жаңартыңыз немесе бетті Chrome, Edge, Firefox не Safari-де ашыңыз.",
"release_220_title": "2.2.0 нұсқасындағы жаңалықтар",
"release_220_training": "Компьютерде дебют жаттығуы (α нұсқасы): PGN репертуарларын импорттаңыз, ақ немесе қара түспен аралық қайталау арқылы жаттығыңыз, сеанстарды жалғастырыңыз және нәтижелеріңізді бақылаңыз. Репертуарлардағы ортақ позициялар бір рет қана есептеледі.",
"release_220_android": "Android жүйесінде қолданбаны ашқанда немесе оған оралғанда алмасу буферіндегі PGN-ді ашу ұсынылады. Импорт тек растағаннан кейін басталады: бір не бірнеше партия жергілікті көшірме ретінде сақталып, бірінші партия тақтада ашылады."
}

View file

@ -205,5 +205,8 @@
"app_open_anyway_note": "Ela foi feita para a tela grande de um computador: no celular e no tablet tudo fica pequeno, e para a análise ela baixa o motor ({size}).",
"app_nojs": "O ChessPenguin precisa de JavaScript.",
"app_loading": "Carregando o ChessPenguin…",
"app_failed": "O ChessPenguin não iniciou neste navegador. Atualize o navegador ou abra a página no Chrome, Edge, Firefox ou Safari."
"app_failed": "O ChessPenguin não iniciou neste navegador. Atualize o navegador ou abra a página no Chrome, Edge, Firefox ou Safari.",
"release_220_title": "Novidades da versão 2.2.0",
"release_220_training": "Treino de aberturas no computador (versão α): importe repertórios PGN, pratique com brancas ou pretas usando repetição espaçada, retome sessões e acompanhe seu progresso. Posições compartilhadas entre repertórios são contadas uma única vez.",
"release_220_android": "No Android, ao abrir o app ou voltar a ele, você pode abrir o PGN da área de transferência. A importação só começa após a confirmação: uma ou várias partidas são salvas como cópia local, e a primeira se abre no tabuleiro."
}

View file

@ -205,5 +205,8 @@
"app_open_anyway_note": "Она сделана для большого экрана компьютера: на телефоне и планшете всё мелко, а для анализа она скачивает движок ({size}).",
"app_nojs": "Для ChessPenguin нужен JavaScript.",
"app_loading": "ChessPenguin загружается…",
"app_failed": "ChessPenguin не запустился в этом браузере. Обновите браузер или откройте страницу в Chrome, Edge, Firefox или Safari."
"app_failed": "ChessPenguin не запустился в этом браузере. Обновите браузер или откройте страницу в Chrome, Edge, Firefox или Safari.",
"release_220_title": "Новое в 2.2.0",
"release_220_training": "Тренировка дебюта на компьютере (α версия): импортируйте репертуары PGN, учите ходы за белых или чёрных с интервальным повторением, продолжайте сохранённые сессии и следите за прогрессом. Общие позиции учитываются один раз для всех репертуаров.",
"release_220_android": "На Android при запуске или возвращении в приложение можно открыть PGN из буфера обмена. Импорт начинается только после подтверждения: одна или несколько партий сохраняются локальной копией, а первая партия открывается на доске."
}

View file

@ -205,5 +205,8 @@
"app_open_anyway_note": "U kompyuterning katta ekrani uchun qilingan: telefon va planshetda hammasi mayda, tahlil uchun esa dvijokni ({size}) yuklab oladi.",
"app_nojs": "ChessPenguin uchun JavaScript kerak.",
"app_loading": "ChessPenguin yuklanmoqda…",
"app_failed": "ChessPenguin bu brauzerda ishga tushmadi. Brauzerni yangilang yoki sahifani Chrome, Edge, Firefox yoki Safari’da oching."
"app_failed": "ChessPenguin bu brauzerda ishga tushmadi. Brauzerni yangilang yoki sahifani Chrome, Edge, Firefox yoki Safari’da oching.",
"release_220_title": "2.2.0 versiyasidagi yangiliklar",
"release_220_training": "Kompyuterda debyut mashqi (α versiya): PGN repertuarlarini import qiling, oq yoki qora donalarda oraliqli takrorlash bilan mashq qiling, seanslarni davom ettiring va natijalaringizni kuzating. Repertuarlardagi umumiy pozitsiyalar faqat bir marta hisoblanadi.",
"release_220_android": "Android’da ilovani ochganda yoki unga qaytganda almashish buferidagi PGN’ni ochish taklif qilinadi. Import faqat tasdiqlangandan keyin boshlanadi: bir yoki bir nechta partiya mahalliy nusxa sifatida saqlanadi va birinchi partiya taxtada ochiladi."
}

View file

@ -101,6 +101,15 @@
</figure>
</section>
<section class="wrap block" id="release-220">
<h2>{{t:release_220_title}}</h2>
<ul class="dots">
<li>{{t:release_220_training}}</li>
<li>{{t:release_220_android}}</li>
</ul>
<p><a href="https://github.com/vrubelroman/chessPenguin/releases/tag/v2.2.0" rel="noopener">{{t:release_notes}} ↗</a></p>
</section>
<section class="wrap block" id="screenshots">
<h2>{{t:gallery_title}}</h2>
<div id="phone-shots" hidden>