caterium-app/docs/import-cleanup-20260918.md

12 lines
1.6 KiB
Markdown

Completed Telegram import cleanup
The working menu, new-order selection, search, category counts and catalog PDFs exclude items with `hidden: true`. Historical order lookup still resolves these items, preserving original names, quantities, prices, payments and proposal snapshots. Adding a retired item through a stale catalog button is ignored.
The one-time Telegram archive viewer is removed. Its script remains a small compatibility cleanup for cached markup; it does not expose a stored archive again after synchronization or account changes.
The separate, owner-authorized production cleanup is limited to the Sun workspace and to catalog entries matching all four markers: category 0, section `Импорт из Telegram`, source `telegram-20260917`, and the `tg-item-` ID prefix. These temporary catalog references are retired rather than physically deleted because existing orders use their IDs. The global archive payload is removed; individual orders and their source details are preserved.
The operation makes a server backup, uses optimistic revision locking and verifies unchanged orders, client records, unrelated storage and regular catalog entries. Private payload backups and customer information are kept outside this repository.
Validation: desktop and mobile tests cover retired catalog visibility, search, printed and generated catalogs, historical order totals, paid state, contact details, proposal contents, reload persistence, archive retirement, company branding and banquet behavior (26 tests). Syntax, security, release checks and database smoke checks pass.