[272] Variantenkombinationen: benannte Kombinationen wie Archicad (Modell, Rangfolge, Panel, Vergleich je Kombination, Blatt-Tabelle, CLI --combination); set_field kennt renovation/designOptionSets
check / check (push) Has been cancelled
check / licenses (push) Has been cancelled
check / e2e (push) Has been cancelled
macos / native (push) Has been cancelled

This commit is contained in:
Claude committed 2026-11-17 14:10:30 +00:00
1 parent 08891e81fb
commit 78791a347a
42 files changed
+1193 -119

No files matched your search

+5 -2
View File
@@ -4,7 +4,7 @@
import { t } from "../i18n";
import { useStore } from "../state/appStore";
import { combinationSuffix, designOptionTargets } from "../core";
import { combinationSuffix, designOptionTargets, levelCombination, levelCombinationState } from "../core";
export function DesignOptionControl() {
const project = useStore((s) => s.project);
@@ -12,7 +12,10 @@ export function DesignOptionControl() {
const draw = useStore((s) => s.drawDesignOption);
if (!project.designOptionSets?.length) return null;
const level = project.drawingLevels.find((l) => l.id === activeLevelId);
const suffix = combinationSuffix(project, level?.designOptions);
// Name der benannten Kombination (zugewiesen oder gleiche Wahl), sonst „Eigene: Abweichungen“ bzw. die Hauptvarianten.
const state = levelCombinationState(project, level);
const diff = combinationSuffix(project, levelCombination(project, level));
const suffix = state.kind === "named" ? state.name : diff ? t("designOption.custom", { combination: diff }) : "";
const drawKey = draw ? `${draw.set}/${draw.option}` : "";
const drawLabel = designOptionTargets(project).find((x) => x.key === drawKey)?.label ?? t("designOption.main");
const shown = suffix || t("designOption.primaryCombination");