feat: show VK photos in calculation admin
This commit is contained in:
1 parent
6bbd8d4b0b
commit
20b434dbcd
6 files changed
+84
-5
No files matched your search
@@ -25,6 +25,7 @@
|
||||
- Character name/ID pairs are persisted automatically in the SQLite file from `BELKI_IDENTITIES_DB` (default `data/belki.sqlite3`); the database is local runtime data and ignored by Git.
|
||||
- The VK dialog onboards each author once, stores their profile by `from_id`, greets them by name, and keeps the profile in the same SQLite database across bot restarts.
|
||||
- Every confirmed calculation is persisted by `app/belki/history.py` to PostgreSQL from `BELKI_DATABASE_URL`; SQLite is only a local fallback. Records include actor, source, mode, input, result, rendered message, and timestamp.
|
||||
- VK photo attachments received during an active dialog are normalized into `input.attachments` and persisted with the calculation; `/admin` renders their thumbnails. The current phase keeps VK URLs/attachment references; image-host mirroring and Google Sheets export remain deferred.
|
||||
- `/admin` and `/api/admin/calculations` expose the calculation history for review. The API requires `X-Admin-Password` matching `BELKI_ADMIN_PASSWORD`; the web page supports sorting by kitten ID or name and does not persist the password in browser storage.
|
||||
- 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.
|
||||
- No k3s deployment or cluster state change has been made. The SSH tunnel used for read-only service inventory was stopped.
|
||||
|
||||
Reference in new issue
Block a user