caterium-app/docs/COMPANY-BRANDING-20260917.md

14 lines
1.7 KiB
Markdown

# Company document branding and one account-specific sidebar
The sidebar uses Caterium and its mark by default. A single server-side assignment can enable «Солнце Кейтеринг» for one confirmed auth user. This assignment is independent of workspace ownership and platform administration. Other employees in that workspace continue to see Caterium.
`core/company-branding.js` owns company name/logo handling. Settings → Documents → «Логотип и название компании» accepts PNG, JPEG and WebP, preserves transparency, and resizes to a maximum 1000 pixels. Company settings use the existing workspace sync and private media storage. Clearing a logo produces neutral documents; there is no fallback to the Sun logo. An upload interrupted by an account/workspace change is rejected.
Print forms, receipts, preparations, route sheets, catalogs and all proposal PDF templates use this company identity. PDF snapshots preserve the selected identity during asynchronous rendering. Existing selectable color themes remain available.
The migration `20260917193000_account_sidebar_brand.sql` was applied to `usfjwhztqoopzzfmfbis`. The account assignment and ordinary owner workspace were provisioned separately, without credentials in the repository and without platform admin rights. Email verification remains required.
Validation: `npm run check:deploy` and Playwright (62 passed, 2 existing skipped tests), including all 18 proposal covers, 21 complete proposal designs, catalog/route/receipt/preparation output, HTML escaping, transparent logos, workspace isolation, sidebar reset/race handling, SQL assignment constraints and RLS, and the previous first-paint theme regression tests.
PWA cache: `v84-20260917-company-branding`.