[206] Release 1.0: Referenz-Ablauf WBW/Vorprojekt als e2e-Spec und Mac-Checkliste
- e2e/release10.spec.ts: ein durchgehender Test in 13 Schritten (leeres Projekt → Kataster-DXF LV95 → Baurecht → Wände/Decke/Dach → Raum + Raumprogramm → SIA 416/Kennzahlen CSV/PDF → 1:200 → Schnitt B → Axonometrie/Schatten → Präsentationsplan A1 → Publikation PDF → DXF/IFC → Speichern); fehlende Schritte als test.fixme mit TODO-ID ([207] [208] [209] [211] [216]–[220]). - doc/RELEASE-1.0.md: Abnahme-Checkliste je Schritt mit Bedienung, Erwartung und Status. - Behoben: GV der Kennzahlenleiste war ohne freie Körper 0 m³ (jetzt wie die Flächentabelle GF × Geschosshöhe, kennzahlen.rs); der Befehl Decke setzte nur den Aussenwand-Aufbau (wallTypeId), jetzt den ersten Deckentyp des Projekts (cmd_create.rs). Tests: Rust kennzahlen/cmd_create, vitest. - Neu in TODO: [216] Standard-Schnitt/-Ansicht am Nullpunkt im LV95-Projekt (Einpassen 1:10 Mio.), [217] Bauteile aus Volumen, [218] 3D-Bild-Export, [219] Präsentationsplan für WBW, [220] Leiste vs. Flächentabelle (GF). Geprüft: Spec im Browser (Chromium headless, Port 5189), tsc, vitest (analysis, commands, export, plan golden, i18n, core, cli), cargo test dossier-core. Nicht geprüft: Tauri-App/Mac, 3D-Bild (headless kein WebGPU), swisstopo-Import (kein Netz).
This commit is contained in:
10 files changed
+510
-20
No files matched your search
@@ -448,17 +448,19 @@ fn ceiling_ops(p: &Project, v: &Value, ctx: &Ctx, ids: &mut IdGen) -> Vec<Op> {
|
||||
if abs_area(&outline) < 1e-4 {
|
||||
return Vec::new();
|
||||
}
|
||||
add_op(
|
||||
"ceilings",
|
||||
vec![obj(vec![
|
||||
("id", s(&ids.next("C"))),
|
||||
("type", s("ceiling")),
|
||||
("floorId", s(ctx.level)),
|
||||
("categoryCode", category_or(p, "30", ctx)),
|
||||
("outline", pvs(&outline)),
|
||||
("wallTypeId", active_wall_type_id(p, ctx)),
|
||||
])],
|
||||
)
|
||||
let mut fields = vec![
|
||||
("id", s(&ids.next("C"))),
|
||||
("type", s("ceiling")),
|
||||
("floorId", s(ctx.level)),
|
||||
("categoryCode", category_or(p, "30", ctx)),
|
||||
("outline", pvs(&outline)),
|
||||
("wallTypeId", active_wall_type_id(p, ctx)),
|
||||
];
|
||||
// Eigener Deckentyp (erster des Projekts); `wallTypeId` bleibt als Pflichtfeld/Rückfall ([206]).
|
||||
if let Some(ct) = p.ceiling_types.as_deref().and_then(|l| l.first()) {
|
||||
fields.push(("ceilingTypeId", s(&ct.id)));
|
||||
}
|
||||
add_op("ceilings", vec![obj(fields)])
|
||||
}
|
||||
|
||||
/// Wände des Geschosses als `[n, (ax, ay, bx, by, dicke)…]` für die Raumerkennung.
|
||||
@@ -1364,6 +1366,24 @@ mod tests {
|
||||
assert!(items(&o, 0)[0].get("bulge").is_none());
|
||||
}
|
||||
|
||||
/// [206] Decke: eigener Deckentyp (erster aus `ceilingTypes`) statt des Wand-Aufbaus — vorher bekam eine neue
|
||||
/// Decke nur das LEGACY-`wallTypeId` des aktiven Wandtyps und zeigte im Schnitt die Aussenwand-Schichten.
|
||||
#[test]
|
||||
fn decke_mit_deckentyp() {
|
||||
let wt = json!([{"id": "WT1", "name": "Aussenwand", "layers": [{"componentId": "c", "thickness": 0.3}]}]);
|
||||
let ct = json!([{"id": "CT1", "name": "Stahlbetondecke", "layers": [{"componentId": "c", "thickness": 0.25}]}]);
|
||||
let pts = json!({"cmd": "ceiling", "pts": [[0, 0], [4, 0], [4, 3], [0, 3]]});
|
||||
let r = root(json!({"wallTypes": wt, "ceilingTypes": ct}));
|
||||
let o = ops(&r, &crate::model::lenient::typed_for_test(&r), &req(pts.clone())).unwrap();
|
||||
let c = &items(&o, 0)[0];
|
||||
assert_eq!(c["ceilingTypeId"], "CT1");
|
||||
assert_eq!(c["wallTypeId"], "WT1");
|
||||
// Ohne Deckentypen bleibt es beim Wand-Aufbau (Pflichtfeld `wallTypeId`).
|
||||
let r = root(json!({"wallTypes": wt}));
|
||||
let o = ops(&r, &crate::model::lenient::typed_for_test(&r), &req(pts)).unwrap();
|
||||
assert!(items(&o, 0)[0].get("ceilingTypeId").is_none());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn waende_je_segment_mit_typ_und_hoehe() {
|
||||
let r = root(json!({"wallTypes": [{"id": "WT1", "name": "Beton", "layers": [{"componentId": "c", "thickness": 0.2}]}]}));
|
||||
|
||||
Reference in new issue
Block a user