caterium-app/docs/releases/2026-09-20-TRAINING-CATALOG.md
pavlov346346-source 716a79c58d
Optional per-profile training catalog with reversible example visibility (#35)
Add Settings > Учебный каталог, off by default and available on ordinary writable profiles. Load ready example boxes, photos, TTKs and linked sample inventory additively; preserve own data, saved orders and edited examples when hiding or re-enabling. Respect company/profile scope, read-only permissions, failed downloads and tenant changes. Preserve the opened recipe guide across real catalog refreshes on iPhone. Integrated feature checks and full pull-request QA passed. Standard main QA and exact-asset production UI verification remain in place.
2026-09-20 12:18:40 +03:00

37 lines
2.1 KiB
Markdown

# Optional learning catalog
Settings → Обучение и знакомство → Учебный каталог.
Off by default, including previously automatically seeded demo records. Opting in
is not limited to a trial subscription or an empty company. Normal catalog edit
permissions, support read-only and subscription write restrictions still apply.
Visibility is saved per authenticated user inside the current workspace's
sunTrialDemoV1.trainingCatalog metadata. Other profiles and workspaces do not
inherit the selection. A cloud-synced profile uses the same preference on its
other devices. This is an optional catalog, not a separate isolated account.
Enabling loads the existing versioned example bundle: ten photographed boxes,
premium sets, eighteen banquet dishes, drinks, supplies, extras and delivery.
Composition, recipe/TTK, prices, sample suppliers and zero-balance inventory are
included. New sample inventory has distinct names to prevent matching a real
product with the same name during stock lookup. Historical seeded inventory is
not renamed and existing recipes are never overwritten.
Disabling changes only selection visibility; it does not delete records, undo
manual stock operations, remove orders, change saved prices or reset edits.
Catalog/menu/search/stock/supplier browse screens hide the sample records. Lookup
for existing orders, preparation and documents continues using the full data.
Re-enabling is additive and idempotent; user-created products and existing sample
edits, inventory balances and supplier details are preserved.
There is no automatic creation of orders or inventory movements. The existing
explicit trial-order button keeps autoCompletionDisabled. Stock actions still
require an explicit user command and existing permissions. No production database
migration, account mutation or other-project change is required for this release.
Regression coverage includes first opt-in on a populated paid profile, switching
off and back on, reload, old seeded records, names/recipes/stock preservation,
TTKs and trial order, per-profile/workspace scope, read-only/support rejection,
failed downloads and late responses after a tenant change.