Uebergang: verkaufte/getilgte Elemente in Folgephasen nicht mehr klickbar
Deploy App / deploy (push) Successful in 57s

Ist ein Element am jeweiligen Uebergang bereits verkauft/getilgt (status != ACTIVE),
zeigt die Zelle nur noch "–" (nicht interaktiv, kein "?"), analog zu AHV.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-14 08:03:21 +02:00
parent cf9d245344
commit a8a780d1ef
+4 -2
View File
@@ -359,7 +359,9 @@ export function PlanView({
</td>
);
}
const canTransition = TRANSITION_CATEGORIES.includes(el.category);
const ceT = computedElement(col.fromPhase.id, el.id);
const locked = !!ceT && ceT.status !== "ACTIVE"; // verkauft/getilgt
const canTransition = TRANSITION_CATEGORIES.includes(el.category) && !locked;
const open = canTransition && transitionUnanswered(el, col.fromPhase, col.toPhase);
return (
<td
@@ -372,7 +374,7 @@ export function PlanView({
canTransition ? "cursor-pointer" : "text-faint"
} ${open ? "bg-accent font-semibold text-accent-fg" : canTransition ? "bg-accent-soft/40 text-accent" : ""}`}
>
{canTransition ? transitionSummary(el, col.fromPhase, col.toPhase) : "→"}
{canTransition ? transitionSummary(el, col.fromPhase, col.toPhase) : locked ? "" : "→"}
</td>
);
})}