From 623cf5ad3a2af47f121313e1e53b1cbbf1b4c585 Mon Sep 17 00:00:00 2001 From: Nyan404 Date: Sat, 3 Oct 2026 01:07:48 +0300 Subject: [PATCH] feat: add autumn Belki web theme --- MEMORY.md | 1 + structure_and_data.md | 1 + web/admin.html | 15 +++++++++++++-- web/calculator.html | 23 +++++++++++++++++++---- 4 files changed, 34 insertions(+), 6 deletions(-) diff --git a/MEMORY.md b/MEMORY.md index 3d5eae6..a0f9414 100644 --- a/MEMORY.md +++ b/MEMORY.md @@ -58,6 +58,7 @@ - 2026-08-25: authenticated admin refresh WebSockets use a separate pool of eight slots so they cannot consume the bounded general HTTP worker pool. History sorting normalizes old string IDs with current numeric IDs. - 2026-09-01: admin XLSX downloads are session/password-protected routes. Keep report category/cat/kitten and application status plus period/date-range query parameters identical between the API list and export endpoint so the file matches the visible selection. - 2026-09-01: all web-facing Belki dates are UTC+3. Never change persisted UTC moments to implement this; convert at the UI/XLSX boundary and interpret calendar inputs in UTC+3. +- 2026-10-03: `web/calculator.html` and `web/admin.html` use a shared autumn theme with warm paper tokens, amber/brown accents, and decorative CSS leaves. The leaves are pointer-transparent, behind content, and reduced to faint static accents for `prefers-reduced-motion`; visual changes require no new assets or dependencies. - 2026-09-01: report attachments are a web inspection-only requirement. Enforce it in `validate_web_report_attachments`, not only by hiding the field, and retain optional dated output for legacy bot training sessions. # 2026-08-16 — несколько котят в прокачке diff --git a/structure_and_data.md b/structure_and_data.md index 45ea612..47f5d0c 100644 --- a/structure_and_data.md +++ b/structure_and_data.md @@ -46,6 +46,7 @@ - Typed flows are: feather donation (amount/color/source rows), kitten (activity screenshot), flying squirrel (past practice and a review link when applicable), and curator (LU screenshot with fraction). VK uses `/заявка`, `/перо`, `/бельчонок`, `/летяга`, and `/куратор`; its context keyboard drives every selectable application branch, while users type only free-form values. The bot polls accepted VK applications every 15 seconds and notifies the original peer; web applications have no inferred VK recipient. - Google Sheets export is pre-wired but disabled by `BELKI_GOOGLE_EXPORT_ENABLED=0`. `ApplicationStore` records `application_created` and `application_accepted` snapshots in the PostgreSQL `belki_application_export_events` or SQLite `application_export_events` outbox. `GoogleSheetsExportService` sends FIFO JSON events only to an explicitly configured Google Apps Script Web App URL, retains failed events for retry, and is polled by the bot every 15 seconds when enabled. - The admin page uses a restrained light editorial table layout with a separate password gate, category tabs (all, осмотры, ЛУ, ЗУ, ПУ/уроки), responsive filters, client-side sorting across every visible column, cat/kitten selectors, sticky headings, and a keyboard-navigable photo gallery; behavior remains backed by the existing history API. +- 2026-10-03: public calculator and `/admin` share an autumn visual layer: warm paper/ground tokens, amber-brown accents, subtle radial atmosphere, and seven CSS leaves with staggered fall motion. Leaves are decorative (`aria-hidden`, pointer-events disabled), stay behind content, and become static/faint under `prefers-reduced-motion`; no image or runtime dependency was added. - VK `messages.send` responses include a serialized context-aware keyboard; button payloads are translated back into the same dialog commands, while text commands remain supported. - Production k3s deployment (2026-08-16): namespace `belki` runs the Belki web calculator, VK bot, PostgreSQL 16, and the migrated cwshed Nginx gateway. The gateway keeps MetalLB IP `10.12.0.204`, serves the legacy CatWar site, and routes `/belki`, `/admin`, and `/api/*` to Belki web on `10.12.0.212`. Belki images are `reg.nyan404.ru/cwshed-clone/belki` and `reg.nyan404.ru/cwshed`; PostgreSQL is mirrored as `reg.nyan404.ru/library/postgres:16-alpine-amd64` because cluster nodes cannot pull Docker Hub directly. Registry pull credentials and runtime secrets are created out-of-band in the `belki` namespace. - The previously inspected `stage-zone-runner` at `10.3.1.236` is not the runner used by the current pipeline. Runner `#2` (`Ryzen-builder`) at `10.3.1.168` is a privileged Docker executor and supports the DinD service used by `.gitlab-ci.yml`. diff --git a/web/admin.html b/web/admin.html index 9dfbb55..d5cfefe 100644 --- a/web/admin.html +++ b/web/admin.html @@ -6,9 +6,19 @@ Беличья нора — админка +

Админская панель

diff --git a/web/calculator.html b/web/calculator.html index 6ccce81..e311e0a 100644 --- a/web/calculator.html +++ b/web/calculator.html @@ -6,9 +6,22 @@ Генератор отчётов и калькулятор +

Генератор отчётов и калькулятор

Отчёты и заявки — в одном месте.