Merge [263] UX-Prüfung

This commit is contained in:
Claude committed 2026-11-15 22:08:01 +00:00
commit ec5e77195d
17 files changed
+237 -67

No files matched your search

+23
View File
@@ -39,6 +39,29 @@ const P = [
{ x: 1, y: 6 },
];
describe("[263] Unbekannter Befehl im Ruhezustand", () => {
it("meldet „cmd.unknown“ statt still nichts zu tun; bekannte Befehle melden nichts", () => {
const notes: { key: string; params?: Record<string, string | number> }[] = [];
const host: EngineHost = {
context: (lastPoint) => ({ ...ctx, lastPoint }),
snap: () => null,
pxPerMeter: () => 50,
setDraft: () => {},
commit: () => {},
isFloor: () => true,
notify: (key, params) => void notes.push({ key, params }),
};
const engine = new CommandEngine(host);
engine.submitText("xyzabc");
expect(notes).toEqual([{ key: "cmd.unknown", params: { name: "xyzabc" } }]);
expect(engine.isActive()).toBe(false);
notes.length = 0;
engine.submitText("polyline");
expect(notes).toEqual([]);
expect(engine.isActive()).toBe(true);
});
});
describe("Esc/Enter der Befehls-Engine", () => {
it("Wand: Esc nimmt den letzten Punkt zurück, Enter übernimmt den Rest", () => {
const { engine, log } = setup();
+5
View File
@@ -454,6 +454,11 @@ export class CommandEngine {
this.repeatLast();
return;
}
// [263] Nicht still scheitern: unbekannter Name → Meldung (Start-Fehler melden sich selbst).
if (!(resolveCommand(text, this.aliasOverrides) ?? getCommand(text))) {
this.host.notify?.("cmd.unknown", { name: text }, "warning");
return;
}
this.start(text);
return;
}
+30 -29
View File
@@ -293,11 +293,11 @@ export const de = {
"tool.wall.firstPoint": "Wand: ersten Achspunkt setzen",
"tool.wall.nextPoint": "Wand: nächsten Punkt — Doppelklick/Rechtsklick beendet",
"tool.ceiling.firstPoint": "Decke: ersten Umrisspunkt setzen",
"tool.ceiling.nextPoint": "Decke: nächster Punkt — Klick auf Start schließt, Enter beendet",
"tool.ceiling.nextPoint": "Decke: nächster Punkt — Klick auf Start schliesst, Enter beendet",
"tool.line.firstPoint": "Linie: Startpunkt setzen",
"tool.line.secondPoint": "Linie: Endpunkt setzen",
"tool.polyline.firstPoint": "Polylinie: ersten Punkt setzen",
"tool.polyline.nextPoint": "Polylinie: nächster Punkt — Klick auf Start schließt, Doppelklick beendet",
"tool.polyline.nextPoint": "Polylinie: nächster Punkt — Klick auf Start schliesst, Doppelklick beendet",
"tool.rect.firstCorner": "Rechteck: erste Ecke setzen",
"tool.rect.secondCorner": "Rechteck: gegenüberliegende Ecke setzen",
"tool.wallType": "Wandtyp",
@@ -502,7 +502,7 @@ export const de = {
"objinfo.y": "Y",
"objinfo.z": "Z",
"objinfo.zHint": "2D-Ebene – keine Höhe am Element",
"objinfo.dimensions": "Maße",
"objinfo.dimensions": "Masse",
"objinfo.width": "Breite",
"objinfo.height": "Höhe",
"objinfo.type": "Typ",
@@ -617,7 +617,7 @@ export const de = {
// ── Wand-Attribute (Object-Info-Panel) ──────────────────────────────────
"objinfo.wall.section": "Wand",
"objinfo.wall.refLine": "Referenzlinie",
"objinfo.wall.refLine.left": "Außen (links)",
"objinfo.wall.refLine.left": "Aussen (links)",
"objinfo.wall.refLine.center": "Mitte",
"objinfo.wall.refLine.right": "Innen (rechts)",
"objinfo.wall.refLine.joint": "Fuge",
@@ -884,7 +884,7 @@ export const de = {
"objinfo.opening.swing.right": "Rechts",
"objinfo.opening.dir": "Richtung",
"objinfo.opening.dir.in": "Innen",
"objinfo.opening.dir.out": "Außen",
"objinfo.opening.dir.out": "Aussen",
"objinfo.opening.bottom": "Unterkante (UK)",
"objinfo.opening.top": "Oberkante (OK)",
// Neue Öffnungs-Felder
@@ -895,7 +895,7 @@ export const de = {
"objinfo.opening.lintelLines": "Sturzlinien",
"objinfo.opening.lintelLines.keine": "Keine",
"objinfo.opening.lintelLines.innen": "Innen",
"objinfo.opening.lintelLines.aussen": "Außen",
"objinfo.opening.lintelLines.aussen": "Aussen",
"objinfo.opening.lintelLines.beide": "Beide",
"objinfo.opening.lintelLineStyle": "Sturzlinie",
"objinfo.opening.lintelLineStyle.gestrichelt": "Gestrichelt",
@@ -1099,10 +1099,10 @@ export const de = {
// ── Dock ─────────────────────────────────────────────────────────────────
"dock.resize": "Breite anpassen",
"dock.dock": "Andocken",
"dock.close": "Schließen",
"dock.close": "Schliessen",
"dock.float": "Lösen",
"dock.redock": "Andocken",
"dock.resizePanel": "Größe ändern",
"dock.resizePanel": "Grösse ändern",
"dock.dropLeft": "Links andocken",
"dock.dropRight": "Rechts andocken",
@@ -1173,7 +1173,7 @@ export const de = {
"ctx.title.view": "Ansicht",
// ── Inline-Editor (Ebene / Geschoss) ─────────────────────────────────────
"editor.close": "Schließen",
"editor.close": "Schliessen",
"editor.layerTitle": "Ebene {code}",
"editor.name": "Name",
"editor.color": "Farbe",
@@ -1269,7 +1269,7 @@ export const de = {
// ── Ressourcen-Manager ───────────────────────────────────────────────────
"resources.title": "Ressourcen",
"resources.label": "Ressourcen-Manager",
"resources.close": "Schließen",
"resources.close": "Schliessen",
"resources.loading": "Verbinde mit dem Hauptfenster …",
"resources.tab.components": "Bauteile",
"resources.tab.hatches": "Schraffuren",
@@ -1587,11 +1587,11 @@ export const de = {
// Bauteil-Typen (Tür/Fenster/Treppe) — Formular-Bibliotheken.
"resources.doorTypes.hint":
"Wiederverwendbare Türtypen mit Bauart, Blattausführung und Standardmaßen für neu platzierte Türen.",
"Wiederverwendbare Türtypen mit Bauart, Blattausführung und Standardmassen für neu platzierte Türen.",
"resources.doorTypes.empty": "Noch keine Türtypen.",
"resources.doorTypes.placeholder": "Türtyp",
"resources.windowTypes.hint":
"Wiederverwendbare Fenstertypen mit Öffnungsart, Verglasung und Standardmaßen für neu platzierte Fenster.",
"Wiederverwendbare Fenstertypen mit Öffnungsart, Verglasung und Standardmassen für neu platzierte Fenster.",
"resources.windowTypes.empty": "Noch keine Fenstertypen.",
"resources.windowTypes.placeholder": "Fenstertyp",
"resources.addPreset": "Aus Bibliothek…",
@@ -1675,7 +1675,7 @@ export const de = {
"resources.glazing.dreifach": "Dreifach",
"resources.sillBoard.keine": "Keine",
"resources.sillBoard.innen": "Innen",
"resources.sillBoard.aussen": "Außen",
"resources.sillBoard.aussen": "Aussen",
"resources.sillBoard.beide": "Beide",
"resources.structure.massiv": "Massiv",
"resources.structure.beton": "Betontreppe (Laufplatte)",
@@ -1716,7 +1716,7 @@ export const de = {
"resources.import.pat": "⤓ .pat importieren",
// Bauteile.
"resources.components.hint": "Höhere Priorität läuft am Stoß durch (verschneidet zuerst); niedrigere stößt seitlich an.",
"resources.components.hint": "Höhere Priorität läuft am Stoss durch (verschneidet zuerst); niedrigere stösst seitlich an.",
"resources.components.empty": "Noch keine Bauteile.",
"resources.components.placeholder": "Bauteil",
"resources.col.name": "Name",
@@ -1728,7 +1728,7 @@ export const de = {
"resources.col.viewHatch": "Ansichtsschraffur",
"resources.viewHatch.none": "(keine)",
"resources.col.prio": "Prio",
"resources.col.prio.hint": "Höhere Priorität läuft am Stoß durch",
"resources.col.prio.hint": "Höhere Priorität läuft am Stoss durch",
"resources.col.texture": "Textur",
"resources.col.material": "Material",
"material.fetchAmbient": "Textur laden",
@@ -1737,7 +1737,7 @@ export const de = {
"resources.updateStandards": "Standards aktualisieren",
"resources.updateStandards.hint": "Bringt Standard-Einträge (Schraffuren, Baustoffe, Linientypen, Aufbauten mit Standard-id) auf die heutige Definition. Du siehst vorher, was sich ändert, und wählst aus; ein Undo-Schritt.",
"resources.updateStandards.intro": "Diese Standard-Einträge weichen von der heutigen Bibliothek ab. Ob du einen Eintrag selbst angepasst hast, kann Dossier nicht erkennen: umbenannte Einträge sind abgewählt, alle anderen vorgewählt. Name und eigene Zusatzfelder bleiben unverändert.",
"resources.updateStandards.added": "Außerdem werden {n} fehlende Standard-Einträge hinzugefügt.",
"resources.updateStandards.added": "Ausserdem werden {n} fehlende Standard-Einträge hinzugefügt.",
"resources.updateStandards.none": "Alle Standard-Einträge sind auf dem heutigen Stand.",
"resources.updateStandards.renamed": "umbenannt",
"resources.updateStandards.all": "Alle überschreiben",
@@ -1849,7 +1849,7 @@ export const de = {
"material.dialog.hint": "Wähle ein eingebautes Material oder lade eigene Texturen hoch. Wirkt im 3D-Modus „Texturiert\".",
"material.library": "Bibliothek (ambientCG, CC0)",
"material.upload": "Eigene Texturen",
"material.upload.hint": "Lade Bilder als Karten hoch (mindestens Farbe). Größe = physische Kachelgröße in Metern.",
"material.upload.hint": "Lade Bilder als Karten hoch (mindestens Farbe). Grösse = physische Kachelgrösse in Metern.",
"material.upload.color": "Farbe (Albedo)",
"material.upload.normal": "Normal",
"material.upload.roughness": "Rauheit",
@@ -1857,10 +1857,10 @@ export const de = {
"material.upload.ao": "AO",
"material.upload.choose": "Bild …",
"material.upload.apply": "Zuweisen",
"material.size": "Kachelgröße (m)",
"material.size": "Kachelgrösse (m)",
"material.current": "Aktuell",
"material.clear": "Material entfernen",
"material.close": "Schließen",
"material.close": "Schliessen",
"material.uploaded": "Hochgeladen",
// ── ambientCG-Bibliothek durchsuchen (Live) ──────────────────────────────
"material.browse": "Bibliothek durchsuchen",
@@ -1881,11 +1881,11 @@ export const de = {
"material.browse.downloadError": "Download fehlgeschlagen (CORS/Proxy prüfen).",
// Schraffuren.
"resources.hatches.hint": "Muster, Maßstab und Winkel steuern die Schnitt-Schraffur; der Linienstil bestimmt die Stärke der Musterlinien.",
"resources.hatches.hint": "Muster, Massstab und Winkel steuern die Schnitt-Schraffur; der Linienstil bestimmt die Stärke der Musterlinien.",
"resources.hatches.empty": "Noch keine Schraffuren.",
"resources.hatches.placeholder": "Schraffur",
"resources.col.pattern": "Muster",
"resources.col.scale": "Maßstab",
"resources.col.scale": "Massstab",
"resources.col.angle": "Winkel °",
"resources.col.relativeToWall": "Wandbezug",
"resources.col.relativeToWall.hint": "Winkel relativ zur Wandachse — das Muster dreht mit der Wand mit",
@@ -2054,6 +2054,7 @@ export const de = {
"cmd.ceilingOpening.corner": "Gegenecke:",
"cmd.roofHole.label": "Dachhof",
"cmd.needsFloor": "Dieser Befehl zeichnet im Grundriss: zuerst ein Geschoss wählen",
"cmd.unknown": "Unbekannter Befehl „{name}“ — Tab zeigt passende Befehle",
"cmd.excavation.noTerrain": "Baugrube braucht ein Gelände: zuerst Höhenlinien importieren und „Gelände erzeugen“ (Panel Gelände) oder den Standort importieren",
"cmd.excavation.outside": "Keine Baugrube: der Umriss liegt ausserhalb des Geländes",
"cmd.excavation.degenerate": "Keine Baugrube: der Umriss hat keine Fläche",
@@ -2680,7 +2681,7 @@ export const de = {
// ── Import-Dialog (ImportDialog) ─────────────────────────────────────────
"import.title": "DXF importieren",
"import.failed": "Import fehlgeschlagen",
"import.close": "Schließen",
"import.close": "Schliessen",
"import.file": "Datei",
"import.summary.heading": "Inhalt",
"import.summary.contours": "{n} Konturen",
@@ -2789,7 +2790,7 @@ export const de = {
"export.title": "PDF/SVG exportieren",
"export.confirmSvg": "Als SVG",
"export.confirmPdf": "Als PDF",
"export.close": "Schließen",
"export.close": "Schliessen",
"export.plan": "Plan",
"export.scale": "Massstab",
"export.paper": "Papierformat",
@@ -2799,7 +2800,7 @@ export const de = {
"export.scale.customPlaceholder": "Freitext (z. B. 1:75 oder 75)",
"export.selectionOnly": "Nur Auswahl exportieren ({count} Element(e))",
"export.warnFit":
"Der Plan passt im gewählten Massstab nicht ganz auf das Blatt — größeres Format oder kleineren Massstab wählen.",
"Der Plan passt im gewählten Massstab nicht ganz auf das Blatt — grösseres Format oder kleineren Massstab wählen.",
"export.confirm": "Exportieren",
"export.cancel": "Abbrechen",
@@ -3228,7 +3229,7 @@ export const de = {
"about.license": "Lizenz: AGPL-3.0-or-later",
"about.suite": "Teil von openbureau",
"about.licenses": "Open-Source-Lizenzen (Drittkomponenten)",
"about.close": "Schließen",
"about.close": "Schliessen",
"about.checkUpdate": "Nach Updates suchen",
"about.checkingUpdate": "Suche nach Updates …",
@@ -3256,9 +3257,9 @@ export const de = {
"settings.marqueeColor": "Auswahlrahmen-Farbe",
"settings.marqueeColor.hint":
"Farbe des Auswahlrahmens beim Aufziehen einer Auswahl (Marquee) im Grundriss.",
"settings.snapColor": "Snap-/Endpunkt-Farbe",
"settings.snapColor": "Fang-/Endpunkt-Farbe",
"settings.snapColor.hint":
"Farbe der Snap-/Endpunkt-Hervorhebung beim Zeichnen/Editieren im Grundriss.",
"Farbe der Fang-/Endpunkt-Hervorhebung beim Zeichnen und Bearbeiten im Grundriss.",
"settings.section.project": "Projekt",
"settings.referenceElevation": "Höhe ±0.00 (m ü. M.)",
"settings.referenceElevation.hint":
@@ -3373,7 +3374,7 @@ export const de = {
"site.setGeoref": "Neuer Bezugspunkt",
"site.setGeoref.hint": "Klick im Grundriss verschiebt das ganze Projekt — der geklickte Punkt wird zum neuen Ursprung (0,0). Der reale Standort-Bezug bleibt erhalten.",
"ctxImport.title": "Standort importieren",
"ctxImport.close": "Schließen",
"ctxImport.close": "Schliessen",
"ctxImport.geoAnchor": "Georeferenziert ab: {label}",
"ctxImport.geoAnchor.coords": "E {e} / N {n} / H {h}",
"ctxImport.geoAnchor.reset": "Zurücksetzen",
@@ -3430,7 +3431,7 @@ export const de = {
"cmd.room.mode": "Modus",
"cmd.room.inside": "Klick in Raum setzen:",
"cmd.room.first": "Ersten Raumpunkt setzen:",
"cmd.room.next": "Nächsten Punkt setzen ( Enter/Start schließt ):",
"cmd.room.next": "Nächsten Punkt setzen ( Enter/Start schliesst ):",
// ── Text-Gruppe (Oberleiste) ─────────────────────────────────────────────
"text.group": "Text",
+23 -22
View File
@@ -372,7 +372,7 @@ export const en: Record<TranslationKey, string> = {
"trace.settings": "Trace settings",
"trace.source": "Source",
"trace.source.none": "– choose –",
"trace.color": "Colour",
"trace.color": "Color",
"trace.color.grey": "Grey",
"trace.color.red": "Red",
"trace.color.blue": "Blue",
@@ -561,7 +561,7 @@ export const en: Record<TranslationKey, string> = {
"objinfo.roof.parapetHeight": "Parapet height (m)",
"objinfo.roof.parapetWidth": "Parapet width (m)",
"objinfo.roof.parapetMaterial": "Parapet material",
"objinfo.roof.parapetMaterial.none": "Wall colour",
"objinfo.roof.parapetMaterial.none": "Wall color",
"objinfo.roof.thickness": "Roof thickness (m)",
"objinfo.roof.baseElevation": "Eaves height (m)",
"objinfo.roof.ridgeHeight": "Ridge height",
@@ -1788,7 +1788,7 @@ export const en: Record<TranslationKey, string> = {
"resources.col.density": "Density [kg/m³]",
"resources.col.fireClass": "Reaction to fire (VKF)",
"resources.col.fireClass.none": "—",
"resources.col.elevationColor": "Elevation colour",
"resources.col.elevationColor": "Elevation color",
"resources.col.surfacePattern": "Surface pattern",
"resources.col.surfacePattern.hint": "Pattern drawn on visible faces (elevation, roof top view): sizes in metres on site, oriented along the element; thinned at coarse scales.",
"resources.surfacePattern.none": "None",
@@ -1952,7 +1952,7 @@ export const en: Record<TranslationKey, string> = {
"pattern.crosshatch": "Crosshatch",
"pattern.custom": "Custom motif",
"resources.lines.hint": "Line type = pattern (solid, dashed, dotted, zigzag …) and colour. The line weight is set by the element, the hatch, the layer joint or the layer.",
"resources.lines.hint": "Line type = pattern (solid, dashed, dotted, zigzag …) and color. The line weight is set by the element, the hatch, the layer joint or the layer.",
"resources.lines.empty": "No line styles yet.",
"resources.lines.placeholder": "Line style",
"resources.col.weight": "Weight (mm)",
@@ -2043,6 +2043,7 @@ export const en: Record<TranslationKey, string> = {
"cmd.ceilingOpening.corner": "Opposite corner:",
"cmd.roofHole.label": "Roof court",
"cmd.needsFloor": "This command draws in plan view: select a floor first",
"cmd.unknown": "Unknown command “{name}” — Tab shows matching commands",
"cmd.excavation.noTerrain": "An excavation needs terrain: import contour lines and “Generate terrain” (Terrain panel) or import the site first",
"cmd.excavation.outside": "No excavation: the outline lies outside the terrain",
"cmd.excavation.degenerate": "No excavation: the outline has no area",
@@ -2648,7 +2649,7 @@ export const en: Record<TranslationKey, string> = {
"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 render. Without a component: grass (path tracing, Blender), otherwise the terrain colour.",
"site.terrain.material.hint": "Component used as the terrain surface: color and texture maps in the textured 3D view, in path tracing and in the Blender render. Without a component: grass (path tracing, Blender), otherwise the terrain color.",
"site.terrain.visible": "Terrain visible",
"site.terrain.visible.hint": "Shows or hides the category {name} (all views, one undo step)",
"site.terrain.smooth": "Smoothing",
@@ -2684,7 +2685,7 @@ export const en: Record<TranslationKey, string> = {
"import.pdf.scaleFree": "Custom scale, e.g. 1:75",
"import.pdf.size": "Sheet {w} × {h} mm → {mw} × {mh} m in the model",
"import.pdf.images": "{n} images on the page are not imported.",
"import.pdf.note": "Lines come in as a 2D drawing (snappable), layers by colour and line weight. For a raster image instead: tool “Image/PDF”.",
"import.pdf.note": "Lines come in as a 2D drawing (snappable), layers by color and line weight. For a raster image instead: tool “Image/PDF”.",
"import.pdf.loading": "Reading PDF …",
"import.pdf.title": "Import PDF",
"import.pdf.dashStyleName": "PDF dash {pattern} mm",
@@ -2862,7 +2863,7 @@ export const en: Record<TranslationKey, string> = {
"pointCloud.report.epsgNone": "not specified",
"pointCloud.report.attrs": "Attributes",
"pointCloud.report.truncated": "File incomplete — read as far as possible.",
"pointCloud.attr.rgb": "colour",
"pointCloud.attr.rgb": "color",
"pointCloud.attr.intensity": "intensity",
"pointCloud.attr.class": "classes",
"pointCloud.attr.none": "position only",
@@ -2876,8 +2877,8 @@ export const en: Record<TranslationKey, string> = {
"pointCloud.empty": "No point cloud loaded.",
"pointCloud.import": "Import …",
"pointCloud.visible": "Visible",
"pointCloud.color": "Colour mode",
"pointCloud.color.rgb": "Colour (RGB)",
"pointCloud.color": "Color mode",
"pointCloud.color.rgb": "Color (RGB)",
"pointCloud.color.intensity": "Intensity",
"pointCloud.color.class": "Class",
"pointCloud.color.height": "Height",
@@ -3044,8 +3045,8 @@ export const en: Record<TranslationKey, string> = {
"program.field.kind": "Area type",
"program.field.group": "Group / floor",
"program.field.note": "Note",
"program.import": "Import room program …",
"program.import.title": "Import room program",
"program.import": "Import room programme …",
"program.import.title": "Import room programme",
"program.import.sheet": "Sheet",
"program.import.header": "Header row",
"program.import.header.none": "none",
@@ -3060,7 +3061,7 @@ export const en: Record<TranslationKey, string> = {
"program.import.skip.header": "header",
"program.import.skip.group": "heading → group",
"program.import.skipSums": "Skip total rows",
"program.import.mode.replace": "Replace the existing room program",
"program.import.mode.replace": "Replace the existing room programme",
"program.import.mode.append": "Append to the existing one ({n} rows)",
"program.import.summary": "{n} rows will be imported, {s} skipped.",
"program.import.needNameArea": "Please map at least the Name and Area columns.",
@@ -3070,7 +3071,7 @@ export const en: Record<TranslationKey, string> = {
"program.import.confirm": "Import",
"program.import.readFail": "The spreadsheet could not be read: {msg}",
"program.import.empty": "The file contains no cells.",
"program.import.done": "{n} program rows imported.",
"program.import.done": "{n} programme rows imported.",
"program.compare.title": "Target / actual",
"program.compare.col.name": "Room",
"program.compare.col.count": "Count act./target",
@@ -3084,7 +3085,7 @@ export const en: Record<TranslationKey, string> = {
"program.compare.total": "Total",
"program.compare.noGroup": "no group",
"program.compare.noKind": "no area type",
"program.compare.extra": "Rooms without a program row: {n}, {area} m²",
"program.compare.extra": "Rooms without a programme row: {n}, {area} m²",
"program.compare.tolerance": "Tolerance ±",
"program.compare.tolerance.hint": "Deviation of actual from target area: green within the tolerance, yellow up to twice that, red beyond.",
"program.compare.light.green": "within tolerance",
@@ -3094,7 +3095,7 @@ export const en: Record<TranslationKey, string> = {
"program.compare.exportCsv": "CSV",
"program.compare.exportPdf": "PDF",
"program.compare.exportPdf.fail": "Could not create the PDF.",
"program.report.title": "Room program target/actual",
"program.report.title": "Room programme target/actual",
"program.report.table": "Target/actual per room [m²]",
"program.report.note.tolerance": "Traffic light: ok up to ±{pct} %, warning up to ±{pct2} %, beyond that deviation. Rooms are matched by name.",
"program.report.note.sia": "Area types according to SIA 416.",
@@ -3103,11 +3104,11 @@ export const en: Record<TranslationKey, string> = {
"program.report.light.red": "deviation",
"program.report.light.grey": "–",
"program.generate": "Generate rooms",
"program.generate.hint": "Creates a new sheet “Room program”: one rectangle per room with the target area in a 4:3 aspect ratio, ordered by group. The rectangles are drawings and do not count towards the actual areas.",
"program.generate.levelName": "Room program",
"program.generate.hint": "Creates a new sheet “Room programme”: one rectangle per room with the target area in a 4:3 aspect ratio, ordered by group. The rectangles are drawings and do not count towards the actual areas.",
"program.generate.levelName": "Room programme",
"program.generate.groupTitle": "{name} · {area} m²",
"program.generate.done": "{n} rooms created on sheet “{name}”.",
"program.generate.none": "The room program has no row with a name and an area.",
"program.generate.none": "The room programme has no row with a name and an area.",
"sun.show": "Show shadows in plan",
"sun.shadows3d": "Show shadows in 3D",
"sun.shadows3d.hint": "Sun from date and time; all elements cast shadows, glass does not. Unset: same as in plan.",
@@ -3588,7 +3589,7 @@ export const en: Record<TranslationKey, string> = {
"sheetTable.source": "Source",
"sheetTable.source.openings": "Window and door schedule",
"sheetTable.source.areas": "Area table (SIA 416)",
"sheetTable.source.rooms": "Room program target/actual",
"sheetTable.source.rooms": "Room programme target/actual",
"sheetTable.source.elements": "Elements with U-value",
"sheetTable.source.earthworks": "Earthworks (excavations)",
"sheetTable.source.roomBook": "Room book (finishes)",
@@ -4113,7 +4114,7 @@ export const en: Record<TranslationKey, string> = {
"render.saved": "Rendering saved",
"render.cancelled": "Rendering cancelled",
"render.error": "Rendering failed: {message}",
"render.missingTextures": "{n} texture maps were not reachable; these materials appear in a single colour.",
"render.missingTextures": "{n} texture maps were not reachable; these materials appear in a single color.",
"render.missing.title": "Blender not found",
"render.missing.text": "Rendering needs an installed Blender (free, version 3.6 or later). Dossier only calls it as a separate program. After installing it, choose «Render» again or enter the executable path above.",
"render.missing.download": "Download Blender",
@@ -4238,7 +4239,7 @@ export const en: Record<TranslationKey, string> = {
"anonymity.item.viewTemplates": "View template",
"anonymity.item.layoutFolders": "Layout folder",
"anonymity.item.publishSets": "Publish set",
"anonymity.item.roomProgram": "Room program",
"anonymity.item.roomProgram": "Room programme",
"anonymity.item.export": "Output",
"anonymity.item.cameras": "Camera",
"anonymity.item.components": "Component",
@@ -4294,7 +4295,7 @@ export const en: Record<TranslationKey, string> = {
"publish.competition.identifiers": "Further details that must not appear",
"publish.competition.identifiersHint": "Office, names, e-mail, phone, separated by commas. Searched in free text before an anonymous submission is exported.",
"publish.competition.keyword": "Keyword",
"publish.competition.hint": "Title block, PDF title and file names show only the keyword; no office or author name, no program or date details in the PDF.",
"publish.competition.hint": "Title block, PDF title and file names show only the keyword; no office or author name, no programme or date details in the PDF.",
"publish.wbw.add": "Create competition set",
"publish.wbw.name": "Competition submission",
"render.toLayout": "Place in layout",
+31
View File
@@ -0,0 +1,31 @@
// [263] Rechtschreibung des deutschen Wörterbuchs: Schweizer Schreibweise (kein „ß“, also „Massstab“,
// „Schliessen“, „Aussenwand“) — die ganze App und die Fachsprache (SIA) nutzen „ss“; gemischte
// Schreibung wirkte inkonsequent (Dialog „Schliessen“ neben „Schließen“).
import { describe, expect, it } from "vitest";
import { de } from "./de";
import { en } from "./en";
describe("de.ts: Schweizer Rechtschreibung", () => {
it("enthält kein ß", () => {
const hits = Object.entries(de)
.filter(([, v]) => typeof v === "string" && v.includes("ß"))
.map(([k, v]) => `${k}: ${v}`);
expect(hits).toEqual([]);
});
it("nennt die Fang-Funktion überall „Fang“, nicht „Snap“ (ausser Ausschnitt/Snapshot)", () => {
const hits = Object.entries(de)
.filter(([k, v]) => typeof v === "string" && /\bSnap\b|Snap-/.test(v) && !/napshot/.test(k))
.map(([k, v]) => `${k}: ${v}`);
expect(hits).toEqual([]);
});
});
describe("en.ts: einheitliche Schreibweise", () => {
it("color (nicht colour) und room programme (nicht room program)", () => {
const hits = Object.entries(en)
.filter(([, v]) => typeof v === "string" && (/colour/i.test(v) || /room program\b/i.test(v)))
.map(([k, v]) => `${k}: ${v}`);
expect(hits).toEqual([]);
});
});
+26 -2
View File
@@ -5716,14 +5716,17 @@ body {
}
.attr-grid {
display: grid;
grid-template-columns: minmax(80px, max-content) 1fr;
/* [263] Label-Spalte höchstens 42 %: ein langes Label („Strichmuster-Massstab“) presste sonst die
Wert-Spalte auf 120 px, und die Quellen-Auswahl neben dem Zahlenfeld schrumpfte auf „e ▾“. */
grid-template-columns: minmax(80px, 42%) 1fr;
align-items: stretch;
gap: 0;
padding: 0;
}
.attr-key {
color: var(--label);
white-space: nowrap;
white-space: normal;
overflow-wrap: anywhere;
display: flex;
align-items: center;
padding: 3px 10px 3px 2px;
@@ -5745,6 +5748,11 @@ body {
min-width: 0;
justify-content: space-between;
}
/* [263] Quellen-Auswahl neben einem Zahlenfeld: nie unter die Breite von „eigener Wert“ schrumpfen. */
.attr-val > .attr-num ~ .tb-dd-trigger {
flex: 1 0 auto;
min-width: 84px;
}
.attr-readonly {
color: var(--label);
opacity: 0.85;
@@ -7006,6 +7014,12 @@ body {
flex: 0 0 90px;
width: 90px;
}
/* [263] Bezugspunkt: drei Felder teilen sich die Zeile, Platzhalter („LV95 Nord (N)“, „Höhe (m ü. M.)“) bleiben lesbar. */
.cim-input-num.cim-input-coord {
flex: 1 1 0;
width: auto;
min-width: 0;
}
.cim-results {
list-style: none;
margin: 8px 0 0;
@@ -7702,6 +7716,11 @@ body {
.ribbon-views::-webkit-scrollbar {
display: none;
}
/* [263] Es gibt rechts noch Bedienelemente ausserhalb des Fensters: Rand ausblenden. */
.ribbon-views.has-more {
-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}
/* ── Layout-Blatt im Haupt-Viewport (DOSSIER A3, Phase 2b) ─────────────────────
Das Blatt liegt auf einem dunklen „Tisch"; oben eine schlanke Werkzeugleiste,
@@ -7716,6 +7735,10 @@ body {
display: flex;
align-items: center;
gap: 8px;
/* [263] Umbrechen statt abschneiden: bei 1280 px Fensterbreite ist die Mitte nur 640 px breit, die
Tabellen-Auswahl schrumpfte auf den Pfeil und „Einpassen“ lag ausserhalb. */
flex-wrap: wrap;
row-gap: 4px;
padding: 5px 10px;
border-bottom: 1px solid var(--line, #2b2b2b);
background: var(--panel, #1d1d1d);
@@ -7741,6 +7764,7 @@ body {
.layout-sheet-toolbar .res-select {
width: auto;
min-width: 0;
flex: 0 0 auto;
}
.layout-sheet-name {
+3 -3
View File
@@ -484,7 +484,7 @@ export function ContextImportDialog({
<div className="imp-section-title">{t("ctxImport.refPoint")}</div>
<div className="cim-radius-row">
<input
className="cim-input cim-input-num"
className="cim-input cim-input-num cim-input-coord"
type="number"
step={0.01}
value={refPoint.e}
@@ -493,7 +493,7 @@ export function ContextImportDialog({
aria-label={t("ctxImport.refPoint.e")}
/>
<input
className="cim-input cim-input-num"
className="cim-input cim-input-num cim-input-coord"
type="number"
step={0.01}
value={refPoint.n}
@@ -502,7 +502,7 @@ export function ContextImportDialog({
aria-label={t("ctxImport.refPoint.n")}
/>
<input
className="cim-input cim-input-num"
className="cim-input cim-input-num cim-input-coord"
type="number"
step={0.01}
value={refPoint.h}
+19 -1
View File
@@ -1117,8 +1117,26 @@ export const ViewRibbonTab = memo(function ViewRibbonTab({
{ value: "__custom__", label: t("topbar.scale.custom") },
];
// [263] Die Ansichts-Leiste scrollt ohne sichtbare Leiste: bei schmalem Fenster (1280 px) liegen Massstab,
// Zoom und Schrift rechts ausserhalb. Ein Ausblenden am rechten Rand (Klasse `has-more`) zeigt, dass es weitergeht.
const ribbonRef = useRef<HTMLDivElement | null>(null);
useEffect(() => {
const el = ribbonRef.current;
if (!el) return;
const update = () => el.classList.toggle("has-more", el.scrollWidth - el.clientWidth - el.scrollLeft > 2);
update();
el.addEventListener("scroll", update, { passive: true });
const ro = typeof ResizeObserver !== "undefined" ? new ResizeObserver(update) : null;
ro?.observe(el);
for (const c of Array.from(el.children)) ro?.observe(c);
return () => {
el.removeEventListener("scroll", update);
ro?.disconnect();
};
});
return (
<div className="ribbon-views">
<div className="ribbon-views" ref={ribbonRef}>
{/* Reihenfolge: Grundriss · Ansichten · Iso · Axo — ohne Trennstriche
(eine zusammenhängende Symbol-Zeile, Nutzer-Wunsch). */}
<span className="tb-viewtoggle" role="group" aria-label={t("topbar.viewGroup")}>