Merge branch 'worktree-agent-aa28c2b67c2749bb1' into claude/practical-noether-1hb2s1

This commit is contained in:
Claude committed 2026-11-11 19:50:00 +00:00
commit e87e4a8ed3
23 files changed
+749 -33

No files matched your search

+6
View File
@@ -18,6 +18,12 @@ export interface ExcavationQuantity {
fill: number;
/** Hinterfüllung (m³). */
backfill: number;
/** Arbeitsraum: verlangte Breite (m, 0 = keiner), kleinster Abstand Umriss–Sohle, eingehalten? */
workingSpace: number;
workingSpaceMin: number;
workingSpaceOk: boolean;
/** Stellen mit fehlender Arbeitsraum-Breite (Modell-x/y). */
workingSpaceSpots: [number, number][];
}
export function excavationQuantities(project: Project): ExcavationQuantity[] {
+7
View File
@@ -2415,6 +2415,13 @@ export const de = {
"site.excavation.noTerrain": "Kein Gelände unter der Baugrube",
"site.excavation.workingSpace": "Arbeitsraum [m]",
"site.excavation.shoring": "Verbau (senkrecht), Kante",
"site.excavation.shoringKind": "Verbauart",
"site.excavation.shoringKind.sheetPile": "Spundwand (Stahl)",
"site.excavation.shoringKind.soldierPile": "Rühlwand (Träger + Holz)",
"site.excavation.shoringKind.borePile": "Bohrpfahlwand (Beton)",
"site.excavation.shoringThickness": "Wanddicke [m]",
"site.excavation.shoringEmbed": "Einbindetiefe unter Sohle [m]",
"site.excavation.workingSpaceWarn": "Arbeitsraum zu schmal: {min} m statt {need} m an {n} Stelle(n) (rotes Kreuz im Plan)",
"site.excavation.shoringHint": "Gewählte Kanten: senkrechte Wand (Spundwand) statt Böschung",
"site.earthDepth": "Erdreich-Band im Schnitt [m]",
"site.terrain.visible": "Gelände sichtbar",
+7
View File
@@ -2401,6 +2401,13 @@ export const en: Record<TranslationKey, string> = {
"site.excavation.bermHeight": "Berm every [m]",
"site.excavation.workingSpace": "Working space [m]",
"site.excavation.shoring": "Shoring (vertical), edge",
"site.excavation.shoringKind": "Shoring type",
"site.excavation.shoringKind.sheetPile": "Sheet piling (steel)",
"site.excavation.shoringKind.soldierPile": "Soldier pile wall (beams + timber)",
"site.excavation.shoringKind.borePile": "Bored pile wall (concrete)",
"site.excavation.shoringThickness": "Wall thickness [m]",
"site.excavation.shoringEmbed": "Embedment below base [m]",
"site.excavation.workingSpaceWarn": "Working space too narrow: {min} m instead of {need} m at {n} spot(s) (red cross in the plan)",
"site.excavation.shoringHint": "Selected edges: vertical wall (sheet piling) instead of a slope",
"site.earthDepth": "Earth band in section [m]",
"site.terrain.visible": "Terrain visible",
+1 -1
View File
@@ -822,7 +822,7 @@ export function buildComplexSampleProject(): Project {
type: "excavation", id: "baugrube", name: "Baugrube Haupthaus", categoryCode: "07",
// Umriss = Gebäude-Grundfläche UG (mit Erker), Arbeitsraum 0.8 m; Neigungen in Grad.
outline: rect(-HA, -HA, 17.2, 10 + HA), bottom: -3.35, slope: 60, fillSlope: 33.7,
edgeSlopes: [60, 50, 90, 60], edgeShoring: [false, false, true, false], workingSpace: 0.8,
edgeSlopes: [60, 50, 90, 60], edgeShoring: [false, false, true, false], shoringKind: "soldierPile", workingSpace: 0.8,
},
],
roomProgram: [
+9
View File
@@ -1279,6 +1279,15 @@ export type Excavation = {
* [68] Senkrechter Verbau (Spundwand) je Kante (wie `edgeSlopes`): keine Böschung, Wand steht senkrecht.
*/
edgeShoring?: Array<boolean>;
/**
* [68] Art des Verbaus auf den verbauten Kanten: `sheetPile` (Spundwand, Vorgabe), `soldierPile` (Rühlwand),
* `borePile` (Bohrpfahlwand). Bestimmt Vorgabe-Dicke und Schraffur im Schnitt und Grundriss.
*/
shoringKind?: string;
/** [68] Dicke der Verbauwand in m (nach aussen von der Sohlkante); fehlt = Vorgabe der Art. */
shoringThickness?: number;
/** [68] Einbindetiefe der Verbauwand unter die Sohle in m; fehlt = 1 m. */
shoringEmbed?: number;
};
/** Ein extrudierter Körper: geschlossenes Profil (Modell-Meter) + Höhe. */
+23
View File
@@ -50,6 +50,11 @@ function ExcavationQty({ q }: { q: ExcavationQuantity | undefined }) {
return (
<div className="site-qty">
{t("site.excavation.qty", { cut: fmt1(q.cut), fill: fmt1(q.fill), backfill: fmt1(q.backfill) })}
{q.workingSpace > 0 && !q.workingSpaceOk && (
<div className="site-warn" role="alert" data-testid="excavation-ws-warning">
{t("site.excavation.workingSpaceWarn", { min: q.workingSpaceMin.toFixed(2), need: q.workingSpace.toFixed(2), n: q.workingSpaceSpots.length })}
</div>
)}
</div>
);
}
@@ -182,6 +187,24 @@ export function ContextObjectProps({ obj, quantities }: { obj: ContextObject; qu
))}
</span>
</div>
{obj.edgeShoring?.some(Boolean) && (
<>
<label className="site-prop">
<span>{t("site.excavation.shoringKind")}</span>
<select
data-testid="excavation-shoring-kind"
value={obj.shoringKind ?? "sheetPile"}
onChange={(e) => host.onPatchContextObject(obj.id, { shoringKind: e.target.value }, `site-${obj.id}-shoringKind`)}
>
<option value="sheetPile">{t("site.excavation.shoringKind.sheetPile")}</option>
<option value="soldierPile">{t("site.excavation.shoringKind.soldierPile")}</option>
<option value="borePile">{t("site.excavation.shoringKind.borePile")}</option>
</select>
</label>
<NumField label={t("site.excavation.shoringThickness")} value={obj.shoringThickness} step={0.05} min={0.05} placeholder={obj.shoringKind === "borePile" ? "0.6" : obj.shoringKind === "soldierPile" ? "0.3" : "0.2"} onChange={patch("shoringThickness")} />
<NumField label={t("site.excavation.shoringEmbed")} value={obj.shoringEmbed} step={0.1} min={0} placeholder="1" onChange={patch("shoringEmbed")} />
</>
)}
<ExcavationQty q={quantities.find((x) => x.id === obj.id)} />
</div>
);
@@ -1,12 +1,12 @@
viewBox -4.2 0 37.045 17.378
bytes 175524
viewBox -4.2 0 38 18.478
bytes 178085
circle 4
g 1
line 514
line 521
path 2
polygon 765
polyline 155
polygon 774
polyline 161
rect 1
svg 1
text 4
hash ecd6c1d2799ca660
hash 587f4d87add7ecf0
+5 -5
View File
@@ -1,5 +1,5 @@
meshes [1961]
meshes[].color [3] x1961
meshes [1962]
meshes[].color [3] x1962
meshes[].indices [108] x6
meshes[].indices [11376]
meshes[].indices [1152]
@@ -12,7 +12,7 @@ meshes[].indices [180]
meshes[].indices [192] x3
meshes[].indices [348] x6
meshes[].indices [360]
meshes[].indices [36] x1860
meshes[].indices [36] x1861
meshes[].indices [396]
meshes[].indices [564] x2
meshes[].indices [60] x9
@@ -26,7 +26,7 @@ meshes[].positions [108] x30
meshes[].positions [120]
meshes[].positions [180] x10
meshes[].positions [216]
meshes[].positions [24] x1828
meshes[].positions [24] x1829
meshes[].positions [252] x2
meshes[].positions [264]
meshes[].positions [288] x8
@@ -72,4 +72,4 @@ walls[].start [2] x1492
walls[].startCut [4] x1107
walls[].topDrop [2] x115
walls[].topPlane [3] x271
hash 1a05da01394b019d
hash d00c532d2d56884e
+3
View File
@@ -4962,6 +4962,9 @@ body {
grid-column: 1 / -1;
color: var(--text-dim, inherit);
}
.site-panel .site-warn {
color: #d6001c;
}
.site-panel .site-check {
display: flex;
align-items: center;