Uebergangs-Spaltenkopf: "geprueft" mit gruenem Haken sobald keine Entscheide offen sind
Deploy App / deploy (push) Successful in 57s
Deploy App / deploy (push) Successful in 57s
Wenn openCount == 0, zeigt der Kopf statt "n offen" nun gruen hinterlegt einen Haken (CheckCircle2) + "geprueft". Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -615,20 +615,23 @@ function PhaseHeader({ phase, onClick, active }: { phase: PhaseComputed; onClick
|
|||||||
}
|
}
|
||||||
|
|
||||||
function TransitionHeader({ openCount, onClick }: { openCount: number; onClick: () => void }) {
|
function TransitionHeader({ openCount, onClick }: { openCount: number; onClick: () => void }) {
|
||||||
|
const done = openCount === 0;
|
||||||
return (
|
return (
|
||||||
<th
|
<th
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
className={`cursor-pointer border-b border-r border-border px-2 py-2 text-center align-top text-[11px] font-medium ${
|
className={`cursor-pointer border-b border-r border-border px-2 py-2 text-center align-top text-[11px] font-medium ${
|
||||||
openCount > 0 ? "bg-accent text-accent-fg" : "bg-accent-soft text-accent-soft-fg"
|
done ? "bg-success/10 text-success" : "bg-accent text-accent-fg"
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<div>Uebergang</div>
|
<div>Uebergang</div>
|
||||||
{openCount > 0 ? (
|
{done ? (
|
||||||
|
<div className="mt-1 flex items-center justify-center gap-1 text-[10px] font-semibold">
|
||||||
|
<CheckCircle2 className="h-3 w-3" /> geprueft
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
<div className="mt-1 rounded-full bg-accent-fg/20 px-1.5 py-0.5 text-[10px] font-semibold">
|
<div className="mt-1 rounded-full bg-accent-fg/20 px-1.5 py-0.5 text-[10px] font-semibold">
|
||||||
{openCount} offen
|
{openCount} offen
|
||||||
</div>
|
</div>
|
||||||
) : (
|
|
||||||
<div className="mt-1 text-[10px] opacity-80">pruefen</div>
|
|
||||||
)}
|
)}
|
||||||
</th>
|
</th>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user