[283] UX-Nachtrag: Rückmeldung Rampe/Geländer/Träger, Etappen in Umbau-Vorschau, Tooltip Sanieren, Varianten-Namen umbrechen, en Renovation, Rendering-Datum lokalisiert, Qualität Entwurf

This commit is contained in:
Claude committed 2026-11-18 02:09:24 +00:00
1 parent b3db08a1e0
commit 14ae9e18c2
12 files changed
+130 -31

No files matched your search

+11
View File
@@ -178,6 +178,17 @@ export function RenovationPanel() {
{RENOVATION_STATUSES.map((s) => (
<ShowChip key={s} st={sw[s]} status={s} show={shows[s]} />
))}
{/* [283] Etappen mit eigenen Farben: Muster wie im Plan (Abbruch/Neu je Etappe) */}
{phases.filter((ph) => rs.phases[ph.id]).map((ph) => (
<span className="reno-chip reno-chip-phase" key={ph.id} data-testid={`reno-chip-phase-${ph.id}`}>
<Swatch st={rs.phases[ph.id].demolish} show={shows.demolish} />
<Swatch st={rs.phases[ph.id].new} show={shows.new} />
<span className="reno-chip-text">
<span className="reno-chip-status">{ph.name}</span>
<span className="reno-chip-show">{t("renovation.status.demolish")} · {t("renovation.status.new")}</span>
</span>
</span>
))}
</div>
)}
</div>
+1
View File
@@ -167,6 +167,7 @@ export function RenovationSanierung({ project }: { project: Project }) {
className="reno-link-btn"
data-testid="reno-pair-renovate-all"
disabled={pr.elements === 0 || pr.renovated === pr.elements}
title={pr.elements === 0 ? t("renovation.panel.sanierung.renovateAll.none") : pr.renovated === pr.elements ? t("renovation.panel.sanierung.renovateAll.done") : undefined}
onClick={() => applyChange((p) => renovateAllOfTypeOps(p, pr.type, host))}
>
{t((host === "wall" ? "renovation.panel.sanierung.renovateAll" : `renovation.panel.sanierung.renovateAll.${host}`) as TranslationKey)}