feat(frontend): drop demo labels from the product screens
This commit is contained in:
1 parent
c836d02ea3
commit
90ff71735a
44 files changed
+165
-376
No files matched your search
@@ -101,7 +101,7 @@ describe("AssessmentHistory", () => {
|
||||
expect(html).toContain("Backend, Middle");
|
||||
expect(html).toContain(`href="${paths.candidate.result(firstId)}"`);
|
||||
expect(html).toContain(`href="${paths.candidate.result(secondId)}"`);
|
||||
expect(html).toContain("Демонстрационные запуски сюда не попадают");
|
||||
expect(html).toContain("Экспресс-тест сюда не попадает и категорию не меняет");
|
||||
expect(html).not.toContain("Показать еще");
|
||||
});
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ export function AssessmentHistory({ actor, queryClient }: AssessmentHistoryProps
|
||||
return (
|
||||
<EmptyState
|
||||
title="Результатов пока нет"
|
||||
description="Здесь появятся завершенные реальные проверки. Демонстрационные запуски в историю не входят."
|
||||
description="Здесь появятся завершенные проверки."
|
||||
action={<ButtonLink to={paths.candidate.assessment}>К проверкам</ButtonLink>}
|
||||
/>
|
||||
);
|
||||
@@ -113,8 +113,7 @@ export function AssessmentHistory({ actor, queryClient }: AssessmentHistoryProps
|
||||
return (
|
||||
<div className={styles.root}>
|
||||
<p className={styles.note}>
|
||||
В истории только завершенные реальные проверки. Демонстрационные запуски сюда не попадают и
|
||||
категорию не меняют.
|
||||
В истории только завершенные проверки. Экспресс-тест сюда не попадает и категорию не меняет.
|
||||
</p>
|
||||
{history.isRefetchError && !history.isFetchNextPageError ? (
|
||||
<ErrorState
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
export { DemoStandBanner } from "./ui/demo-stand-banner";
|
||||
@@ -1,32 +0,0 @@
|
||||
/* A slim strip above the header: the red dot is the design system's "live"
|
||||
* marker; the bold label states the meaning in words. */
|
||||
.banner {
|
||||
padding: var(--space-2) var(--gutter);
|
||||
border-bottom: var(--line-thin) solid var(--color-divider);
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-xs);
|
||||
line-height: var(--line-height-snug);
|
||||
background: var(--color-surface);
|
||||
}
|
||||
|
||||
.banner p {
|
||||
max-width: var(--content-width-wide);
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.label {
|
||||
color: var(--color-text-strong);
|
||||
font-family: var(--font-mono);
|
||||
font-weight: var(--font-weight-medium);
|
||||
}
|
||||
|
||||
.label::before {
|
||||
display: inline-block;
|
||||
width: 0.5rem;
|
||||
height: 0.5rem;
|
||||
margin-right: var(--space-2);
|
||||
border-radius: 50%;
|
||||
content: "";
|
||||
background: var(--color-attention);
|
||||
vertical-align: 0.05em;
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
import styles from "./demo-stand-banner.module.css";
|
||||
|
||||
/**
|
||||
* Marks every page of the demonstration stand: the data is synthetic and the
|
||||
* results are prepared for showing, not measured. It is rendered only by a
|
||||
* demo build (see app routes), and it has no link, so the first link of a
|
||||
* page stays the skip link.
|
||||
*/
|
||||
export function DemoStandBanner() {
|
||||
return (
|
||||
<aside className={styles.banner} aria-label="Статус стенда">
|
||||
<p>
|
||||
<strong className={styles.label}>Демонстрационный стенд.</strong> Все данные синтетические,
|
||||
подготовленные результаты не подтверждают квалификацию. Гид для жюри есть на главной
|
||||
странице.
|
||||
</p>
|
||||
</aside>
|
||||
);
|
||||
}
|
||||
@@ -52,7 +52,7 @@ describe("match list", () => {
|
||||
expect(html).toContain("Подтвержденная категория");
|
||||
expect(html).toContain("Заявленный кандидатом грейд");
|
||||
expect(html).toContain("Грейд подтвержден: Middle");
|
||||
expect(html).toContain("Backend, Middle. Демонстрационное подтверждение");
|
||||
expect(html).toContain("Backend, Middle. Сильное подтверждение");
|
||||
});
|
||||
|
||||
it("offers a specialization switch when the result holds several specializations", () => {
|
||||
|
||||
Reference in new issue
Block a user