feat: add cat identity rename flow
This commit is contained in:
1 parent
a15c22b4a2
commit
546fa37fce
10 files changed
+203
-14
No files matched your search
@@ -114,3 +114,7 @@ Inspection results persist the base score for the number of inspections and each
|
||||
# 2026-10-07: entered report state
|
||||
|
||||
`app/belki/history.py` persists an administrative `entered` boolean with an idempotent SQLite/PostgreSQL schema migration. `/api/admin/calculations/{id}/entered` is session-protected and updates one report. `web/admin.html` defaults report history to the calendar current month, prepends an accessible checkbox/checkmark column, and dims rows after entry; sorting remains unchanged.
|
||||
|
||||
# 2026-10-13: persistent cat-name changes
|
||||
|
||||
`IdentityDirectory.rename_existing()` is the only write path for the user-facing rename feature. It requires an existing character ID, updates `identities` and denormalized `profiles` names in PostgreSQL/SQLite, removes the stale old-name index entry, and refreshes cached profiles. The VK dialog starts from the `Изменить имя кота` menu button and asks for ID then a new name. The web `/belki` `Имя кота` tab looks up the current name and submits `/api/rename-identity`; `/api/resolve-identity` remains stateless for report form completion.
|
||||
Reference in new issue
Block a user