fix(assessment): return confirmed categories with their basis and label demonstration categories
This commit is contained in:
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),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user