[61] Raumprogramm: Soll/Ist-Vergleich mit Ampel, Summen und Export

Rechnung in Rust (core/room_program.rs, Abfrage programCompare): Zuordnung der
gezeichneten Räume über den Namen (genaue Treffer vor Präfix, ohne Gross-/
Kleinschreibung und Nummern), Soll = Anzahl x Fläche, Ist, Differenz absolut
und in %, Summen je Gruppe, je Flächenart und total, Ampel mit einstellbarer
Toleranz (Projekt, Standard +-5 %). checkRoomProgram ist jetzt eine Fassade
darüber (Standard-Toleranz damit 5 statt 10 %; Rust-Fassung ersetzt die TS-
Rechnung). Tabelle im Raumprogramm-Bereich, Export CSV/PDF aus demselben
Berichtsmodell wie die Flächentabelle (export/programReport.ts).

Die Anordnung der Soll-Räume (programLayout, 4:3, Shelf-Packing) liegt im
selben Rust-Modul und wird im nächsten Commit angebunden.

Geprüft: cargo test core (8 neue Tests), vitest, Browser-Build mit Playwright.
Nicht in der Tauri-App getestet.

Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67
This commit is contained in:
Claude committed 2026-10-28 21:24:07 +00:00
1 parent f55f2c4fdb
commit b2dcc06300
15 files changed
+1230 -36

No files matched your search

+50
View File
@@ -8424,6 +8424,11 @@ body {
}
/* Punktwolken-Import ([27]): Bericht im Dialog kompakt wie die übrigen Hinweise. */
.pc-report {
font-size: 12px;
line-height: 1.5;
color: var(--ink-2);
}
.bcf-vps {
display: flex;
@@ -8559,6 +8564,51 @@ body {
flex-wrap: wrap;
gap: 6px;
}
.pc-section {
display: flex;
flex-direction: column;
gap: 6px;
margin-top: 6px;
}
.pc-table {
font-size: 10px;
}
.pc-table td,
.pc-table th {
white-space: nowrap;
padding: 2px 3px;
}
.pc-table td:first-child {
max-width: 120px;
overflow: hidden;
text-overflow: ellipsis;
}
.pc-table tr.pc-sub td {
font-weight: 600;
font-size: 10px;
color: var(--ink-2);
padding-top: 6px;
}
.pc-dot {
display: inline-block;
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--ink-2);
vertical-align: middle;
}
.pc-dot.green {
background: var(--ok, #2f8f4e);
}
.pc-dot.yellow {
background: #e0a800;
}
.pc-dot.red {
background: var(--danger, #c0392b);
}
.pc-dot.grey {
background: var(--line, #999);
}
.rpi-dialog {
width: min(880px, 94vw);
}