- Replace Tailwind CDN (~350KB) with purged local CSS (~22KB)
- Replace htmx unpkg CDN with local static file
- Add Gzip middleware (standard library, sync.Pool) for all responses
- Add Cache-Control: public, max-age=3600 for /static/* assets
- Reduce status polling interval from 5s to 30s
- Add scripts/build-css.sh for CSS regeneration after template changes
- Document in bible-local/operations.md and history.md
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add GetLatestQuotesAllCompetitors() repo method: latest quote per
(competitor_id, partnumber) across all active competitors
- Add RebuildPricelist() service method: loads all quotes, applies each
competitor's discount, aggregates with weighted_median per lot,
creates single combined competitor pricelist
- Add POST /api/competitors/pricelist handler + route
- JS: "Создать прайслист" on competitor tab calls new endpoint instead
of the generic one that required explicit items
This allows recreating the competitor pricelist after new lot mappings
are added, without requiring a new file upload.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>