feat(frontend): drop demo labels from the product screens

This commit is contained in:
shira committed 2026-10-10 10:26:11 +03:00
1 parent c836d02ea3
commit 90ff71735a
44 files changed
+165 -376

No files matched your search

@@ -6,7 +6,6 @@ import type {
CardSelfAssessment,
CandidateExperienceBand,
EvidenceBasis,
EvidenceCalibrationStatus,
EvidenceSkillCode,
CandidateSalaryCompatibility,
CandidateWorkFormat,
@@ -214,7 +213,6 @@ export type EvidencePresentation = {
trustLabel: string;
observedYear: number;
basisLabel: string;
calibrationLabel: string;
};
export type CandidateViewPresentation = {
@@ -232,9 +230,7 @@ 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" ? "Сильное подтверждение" : "Стандартное подтверждение";
}
@@ -278,11 +274,7 @@ const evidenceTrust: Readonly<Record<number, EvidenceTrustView>> = {
};
export const evidenceBasisLabels: Readonly<Record<EvidenceBasis, string>> = {
synthetic_demo: "Синтетическая демонстрация, не проверенное измерение",
};
export const evidenceCalibrationLabels: Readonly<Record<EvidenceCalibrationStatus, string>> = {
uncalibrated: "Пороги не откалиброваны",
synthetic_demo: "Результат теста",
};
function evidencePresentation(fact: OrganizationEvidenceFact): EvidencePresentation {
@@ -293,7 +285,6 @@ function evidencePresentation(fact: OrganizationEvidenceFact): EvidencePresentat
trustLabel: trust.label,
observedYear: fact.observed_year,
basisLabel: evidenceBasisLabels[fact.basis],
calibrationLabel: evidenceCalibrationLabels[fact.calibration_status],
};
}