Files
QuoteForge/bible-local
Mikhail ChusavitinandClaude Sonnet 5 ee92c3b392 feat: price_quality в конфигураторе; фикс пустого lot_description в экспорте цен
price_quality теперь синхронизируется не только в прайслист, но и в
LocalComponent/services.ComponentView (/api/components) — виден в
выпадающем списке поиска (цветная точка), в таблице конфигуратора
(левая колонка-пиктограмма) и на вкладке «Ценообразование» (подсветка
строки). Цветовая шкала вынесена в один модуль web/static/price-quality.js
(подключён в base.html), чтобы не дублировать расчёт цвета по шаблонам.
Шкала — градиент 0 (красный) → 5 (жёлтый) → 9 (зелёный).

Экспорт цен (internal/services/export.go): resolveLotDescriptions был
заглушкой, всегда возвращавшей пустую карту — строки BOM/не-BOM в
экспорте всегда оставались без описания LOT. Заменён на реальный
запрос к local_pricelist_items текущего выбранного прайслиста
(LocalDB.GetLocalDescriptionsForLots), по аналогии с уже существующим
GetLocalLotCategoriesByServerPricelistID.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-22 19:01:47 +03:00
..

QuoteForge Bible

Project-specific architecture and operational contracts.

Files

File Scope
01-overview.md Product scope, runtime model, repository map
02-architecture.md Local-first rules, sync, pricing, versioning
03-database.md SQLite and MariaDB data model, permissions, migrations
04-api.md HTTP routes and API contract
05-config.md Runtime config, paths, env vars, startup behavior
06-backup.md Backup contract and restore workflow
07-dev.md Development commands and guardrails
09-vendor-spec.md Vendor BOM and CFXML import contract
10-agent-api-guide.md End-to-end API guide for agents pricing servers from a TZ
11-lot-suggestions.md lot_suggestion column in qt_vendor_partnumber_seen — write/read contract for manual UI mappings

Rules

  • bible-local/ is the source of truth for QuoteForge-specific behavior.
  • Keep these files in English.
  • Update the matching file in the same commit as any architectural change.
  • Remove stale documentation instead of preserving history in place.

Quick reference

  • Local DB path: see 05-config.md
  • Runtime bind: loopback only
  • Local backups: see 06-backup.md
  • Release notes: releases/<version>/RELEASE_NOTES.md