Polish Russian website and VK bot copy for CatWar players

This commit is contained in:
nyan404 committed 2026-10-18 19:09:48 +03:00
1 parent 3ebab303a5
commit 955f47ccd6
11 files changed
+105 -100

No files matched your search

+3
View File
@@ -137,7 +137,10 @@
- 2026-10-10: VK input migrated from Long Poll to Callback API. `app/belki/vk_bot.py` now serves `/api/vk/callback` on port 8081, validates the callback secret and group ID, handles `message_new`/`message_event`, and keeps scheduler/notifier threads in the bot process. `vk_callback_events` deduplicates callback event IDs for seven days and releases failed claims for VK retry. `deploy/k8s/*` adds the `belki-bot` ClusterIP Service and callback probes; `nginx.conf` routes only the exact callback path to the bot while other `/api/` requests remain on `belki-web`. Public registration and live VK confirmation are still a deployment-stage action.
- 2026-10-13: added persistent cat-name changes. `IdentityDirectory.rename_existing()` updates the existing `identities` row, all `profiles` rows for that character, and both in-memory indexes; unknown IDs are rejected. VK exposes the separate `Изменить имя кота` menu flow, while `/belki` adds the `Имя кота` tab backed by `/api/rename-identity` after a current-name lookup through `/api/resolve-identity`.
- 2026-10-18: sent-report history reuses the calculations table. VK `Мои отчёты` filters by callback `actor_id` and `source='vk'`; `/belki` adds `Отчёты по ID кота`, backed by `GET /api/reports?character_id=...`, which searches participant IDs across coaching, training, and inspection rows from all sources. The public response returns the latest 100 reports and excludes `actor_id`; it exposes only local `/api/images/<id>` proxy paths for stored screenshots.
- 2026-10-18: edited Russian copy in `web/calculator.html`, `web/applications.html`, `web/admin.html`, `web/index.html`, and the VK/identity API responses. Game rules, commands, calculation logic, stored data, and report templates are unchanged. Humanizer-ru scored the selected before/after editing fragments 92/100 and 97/100; the remaining «напоминает о» hit is a false positive inside «напоминание об еженедельном отчёте». The schedule examples 09:00 and 18:30 already existed in the adjacent input placeholder. Validation ran locally because no remote test-zone MCP was exposed: 111 focused unittest cases, Python AST/syntax comparison, JavaScript syntax checks, and browser inspection at mobile/desktop widths. Temporary scanner dependencies and browser artifacts were kept outside the repository; no deployment or push.
# Обновление 2026-08-16: несколько котят
Калькулятор прокачки принимает `extra_kittens` из веб-формы, API и VK-команды. Общая выплата сопровождающему не суммирует полную ставку на каждого котёнка: первый подопечный использует базовый коэффициент, второй — множитель 1,5, каждый следующий — дополнительный множитель 1,15. Сайт добавляет строки дополнительных котят динамически; VK поддерживает сегмент `доп. котята: Имя [ID], Имя2 [ID]`.
- 2026-09-06: добавлен `app/belki/vk_scheduler.py` — реестр VK-бесед, шаблоны, ежедневные/недельные расписания и уникальные delivery-attempts; scheduler запускается daemon-потоком `belki-bot`, админские API доступны под `/api/admin/vk/*`.
- Browser validation used a temporary static server on 127.0.0.1:8765; the admin page used empty mocked API responses to inspect copy without production credentials or writes. This validates layout and navigation, not a live VK delivery or production session.