From 7b8032825af3c64c0745df793f86c7f27f13c878 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 13 Nov 2026 19:43:18 +0000 Subject: [PATCH] =?UTF-8?q?[241]=20Objekt-Info=20Gel=C3=A4nde/Kontextobjek?= =?UTF-8?q?te,=20Kamera:=20Raster=20mit=20Label-Spalte,=20Feld=20und=20Ein?= =?UTF-8?q?heit;=20kurze=20Labels,=20kein=20Umbruch/Abschneiden,=20Gel?= =?UTF-8?q?=C3=A4nde-Block=20ohne=20eigenen=20Scroll?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TODO.md | 12 +++- src/i18n/de.ts | 42 ++++++------ src/i18n/en.ts | 42 ++++++------ src/panels/ContextObjectProps.tsx | 107 ++++++++++++++++++------------ src/styles.css | 86 ++++++++++++++++-------- 5 files changed, 176 insertions(+), 113 deletions(-) diff --git a/TODO.md b/TODO.md index 7b01d7f9..8a6b4fdf 100644 --- a/TODO.md +++ b/TODO.md @@ -10,8 +10,7 @@ Wer zu einer ID mehr wissen will (Entscheide, Tests, Bilder), sucht dort nach `* stehen im Archiv („Bewusst nicht übernommen“). - **Grösse** (eine Person mit Agenten): S ≤ 1 Tag · M ≤ 1 Woche · L ≤ 1 Monat · XL > 1 Monat. Steht keine Grösse im Archiv, ist sie hier geschätzt. -- **IDs sind stabil.** Neue ID = nächste freie Zahl nach der höchsten im Archiv und hier (aktuell 238); -- **IDs sind stabil.** Neue ID = nächste freie Zahl nach der höchsten im Archiv und hier (aktuell 239); +- **IDs sind stabil.** Neue ID = nächste freie Zahl nach der höchsten im Archiv und hier (aktuell 241); nie eine ID wiederverwenden oder umnummerieren. Präfix-IDs (`[K]`, `[G]`, `[T]`, `[B]`, `[C]`) bleiben. - **Pro Punkt:** was fehlt · wo im Code · Grösse. Höchstens ein bis drei Sätze je Punkt; Messwerte und Befunde gehören in den Commit. @@ -261,6 +260,15 @@ Kennwort, anonym) als PDF; Austausch mit Fachplanern über DXF/IFC. dasselbe `ObjectInfoPanel` (ohne Bezugspunkt/Masse) und damit dieselben Gruppen und denselben Zustand. Geprüft: vitest `src/panels src/ui src/i18n` (neu `infoGroupState.test.ts`), tsc, e2e objectSettings/objectSettingsWindow/roomStamp218, Screenshots hell/dunkel (Gelände, Wand; Tastatur Enter/Leertaste). Nicht geprüft: Mac/Tauri, natives Nebenfenster. · S +- ✓ **[241]** Objekt-Info Gelände/Kontextobjekte, Kamera, Baum: Raster wie die übrigen Gruppen (13.11., Chromium hell/dunkel, Musterhaus komplex; Mac/Tauri + nicht geprüft). Befund: „Höhe des Punkts (m)“ vierzeilig, Felder 64 px; Ursache auch, dass `.objinfo-site` (nur `> `-Kind-Selektor) seit der Gruppierung ([239]) + nicht mehr griff — der Gelände-Block hatte wieder eigenen Scroll und 8 px Polster, Zeilen („Material“, Verbau) waren abgeschnitten. Jetzt Zeilen als + `.objinfo-field` (Label 104 px | Feld | Einheit hinter dem Feld, `ContextObjectProps.tsx`), kurze Labels (Einheit nicht mehr im Label, Hinweise als + Tooltip: `site.earthDepth.hint`, `site.excavation.shoringEmbed.hint`), Knöpfe umbrechend in `.site-actions`, Verbau-Kanten umbrechend; Gleitkomma-Rauschen + im Feld (0,0499999…) auf 12 Stellen gerundet (nur Anzeige). Kamera: Labels gekürzt (Augenhöhe, Bildwinkel vert., Brennweite KB, Sonne), Label-Spalte + 104 px statt 56 px (auch `.objinfo-tree`). Gemessen (Playwright): Gelände, Höhenlinien, Baugrube, Nachbargebäude, Kamera ohne mehrzeilige/abgeschnittene + Labels, `scrollWidth ≤ clientWidth`. Funktion unverändert. Geprüft: tsc, vitest `src/panels src/ui src/i18n`. Nicht visuell geprüft: Baum (im + Musterhaus keiner; nur dieselbe CSS-Regel wie Kamera). · S - ✓ **[235]** `update-dossier` brach nach der Commit-Liste stumm ab (13.11., Maintainer, Void): `git log … | head -20` lieferte bei mehr als 20 neuen Commits SIGPIPE, mit `set -euo pipefail` endete das Skript ohne Meldung — weder WASM noch AppImage wurden gebaut, `dossier` startete das alte AppImage. Lösung: `git log -20`; `dossier` warnt, wenn das AppImage älter ist als der Checkout. Geprüft: Ursache nachgestellt (Exit 141), Syntax. · S diff --git a/src/i18n/de.ts b/src/i18n/de.ts index 1532ee85..24bdf797 100644 --- a/src/i18n/de.ts +++ b/src/i18n/de.ts @@ -2104,13 +2104,13 @@ export const de = { "objinfo.camera.projection.axonometric": "Axonometrie", "objinfo.camera.projection.parallel": "Parallelprojektion", "objinfo.camera.stand": "Standpunkt", - "objinfo.camera.eyeHeight": "Augenhöhe über Geschoss", + "objinfo.camera.eyeHeight": "Augenhöhe", "objinfo.camera.target": "Ziel", "objinfo.camera.targetHeight": "Höhe Ziel", - "objinfo.camera.fov": "Bildwinkel (vertikal)", - "objinfo.camera.focal": "Brennweite (Kleinbild)", + "objinfo.camera.fov": "Bildwinkel vert.", + "objinfo.camera.focal": "Brennweite KB", "objinfo.camera.orthoHeight": "Sichthöhe", - "objinfo.camera.sun": "Sonnenstand", + "objinfo.camera.sun": "Sonne", "objinfo.camera.sunHint": "Datum und Uhrzeit (UTC); „Kamera öffnen“ stellt die Sonnenstudie darauf. Leer = Sonne bleibt.", "objinfo.camera.locked": "Gesperrt: Die Kamera lässt sich nicht ändern.", "pick.kind.camera": "Kamera", @@ -2547,17 +2547,17 @@ export const de = { "site.smooth.hint": "Höhenlinien als Bruchkanten, flache Dreiecke behoben, Fläche ohne Überschwingen geglättet", "site.excavation.draw": "Baugrube zeichnen", "site.excavation.hint": "Umriss der Sohle zeichnen; Böschungen schneiden das Gelände", - "site.contourInterval": "Äquidistanz [m]", + "site.contourInterval": "Äquidistanz", "site.contourIndexEvery": "Zähllinie jede", "site.smoothShading": "Glatt schattieren", - "site.creaseAngle": "Knickwinkel °", - "site.heightOffset": "Höhenversatz [m]", + "site.creaseAngle": "Knickwinkel", + "site.heightOffset": "Höhenversatz", "site.heightOffset.hint": "Alle Höhen des Elements um diesen Wert verschieben (Eingabe mit Enter bestätigen; negativ = tiefer).", - "site.contours": "Höhenlinien ({n}) — Höhe [m]", + "site.contours": "Höhenlinien ({n}) — Höhe", "site.contour.points": "{n} Punkte", - "site.meshPoint": "Netzpunkt Nr.", + "site.meshPoint": "Netzpunkt", "site.meshPoint.hint": "Nummer des Netzpunkts (1 bis {n}); seine Lage ziehst du im Grundriss am Griff", - "site.meshPoint.z": "Höhe des Punkts (m)", + "site.meshPoint.z": "Punkthöhe", "site.ground": "Aufs Gelände setzen", "site.ground.hint": "Setzt jedes Gebäude dieses Netzes auf den tiefsten Geländepunkt unter seinem Grundriss", "site.ground.noTerrain": "Kein Gelände im Projekt", @@ -2566,24 +2566,26 @@ export const de = { "site.meshCrop.hint": "Entfernt alle Dreiecke, deren Schwerpunkt ausserhalb der Parzelle liegt", "site.meshCrop.noParcel": "Zuerst die Parzelle im Baurecht erfassen", "site.meshCrop.nothing": "Nichts zuzuschneiden: Das Netz liegt ganz innerhalb der Parzelle bzw. ausserhalb davon.", - "site.excavation.bottom": "Sohle [m]", - "site.excavation.slope": "Böschung [°]", - "site.excavation.fillSlope": "Schüttung [°]", - "site.excavation.bermWidth": "Berme [m]", - "site.excavation.bermHeight": "Berme alle [m]", + "site.excavation.bottom": "Sohle", + "site.excavation.slope": "Böschung", + "site.excavation.fillSlope": "Schüttung", + "site.excavation.bermWidth": "Berme", + "site.excavation.bermHeight": "Berme alle", "site.excavation.qty": "Abtrag {cut} m³ · Auftrag {fill} m³ · Hinterfüllung {backfill} m³", "site.excavation.noTerrain": "Kein Gelände unter der Baugrube", - "site.excavation.workingSpace": "Arbeitsraum [m]", - "site.excavation.shoring": "Verbau (senkrecht), Kante", + "site.excavation.workingSpace": "Arbeitsraum", + "site.excavation.shoring": "Verbau-Kanten", "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.shoringThickness": "Wanddicke", + "site.excavation.shoringEmbed": "Einbindetiefe", + "site.excavation.shoringEmbed.hint": "Einbindetiefe des Verbaus unter der Sohle", "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.earthDepth": "Erdreich-Band", + "site.earthDepth.hint": "Dicke des Erdreich-Bands im Schnitt", "site.terrain.material": "Material", "site.terrain.material.none": "Wiese (Standard)", "site.terrain.material.hint": "Bauteil als Oberfläche des Geländes: Farbe und Bildkarten in der texturierten 3D-Ansicht, im Pathtracing und im Blender-Rendering. Ohne Bauteil: Wiese (Pathtracing, Blender), sonst die Geländefarbe.", diff --git a/src/i18n/en.ts b/src/i18n/en.ts index ddba08a4..ea43099f 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -2093,13 +2093,13 @@ export const en: Record = { "objinfo.camera.projection.axonometric": "Axonometric", "objinfo.camera.projection.parallel": "Parallel projection", "objinfo.camera.stand": "Position", - "objinfo.camera.eyeHeight": "Eye height above floor", + "objinfo.camera.eyeHeight": "Eye height", "objinfo.camera.target": "Target", "objinfo.camera.targetHeight": "Target height", - "objinfo.camera.fov": "Field of view (vertical)", - "objinfo.camera.focal": "Focal length (35 mm)", + "objinfo.camera.fov": "Vertical FOV", + "objinfo.camera.focal": "Focal length 35", "objinfo.camera.orthoHeight": "View height", - "objinfo.camera.sun": "Sun position", + "objinfo.camera.sun": "Sun", "objinfo.camera.sunHint": "Date and time (UTC); “Open camera” sets the sun study to it. Empty = sun stays.", "objinfo.camera.locked": "Locked: the camera cannot be changed.", "pick.kind.camera": "Camera", @@ -2535,17 +2535,17 @@ export const en: Record = { "site.smooth.hint": "Contours as breaklines, flat triangles fixed, surface smoothed without overshoot", "site.excavation.draw": "Draw excavation", "site.excavation.hint": "Draw the outline of the pit bottom; slopes cut the terrain", - "site.contourInterval": "Contour interval [m]", + "site.contourInterval": "Interval", "site.contourIndexEvery": "Index contour every", "site.smoothShading": "Smooth shading", - "site.creaseAngle": "Crease angle °", - "site.heightOffset": "Height offset [m]", + "site.creaseAngle": "Crease angle", + "site.heightOffset": "Height offset", "site.heightOffset.hint": "Shift all heights of this element by this value (confirm with Enter; negative = lower).", - "site.contours": "Contours ({n}) — height [m]", + "site.contours": "Contours ({n}) — height", "site.contour.points": "{n} points", - "site.meshPoint": "Mesh point no.", + "site.meshPoint": "Mesh point", "site.meshPoint.hint": "Number of the mesh point (1 to {n}); drag its position in the plan by its grip", - "site.meshPoint.z": "Point height (m)", + "site.meshPoint.z": "Point height", "site.ground": "Place on terrain", "site.ground.hint": "Places every building of this mesh on the lowest terrain point under its footprint", "site.ground.noTerrain": "No terrain in the project", @@ -2554,22 +2554,24 @@ export const en: Record = { "site.meshCrop.hint": "Removes all triangles whose centroid lies outside the parcel", "site.meshCrop.noParcel": "Enter the parcel under building regulations first", "site.meshCrop.nothing": "Nothing to crop: the mesh lies entirely inside the parcel or entirely outside it.", - "site.excavation.bottom": "Bottom [m]", - "site.excavation.slope": "Slope [°]", - "site.excavation.fillSlope": "Fill slope [°]", - "site.excavation.bermWidth": "Berm [m]", - "site.excavation.bermHeight": "Berm every [m]", - "site.excavation.workingSpace": "Working space [m]", - "site.excavation.shoring": "Shoring (vertical), edge", + "site.excavation.bottom": "Bottom", + "site.excavation.slope": "Slope", + "site.excavation.fillSlope": "Fill slope", + "site.excavation.bermWidth": "Berm", + "site.excavation.bermHeight": "Berm every", + "site.excavation.workingSpace": "Working space", + "site.excavation.shoring": "Shoring edges", "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.shoringThickness": "Wall thickness", + "site.excavation.shoringEmbed": "Embedment", + "site.excavation.shoringEmbed.hint": "Embedment of the shoring below the base", "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.earthDepth": "Earth band", + "site.earthDepth.hint": "Thickness of the earth band in section", "site.terrain.material": "Material", "site.terrain.material.none": "Grass (default)", "site.terrain.material.hint": "Component used as the terrain surface: colour and texture maps in the textured 3D view, in path tracing and in the Blender rendering. Without a component: grass (path tracing, Blender), otherwise the terrain colour.", diff --git a/src/panels/ContextObjectProps.tsx b/src/panels/ContextObjectProps.tsx index 64dd1e29..72ecf92d 100644 --- a/src/panels/ContextObjectProps.tsx +++ b/src/panels/ContextObjectProps.tsx @@ -21,17 +21,21 @@ export function NumField(props: { step: number; min?: number; placeholder?: string; + /** Einheit hinter dem Feld (nicht im Label). */ + unit?: string; + title?: string; onChange: (v: number | undefined) => void; }) { return ( -