caterium-app/public/core
pavlov346346-source 28fd97bcf3 fix: replace gourmet-hero's fake category tabs with real ones
Same issue as the cards just removed from cream-elegance: a hardcoded
['РЫБНЫЕ','МЯСНЫЕ','ВЕГЕТАРИАНСКИЕ','САЛАТЫ','ДЕСЕРТЫ'] tab row that
had nothing to do with what was actually in the order (an order with
zero vegetarian items still showed a "ВЕГЕТАРИАНСКИЕ" tab as if
active/relevant). Now derives the chip row from the distinct
categoryName values actually present on the order's items, and
renders nothing if that data isn't available.

Verified this pass end-to-end rather than just by inspection:
- Real "Скачать PDF" pipeline (sunClientOfferDebugPdf) produces a
  valid application/pdf blob with a correct %PDF-1.4 header, not just
  canvases.
- Confirmed Canvas text genuinely falls back through the font stack
  (measured identical metrics for an unregistered font vs. Georgia
  directly, and document.fonts.load() resolves instantly for a
  never-registered family) -- so a blocked/unreachable Google Fonts
  degrades silently to Georgia/Arial instead of hanging or erroring,
  which matters given this app already had to work around Russia
  connectivity issues elsewhere.
- Re-rendered all 6 templates against deliberately adversarial data
  (150+ word event name, 44-char client name, 350 guests, a
  million-ruble price, an item with no photo/price/category, a long
  promo code) -- no crashes, no overlap, graceful ellipsis truncation
  throughout.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-16 10:57:29 +03:00
..
account-center-v1780.js fix: expose manager account and password controls 2026-09-12 10:10:25 +03:00
auth-security-v1774.js fix: fall back to direct Supabase auth on proxy 500 2026-09-14 17:26:32 +03:00
classic-offer-pdf-v1767.js Caterium v17.6.7 — restore classic client proposal PDFs 2026-09-08 07:29:40 +03:00
data-layer-v1773.js perf: stop recomputing the full client list per client on bulk push 2026-09-12 14:08:57 +03:00
developer-console-v1768.js Caterium v17.6.8 — Developer Console UX and error fixes 2026-09-08 07:58:54 +03:00
hotfix-v1763.js Caterium v17.6.5 stability hardening 2026-09-08 05:55:48 +03:00
login-signature-v1776.js fix: use approved Caterium logo on cream login 2026-09-12 05:57:35 +03:00
offer-workspace-v1769.js Caterium v17.6.9 — offer PDF workspace and gallery uploads 2026-09-08 08:21:11 +03:00
ops-ux-v1762.js fix: stop the menu-editor button-patch interval once it succeeds 2026-09-12 14:09:06 +03:00
order-enhancements-v1775.js feat: load Caterium Signature login screen 2026-09-11 19:19:12 +03:00
pdf-engine.js Caterium v17.6.0 - GitHub Cloudflare autodeploy 2026-09-07 15:29:20 +03:00
performance.js fix: match the early login boot placeholder to the cream login redesign 2026-09-12 14:40:33 +03:00
server-automation-v1770.js Caterium v17.7.0 — architecture foundation 2026-09-08 13:24:34 +03:00
signature-offer-pdf-v18.js fix: replace gourmet-hero's fake category tabs with real ones 2026-09-16 10:57:29 +03:00
stability-v1760.css Caterium v17.6.0 - GitHub Cloudflare autodeploy 2026-09-07 15:29:20 +03:00
sun-safe.js feat: load Caterium account center 2026-09-12 08:48:57 +03:00
trial-promo-developer-v181.js feat: add trial promo management to developer console 2026-09-13 18:44:18 +03:00
ux-fixes-v1764.js feat: add 6 new client-offer PDF templates, archive the old 13 2026-09-15 18:27:23 +03:00