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

@@ -40,7 +40,7 @@ export function presentCard(card: AnonymousCardContent): CardDetails {
card.categories?.map((category) => ({
specialization: specializationLabels[category.specialization],
grade: gradeLabels[category.grade],
strength: confirmationLabel(category.basis, category.strength),
strength: confirmationLabel(category.strength),
})) ?? null,
selfAssessments:
card.self_assessment?.map((item) => ({
@@ -63,7 +63,6 @@ export type EvidenceFact = {
trustLabel: string;
observedYear: number;
basisLabel: string;
calibrationLabel: string;
};
const skillLabels: Readonly<Record<EvidenceSkillCode, string>> = {
@@ -78,7 +77,7 @@ const trustViews: Readonly<Record<number, { level: TrustLevelValue; label: strin
3: { level: "confirmed", label: "Очная проверка" },
};
/** Facts of the evidence section as the server lists them, with its basis and calibration. */
/** Facts of the evidence section as the server lists them, with its basis. */
export function presentEvidence(evidence: OrganizationEvidence): EvidenceFact[] {
return evidence.items.map((fact) => {
const trust = trustViews[fact.trust] ?? trustViews[0]!;
@@ -87,8 +86,7 @@ export function presentEvidence(evidence: OrganizationEvidence): EvidenceFact[]
trust: trust.level,
trustLabel: trust.label,
observedYear: fact.observed_year,
basisLabel: "Синтетическая демонстрация, не проверенное измерение",
calibrationLabel: "Пороги не откалиброваны",
basisLabel: "Результат теста",
};
});
}