Mikhail Chusavitin e1f34ae81b fix: compressArticle used hard-coded indices, PSU rendered as NIC when GPU absent
compressArticle assumed a fixed segment layout [model,cpu,mem,gpu,disk,net,psu,support].
Build() skips empty segments, so without GPU the PSU slot shifted to index 5. Step 2 of
compression called compressNetSegment on the PSU value ("2x1kW") which returned "2xNIC".

Replace positional indexing with namedSeg{group,value} tagged segments; compressArticle
now looks up each segment by group name via findSegGroup(), regardless of array length.

Regression test TestBuild_CompressArticle_NoGPU_PSUNotNIC reproduces the exact config
from OPS-2445 (NF5280M6 + 2xPSU, no GPU) that triggered the bug.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-19 12:36:55 +03:00
2026-03-24 17:20:26 +03:00
2026-04-28 16:56:45 +03:00
2026-03-01 16:57:50 +03:00
2026-03-01 16:57:50 +03:00
2026-01-22 17:29:47 +03:00
2026-02-18 07:02:17 +03:00

QuoteForge

Local-first desktop web app for server configuration, quotation, and project work.

Runtime model:

  • user work is stored in local SQLite;
  • MariaDB is used only for setup checks and background sync;
  • HTTP server binds to loopback only.

What the app does

  • configuration editor with price refresh from synced pricelists;
  • projects with variants and ordered configurations;
  • vendor BOM import and PN -> LOT resolution;
  • revision history with rollback;
  • rotating local backups.

Run

go run ./cmd/qfs

Useful commands:

go run ./cmd/qfs -migrate
go test ./...
go vet ./...
make build-release

On first run the app creates a minimal config.yaml, starts on http://127.0.0.1:8080, and opens /setup if DB credentials were not saved yet.

Documentation

bible-local/ is the source of truth for QuoteForge-specific architecture. If code changes behavior, update the matching file there in the same commit.

Repository map

cmd/                  entry points and migration tools
internal/             application code
web/                  templates and static assets
bible/                shared engineering rules
bible-local/          project architecture and contracts
releases/             packaged release artifacts and release notes
config.example.yaml   runtime config reference
Description
No description provided
Readme 226 MiB
Languages
Go 64.8%
HTML 34.4%
Shell 0.5%
Makefile 0.3%