fix(assessment): return confirmed categories with their basis and label demonstration categories

This commit is contained in:
shira committed 2026-10-09 21:24:24 +03:00
1 parent 623d41b969
commit d4903a3796
77 files changed
+1441 -288

No files matched your search

@@ -232,12 +232,17 @@ export type CandidateViewPresentation = {
evidence: readonly EvidencePresentation[] | null;
};
// A demonstration basis is named as one, never as a standard confirmation.
function confirmationLabelOf(category: CardCategory): string {
if (category.basis === "synthetic_demo") return "Демонстрационное подтверждение";
return category.strength === "strong" ? "Сильное подтверждение" : "Стандартное подтверждение";
}
function categoryPresentation(category: CardCategory): CategoryPresentation {
return {
specialization: specializationLabels[category.specialization],
grade: gradeLabels[category.grade],
strength:
category.strength === "strong" ? "Сильное подтверждение" : "Стандартное подтверждение",
strength: confirmationLabelOf(category),
};
}