{okr.keyResults
.sort((a, b) => a.order - b.order)
.map((kr: KeyResult) => {
const krProgress = kr.targetValue > 0 ? (kr.currentValue / kr.targetValue) * 100 : 0;
const krProgressColor =
krProgress >= 100
? 'var(--success)'
: krProgress >= 50
? 'var(--accent)'
: 'var(--destructive)';
return (
{kr.title}
{KEY_RESULT_STATUS_LABELS[kr.status]}
{kr.currentValue} / {kr.targetValue} {kr.unit}
{Math.round(krProgress)}%
);
})}