Kairo-Jinkendo/frontend/src/components/GateFulfillmentBadge.jsx
Lars 1fa61b2dac
Some checks failed
Deploy Development / deploy (push) Successful in 43s
Test Suite / pytest-backend (push) Failing after 2m18s
Test Suite / k6 /api/health Baseline (push) Has been skipped
Test Suite / playwright-smoke (push) Has been skipped
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
AP1.4e: Methodenprofile am Gate-Graph.
generic_operating ohne harte Blockade, Reifegrad-Methoden mit Erfuellungsgrad; Attention gate_graph_blocked fuer gate-orientierte Methoden.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-11 08:06:42 +02:00

20 lines
516 B
JavaScript

export function GateFulfillmentBadge({ graphState, itemId }) {
const ratio = graphState?.items?.[itemId]?.fulfillment_ratio
if (ratio == null) return null
const pct = Math.round(ratio * 100)
const emphasize = graphState?.graph_profile?.emphasize_fulfillment
return (
<span
className={
'status-pill status-pill--fulfillment' +
(emphasize ? ' status-pill--fulfillment-primary' : '')
}
title="Kriterien erfüllt / gesamt"
>
{pct}% Kriterien
</span>
)
}