feat: ide-lane hardening (ci ampel in auftragsbuch, hermes auto-bugfix, cleanup)
Ampel / ampel (push) Failing after 22s
Ampel / ampel (push) Failing after 22s
This commit is contained in:
@@ -491,6 +491,7 @@ export interface AuftragItem {
|
||||
verwaist?: boolean // kein gemeinsamer Ursprung mit main (kaputt aufgesetzt) → Merge unmöglich
|
||||
leer?: boolean // Diff gegen main ist leer → bringt nichts (schon in main / am Repo vorbei)
|
||||
status: AuftragStatus | null
|
||||
ci_status?: "success" | "failure" | "pending" | "skipped" | null
|
||||
// Empfehlungs-Stempel des nächtlichen Karten-Gutachters (Meinung, kein Gate).
|
||||
empfehlung: { empfehlung: "ANNEHMEN" | "ABLEHNEN" | "UNKLAR"; satz: string; richter: string } | null
|
||||
}
|
||||
|
||||
@@ -155,6 +155,22 @@ function StateBadge({ item }: { item: AuftragItem }) {
|
||||
)
|
||||
}
|
||||
|
||||
function CIAmpelBadge({ item }: { item: AuftragItem }) {
|
||||
const ci = item.ci_status
|
||||
if (!ci) return null
|
||||
|
||||
if (ci === "success") {
|
||||
return <span className="flex items-center gap-1 rounded-lg border border-emerald-500/30 bg-emerald-500/10 px-1.5 py-0.5 text-[10px] font-bold text-emerald-400" title="CI-Ampel: Grün (Baut & läuft)"><Check className="h-3 w-3" /> CI Grün</span>
|
||||
}
|
||||
if (ci === "failure") {
|
||||
return <span className="flex items-center gap-1 rounded-lg border border-red-500/30 bg-red-500/10 px-1.5 py-0.5 text-[10px] font-bold text-red-400" title="CI-Ampel: Rot (Fehler)"><X className="h-3 w-3" /> CI Rot</span>
|
||||
}
|
||||
if (ci === "pending") {
|
||||
return <span className="flex items-center gap-1 rounded-lg border border-amber-500/30 bg-amber-500/10 px-1.5 py-0.5 text-[10px] font-bold text-amber-400" title="CI-Ampel: Läuft"><Loader2 className="h-3 w-3 animate-spin" /> CI Läuft</span>
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
function ProposalCard({
|
||||
item, busy, onAct, showConfirm,
|
||||
}: {
|
||||
@@ -209,6 +225,7 @@ function ProposalCard({
|
||||
)}
|
||||
<span className="font-mono text-[11px] text-muted-foreground truncate" title={item.branch}>{item.branch}</span>
|
||||
<span className="flex items-center gap-1 text-[10px] text-muted-foreground/70"><Clock className="h-3 w-3" />{fmtWhen(item.ts)}</span>
|
||||
<CIAmpelBadge item={item} />
|
||||
<StateBadge item={item} />
|
||||
</div>
|
||||
<p className="mt-1.5 text-sm font-semibold text-foreground">{item.subject || "(ohne Titel)"}</p>
|
||||
|
||||
Reference in New Issue
Block a user