feat(matches): add the candidate match screen with expandable explanations
This commit is contained in:
1 parent
0b11021b16
commit
28337d84cb
50 files changed
+4834
-37
No files matched your search
@@ -0,0 +1,96 @@
|
||||
.panel {
|
||||
display: grid;
|
||||
gap: var(--space-4);
|
||||
min-width: 0;
|
||||
padding: var(--space-4);
|
||||
border: var(--line-thin) solid var(--color-border-strong);
|
||||
border-radius: var(--radius-s);
|
||||
background: var(--color-surface);
|
||||
}
|
||||
|
||||
.panel[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.title {
|
||||
margin: 0;
|
||||
font-size: var(--font-size-m);
|
||||
font-weight: var(--font-weight-bold);
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
margin: 0;
|
||||
font-size: var(--font-size-s);
|
||||
font-weight: var(--font-weight-bold);
|
||||
}
|
||||
|
||||
.list {
|
||||
display: grid;
|
||||
gap: var(--space-2);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.list li {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-1) var(--space-3);
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.facts {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(9rem, max-content) minmax(0, 1fr);
|
||||
gap: var(--space-2) var(--space-4);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.facts dt {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.facts dd {
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.unknown,
|
||||
.note {
|
||||
margin: 0;
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.note {
|
||||
font-size: var(--font-size-s);
|
||||
}
|
||||
|
||||
.evidence-facts {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(7rem, max-content) minmax(0, 1fr);
|
||||
gap: var(--space-1) var(--space-4);
|
||||
margin: 0;
|
||||
font-size: var(--font-size-s);
|
||||
}
|
||||
|
||||
.evidence-facts dd {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@media (width < 30rem) {
|
||||
.panel {
|
||||
padding: var(--space-3);
|
||||
}
|
||||
|
||||
.facts,
|
||||
.evidence-facts {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.facts dd + dt {
|
||||
padding-block-start: var(--space-2);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,197 @@
|
||||
import {
|
||||
Button,
|
||||
ErrorState,
|
||||
ForbiddenState,
|
||||
isAccessDenied,
|
||||
LoadingState,
|
||||
StatusView,
|
||||
TrustLevel,
|
||||
} from "../../../shared/ui";
|
||||
import { useMatchCandidateCard, useMatchCandidateEvidence } from "../api/card";
|
||||
import { describeCardFailure } from "../model/card-failure";
|
||||
import { presentCard, presentEvidence } from "../model/card-presentation";
|
||||
import styles from "./candidate-card-details.module.css";
|
||||
|
||||
type CandidateCardDetailsProps = {
|
||||
id: string;
|
||||
accountId: string;
|
||||
organizationId: string;
|
||||
candidateHandle: string;
|
||||
/** False keeps the panel mounted but out of the page, so closing does not read the card again. */
|
||||
open: boolean;
|
||||
};
|
||||
|
||||
function ReadFailure({
|
||||
error,
|
||||
isRetrying,
|
||||
onRetry,
|
||||
fallbackTitle,
|
||||
}: {
|
||||
error: unknown;
|
||||
isRetrying: boolean;
|
||||
onRetry: () => void;
|
||||
fallbackTitle: string;
|
||||
}) {
|
||||
const failure = describeCardFailure(error);
|
||||
if (failure) {
|
||||
return (
|
||||
<StatusView
|
||||
kind={failure.kind}
|
||||
title={failure.title}
|
||||
description={failure.description}
|
||||
action={
|
||||
failure.kind === "error" ? (
|
||||
<Button variant="secondary" isBusy={isRetrying} onClick={onRetry}>
|
||||
{isRetrying ? "Повторяем..." : "Повторить"}
|
||||
</Button>
|
||||
) : null
|
||||
}
|
||||
/>
|
||||
);
|
||||
}
|
||||
if (isAccessDenied(error)) return <ForbiddenState error={error} />;
|
||||
return (
|
||||
<ErrorState error={error} title={fallbackTitle} isRetrying={isRetrying} onRetry={onRetry} />
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* The full anonymous card of one result and its evidence section, read from
|
||||
* the card endpoints when the employer opens it. The card belongs to the
|
||||
* whole candidate, so it lists every specialization the candidate published,
|
||||
* each with its own confirmation status.
|
||||
*/
|
||||
export function CandidateCardDetails({
|
||||
id,
|
||||
accountId,
|
||||
organizationId,
|
||||
candidateHandle,
|
||||
open,
|
||||
}: CandidateCardDetailsProps) {
|
||||
const card = useMatchCandidateCard(accountId, organizationId, candidateHandle, true);
|
||||
const hasCategories = Boolean(card.data?.categories && card.data.categories.length > 0);
|
||||
const evidence = useMatchCandidateEvidence(
|
||||
accountId,
|
||||
organizationId,
|
||||
candidateHandle,
|
||||
card.isSuccess && hasCategories,
|
||||
);
|
||||
const details = card.data ? presentCard(card.data) : null;
|
||||
const facts = evidence.data ? presentEvidence(evidence.data) : null;
|
||||
|
||||
return (
|
||||
<section id={id} className={styles.panel} aria-label="Карточка кандидата" hidden={!open}>
|
||||
<h5 className={styles.title}>Карточка кандидата</h5>
|
||||
<p className={styles.note}>
|
||||
Карточка относится к кандидату целиком и без контактов. Подтверждение задается для каждой
|
||||
специализации отдельно. Открытие учитывается в просмотрах, кандидат, уже показанный в этом
|
||||
окне, второй раз не списывается.
|
||||
</p>
|
||||
{card.isPending ? <LoadingState label="Открываем карточку..." /> : null}
|
||||
{card.isError ? (
|
||||
<ReadFailure
|
||||
error={card.error}
|
||||
isRetrying={card.isFetching}
|
||||
onRetry={() => void card.refetch()}
|
||||
fallbackTitle="Не удалось открыть карточку"
|
||||
/>
|
||||
) : null}
|
||||
{details ? (
|
||||
<>
|
||||
<section aria-label="Подтвержденные категории">
|
||||
<h6 className={styles.subtitle}>Подтвержденные категории</h6>
|
||||
{details.categories === null ? (
|
||||
<p className={styles.unknown}>Нет значения в карточке.</p>
|
||||
) : details.categories.length === 0 ? (
|
||||
<p className={styles.unknown}>Подтвержденных категорий нет.</p>
|
||||
) : (
|
||||
<ul className={styles.list}>
|
||||
{details.categories.map((category) => (
|
||||
<li key={category.specialization}>
|
||||
{category.specialization}: {category.grade}. {category.strength}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
)}
|
||||
</section>
|
||||
<section aria-label="Заявленные специализации">
|
||||
<h6 className={styles.subtitle}>Заявленные специализации</h6>
|
||||
{details.selfAssessments === null ? (
|
||||
<p className={styles.unknown}>Нет значения в карточке.</p>
|
||||
) : details.selfAssessments.length === 0 ? (
|
||||
<p className={styles.unknown}>Специализации не названы.</p>
|
||||
) : (
|
||||
<ul className={styles.list}>
|
||||
{details.selfAssessments.map((item) => (
|
||||
<li key={item.specialization}>
|
||||
<strong>{item.specialization}</strong>
|
||||
<span>
|
||||
{item.declaredGrade ? `Заявлено: ${item.declaredGrade}` : "Уровень не указан"}
|
||||
</span>
|
||||
<TrustLevel
|
||||
level={item.confirmed ? "confirmed" : "none"}
|
||||
label={item.confirmed ? "Грейд подтвержден" : "Грейд не подтвержден"}
|
||||
/>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
)}
|
||||
</section>
|
||||
<dl className={styles.facts}>
|
||||
<dt>Технологии</dt>
|
||||
<dd>
|
||||
{details.stack === null
|
||||
? "Нет значения в карточке"
|
||||
: details.stack.join(", ") || "Не названы"}
|
||||
</dd>
|
||||
<dt>Общий опыт</dt>
|
||||
<dd>{details.experience ?? "Нет значения в карточке"}</dd>
|
||||
<dt>Форматы работы</dt>
|
||||
<dd>
|
||||
{details.workFormats === null
|
||||
? "Нет значения в карточке"
|
||||
: details.workFormats.join(", ") || "Не названы"}
|
||||
</dd>
|
||||
<dt>Зарплатные ожидания</dt>
|
||||
<dd>{details.salaryCompatibility ?? "Нет значения в карточке"}</dd>
|
||||
</dl>
|
||||
{hasCategories ? (
|
||||
<section aria-label="Подтверждающие факты оценки">
|
||||
<h6 className={styles.subtitle}>Подтверждающие факты оценки</h6>
|
||||
{evidence.isPending ? <LoadingState label="Загружаем факты оценки..." /> : null}
|
||||
{evidence.isError ? (
|
||||
<ReadFailure
|
||||
error={evidence.error}
|
||||
isRetrying={evidence.isFetching}
|
||||
onRetry={() => void evidence.refetch()}
|
||||
fallbackTitle="Не удалось загрузить факты оценки"
|
||||
/>
|
||||
) : null}
|
||||
{facts && facts.length === 0 ? (
|
||||
<p className={styles.unknown}>Для категорий карточки нет видимого факта оценки.</p>
|
||||
) : null}
|
||||
{facts && facts.length > 0 ? (
|
||||
<ul className={styles.list}>
|
||||
{facts.map((fact) => (
|
||||
<li key={fact.title}>
|
||||
<strong>{fact.title}</strong>
|
||||
<TrustLevel level={fact.trust} label={fact.trustLabel} />
|
||||
<dl className={styles["evidence-facts"]}>
|
||||
<dt>Год оценки</dt>
|
||||
<dd>{fact.observedYear}</dd>
|
||||
<dt>Основа</dt>
|
||||
<dd>{fact.basisLabel}</dd>
|
||||
<dt>Калибровка</dt>
|
||||
<dd>{fact.calibrationLabel}</dd>
|
||||
</dl>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
) : null}
|
||||
</section>
|
||||
) : null}
|
||||
</>
|
||||
) : null}
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,128 @@
|
||||
.card {
|
||||
display: grid;
|
||||
gap: var(--space-4);
|
||||
min-width: 0;
|
||||
padding: var(--space-4);
|
||||
border: var(--line-thin) solid var(--color-divider);
|
||||
border-inline-start: var(--space-1) solid var(--color-border-strong);
|
||||
border-radius: var(--radius-m);
|
||||
background: var(--color-surface);
|
||||
}
|
||||
|
||||
/* The confirmed and the unconfirmed state differ in the edge style and the
|
||||
* text of the badge, so the difference never relies on color alone. */
|
||||
.card[data-confirmed="false"] {
|
||||
border-inline-start-style: dashed;
|
||||
}
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-2) var(--space-4);
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.specialization {
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere;
|
||||
font-size: var(--font-size-l);
|
||||
font-weight: var(--font-weight-bold);
|
||||
}
|
||||
|
||||
.handle {
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-s);
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.status {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-1) var(--space-4);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.facts {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(9rem, max-content) minmax(0, 1fr);
|
||||
gap: var(--space-2) var(--space-4);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.facts dt {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.facts dd {
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.unknown {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.sources {
|
||||
display: grid;
|
||||
gap: var(--space-2);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.sources-title {
|
||||
margin: 0;
|
||||
font-size: var(--font-size-s);
|
||||
font-weight: var(--font-weight-bold);
|
||||
}
|
||||
|
||||
.sources ul {
|
||||
display: grid;
|
||||
gap: var(--space-2);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.sources li {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-1) var(--space-3);
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.source-label {
|
||||
font-weight: var(--font-weight-medium);
|
||||
}
|
||||
|
||||
.actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-2) var(--space-3);
|
||||
}
|
||||
|
||||
.panels {
|
||||
display: grid;
|
||||
gap: var(--space-4);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
@media (width < 30rem) {
|
||||
.card {
|
||||
padding: var(--space-3);
|
||||
}
|
||||
|
||||
.facts {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.facts dd + dt {
|
||||
padding-block-start: var(--space-2);
|
||||
}
|
||||
|
||||
.actions > * {
|
||||
flex: 1 1 100%;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
import type { ReactNode } from "react";
|
||||
import { Mono, TrustLevel, type TrustLevelValue } from "../../../shared/ui";
|
||||
import type { MatchCardModel } from "../model/adapter";
|
||||
import { evidenceRows, type EvidenceRow } from "../model/explanation";
|
||||
import {
|
||||
experienceBandLabels,
|
||||
gradeLabels,
|
||||
salaryCompatibilityLabels,
|
||||
specializationLabels,
|
||||
stackLabels,
|
||||
strengthLabels,
|
||||
workFormatLabels,
|
||||
} from "../model/labels";
|
||||
import { shortHandle } from "../model/views";
|
||||
import styles from "./match-card.module.css";
|
||||
|
||||
const stateLevels: Readonly<Record<EvidenceRow["state"], TrustLevelValue>> = {
|
||||
supports: "confirmed",
|
||||
partial: "partial",
|
||||
declared_only: "claimed",
|
||||
gap: "none",
|
||||
};
|
||||
|
||||
const noValue = "Нет значения в карточке";
|
||||
|
||||
function Unknown() {
|
||||
return <span className={styles.unknown}>{noValue}</span>;
|
||||
}
|
||||
|
||||
type MatchCardViewProps = {
|
||||
card: MatchCardModel;
|
||||
/** Id of the heading, so the surrounding group can label the article. */
|
||||
headingId: string;
|
||||
/** Buttons and links under the card facts. */
|
||||
actions?: ReactNode;
|
||||
/** Expandable panels under the actions. */
|
||||
children?: ReactNode;
|
||||
};
|
||||
|
||||
/**
|
||||
* One search result: a candidate under one specialization. It prints the
|
||||
* confirmed category and the declared grade on separate lines, the safe card
|
||||
* context, and the server's templated sources and gaps. Nothing here is
|
||||
* calculated: the status comes from the group and the fields of the entry.
|
||||
*/
|
||||
export function MatchCardView({ card, headingId, actions, children }: MatchCardViewProps) {
|
||||
const confirmed = card.confirmationStatus === "confirmed";
|
||||
const context = card.publicContext;
|
||||
const sources = evidenceRows(card);
|
||||
|
||||
return (
|
||||
<article className={styles.card} data-confirmed={confirmed} aria-labelledby={headingId}>
|
||||
<header className={styles.header}>
|
||||
<h4 id={headingId} className={styles.specialization}>
|
||||
{specializationLabels[card.specialization]}
|
||||
</h4>
|
||||
<p className={styles.handle}>
|
||||
Кандидат <Mono>{shortHandle(card.candidateHandle)}</Mono>
|
||||
</p>
|
||||
</header>
|
||||
<div className={styles.status}>
|
||||
{card.category && card.strength ? (
|
||||
<TrustLevel
|
||||
level="confirmed"
|
||||
label={`Грейд подтвержден: ${gradeLabels[card.category.grade]}`}
|
||||
/>
|
||||
) : (
|
||||
<TrustLevel level="none" label="Грейд не подтвержден" />
|
||||
)}
|
||||
</div>
|
||||
<dl className={styles.facts}>
|
||||
<dt>Подтвержденная категория</dt>
|
||||
<dd>
|
||||
{card.category && card.strength
|
||||
? `${specializationLabels[card.category.specialization]}, ${gradeLabels[card.category.grade]}. ${strengthLabels[card.strength]}`
|
||||
: "Нет"}
|
||||
</dd>
|
||||
<dt>Заявленный кандидатом грейд</dt>
|
||||
<dd>{card.declaredGrade ? gradeLabels[card.declaredGrade] : "Не указан"}</dd>
|
||||
<dt>Технологии</dt>
|
||||
<dd>
|
||||
{context.stack === null ? (
|
||||
<Unknown />
|
||||
) : context.stack.length === 0 ? (
|
||||
"Не названы"
|
||||
) : (
|
||||
context.stack.map((tag) => stackLabels[tag]).join(", ")
|
||||
)}
|
||||
</dd>
|
||||
<dt>Общий опыт</dt>
|
||||
<dd>
|
||||
{context.experienceBand ? experienceBandLabels[context.experienceBand] : <Unknown />}
|
||||
</dd>
|
||||
<dt>Форматы работы</dt>
|
||||
<dd>
|
||||
{context.workFormats === null ? (
|
||||
<Unknown />
|
||||
) : context.workFormats.length === 0 ? (
|
||||
"Не названы"
|
||||
) : (
|
||||
context.workFormats.map((format) => workFormatLabels[format]).join(", ")
|
||||
)}
|
||||
</dd>
|
||||
<dt>Зарплатные ожидания</dt>
|
||||
<dd>
|
||||
{context.salaryCompatibility ? (
|
||||
salaryCompatibilityLabels[context.salaryCompatibility]
|
||||
) : (
|
||||
<Unknown />
|
||||
)}
|
||||
</dd>
|
||||
</dl>
|
||||
<section className={styles.sources} aria-label="Источники подтверждения и пробелы">
|
||||
<h5 className={styles["sources-title"]}>Источники подтверждения и пробелы</h5>
|
||||
{sources.length > 0 ? (
|
||||
<ul>
|
||||
{sources.map((item) => (
|
||||
<li key={item.code}>
|
||||
<span className={styles["source-label"]}>{item.label}</span>
|
||||
<TrustLevel level={stateLevels[item.state]} label={item.stateLabel} />
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
) : (
|
||||
<p className={styles.unknown}>Сервер не вернул пояснений по источникам.</p>
|
||||
)}
|
||||
</section>
|
||||
{actions ? <div className={styles.actions}>{actions}</div> : null}
|
||||
{children ? <div className={styles.panels}>{children}</div> : null}
|
||||
</article>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
.panel {
|
||||
display: grid;
|
||||
gap: var(--space-3);
|
||||
min-width: 0;
|
||||
padding: var(--space-4);
|
||||
border: var(--line-thin) solid var(--color-divider);
|
||||
border-radius: var(--radius-s);
|
||||
background: var(--color-canvas);
|
||||
}
|
||||
|
||||
.title {
|
||||
margin: 0;
|
||||
font-size: var(--font-size-m);
|
||||
font-weight: var(--font-weight-bold);
|
||||
}
|
||||
|
||||
.rows {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(10rem, max-content) minmax(0, 1fr);
|
||||
gap: var(--space-2) var(--space-4);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Wrapper of one term and its value; the grid lays out its children. */
|
||||
.row {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
.rows dt {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.rows dd {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-1) var(--space-3);
|
||||
align-items: baseline;
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.neutral {
|
||||
font-size: var(--font-size-s);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.unknowns {
|
||||
display: grid;
|
||||
gap: var(--space-1);
|
||||
margin: 0;
|
||||
padding-inline-start: var(--space-5);
|
||||
}
|
||||
|
||||
.note {
|
||||
margin: 0;
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-s);
|
||||
}
|
||||
|
||||
@media (width < 30rem) {
|
||||
.panel {
|
||||
padding: var(--space-3);
|
||||
}
|
||||
|
||||
.rows {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.row + .row dt {
|
||||
padding-block-start: var(--space-2);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
import { Mono } from "../../../shared/ui";
|
||||
import type { MatchCardModel } from "../model/adapter";
|
||||
import { componentRows, otherUnknowns } from "../model/explanation";
|
||||
import styles from "./match-explanation.module.css";
|
||||
|
||||
type MatchExplanationProps = {
|
||||
card: MatchCardModel;
|
||||
/** Id that the disclosure button points at through aria-controls. */
|
||||
id: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* The explanation of one entry: every component exactly as the server
|
||||
* returned it, the neutral values with their stated reasons, and the
|
||||
* components that are unknown. The client adds no numbers, so a neutral value
|
||||
* is never presented as a measurement and a missing percentile is never
|
||||
* replaced by an estimate.
|
||||
*/
|
||||
export function MatchExplanation({ card, id }: MatchExplanationProps) {
|
||||
const rows = componentRows(card);
|
||||
const unknowns = otherUnknowns(card);
|
||||
const unconfirmed = card.group === "unconfirmed";
|
||||
|
||||
return (
|
||||
<section id={id} className={styles.panel} aria-label="Объяснение позиции">
|
||||
<h5 className={styles.title}>Как получена позиция</h5>
|
||||
<dl className={styles.rows}>
|
||||
{rows.map((row) => (
|
||||
<div key={row.key} className={styles.row}>
|
||||
<dt>{row.label}</dt>
|
||||
<dd data-component={row.key} data-neutral={row.neutral}>
|
||||
<Mono strong={row.key === "rank"}>{row.display}</Mono>
|
||||
{row.note ? <span className={styles.neutral}>{row.note}</span> : null}
|
||||
</dd>
|
||||
</div>
|
||||
))}
|
||||
</dl>
|
||||
{unconfirmed ? (
|
||||
<p className={styles.note}>
|
||||
Для профиля без подтвержденного грейда считаются только Fit и Cov. Балл ранжирования,
|
||||
тестовый перцентиль и подтвержденная категория не рассчитываются, а баллы разных групп не
|
||||
являются одной шкалой.
|
||||
</p>
|
||||
) : (
|
||||
<p className={styles.note}>
|
||||
Баллы от 0 до 1 посчитал сервер, интерфейс их не пересчитывает. Итоговый балл сравним
|
||||
только внутри своей группы.
|
||||
</p>
|
||||
)}
|
||||
{unknowns.length > 0 ? (
|
||||
<>
|
||||
<h5 className={styles.title}>Что неизвестно</h5>
|
||||
<ul className={styles.unknowns}>
|
||||
{unknowns.map((item) => (
|
||||
<li key={`${item.component}:${item.reason}`}>
|
||||
{item.component}: {item.reason}.
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
<p className={styles.note}>
|
||||
Неизвестное значение не означает отсутствие способности: нет данных, чтобы его оценить.
|
||||
</p>
|
||||
</>
|
||||
) : null}
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user