- Drop `expected_discount_pct`, add `price_uplift DECIMAL(8,4) DEFAULT 1.3` to `qt_competitors` (migration 040); formula: effective_price = price / uplift - Extend `LoadLotMetrics` to return per-PN qty map (`pnQtysByLot`) - Add virtual fields `CompetitorNames`, `PriceSpreadPct`, `PartnumberQtys` to `PricelistItem`; populate via `enrichWarehouseItems` / `enrichCompetitorItems` - Competitor quotes filtered to qty > 0 before lot resolution - New "stock layout" on pricelist detail page for warehouse/competitor: Partnumbers column (PN + qty, only qty>0), Поставщик column, no Настройки/Доступно - Spread badge ±N% shown next to price for competitor rows - Bible updated: pricelist.md, history.md Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
UI Design Code
Submodule-first design-code kit for Go web applications and AI coding agents.
This repository is meant to be added to host projects as a git submodule and used to copy/sync canonical documentation, AI instruction templates, scaffolds, and UI pattern building blocks.
Intended Usage
- Add as submodule (recommended path:
tools/ui-design-code) - Use
tools/designsyncto list/plan/apply bundles into the host repo - Review changes and commit in the host repo
Public Surface (stable)
kit/exports/tools/designsync/README.mdVERSIONING.mdCHANGELOG.md
demo/ is a runnable reference app and may change faster.
Quick Start (this repo)
go test ./...
go build ./tools/designsync
cd demo
go test ./...
go run ./cmd/demo-server
Documentation
- Architecture source of truth:
bible/README.md - AI instructions:
CLAUDE.md,AGENTS.md