From 90ff71735a8b4d4b11de0cbdef0ab4e66793cbac Mon Sep 17 00:00:00 2001
From: shira
Date: Sat, 10 Oct 2026 10:26:11 +0300
Subject: [PATCH] feat(frontend): drop demo labels from the product screens
---
docs/en/ARCHITECTURE.md | 2 +-
docs/en/DEPLOY.md | 6 +--
docs/ru/ARCHITECTURE.md | 2 +-
docs/ru/DEPLOY.md | 6 +--
frontend/README.en.md | 8 +--
frontend/README.md | 8 +--
frontend/e2e/assessment.spec.ts | 31 +++++-------
frontend/e2e/jury-guide.spec.ts | 12 ++---
frontend/e2e/match-search.spec.ts | 9 ++--
frontend/e2e/privacy-visibility.spec.ts | 6 +--
.../src/app/router/routes-demo-stand.test.tsx | 6 +--
frontend/src/app/router/routes.test.tsx | 2 +-
frontend/src/app/router/routes.tsx | 2 +-
frontend/src/app/ui/root-layout.tsx | 9 +---
.../src/entities/assessment/model/labels.ts | 2 +-
.../model/result-presentation.test.ts | 23 +++------
.../assessment/model/result-presentation.ts | 45 ++++++-----------
.../assessment/model/result-summary.test.ts | 50 ++++++-------------
.../assessment/model/result-summary.ts | 38 ++++----------
.../ui/assessment-result-view.module.css | 10 ----
.../ui/assessment-result-view.test.tsx | 18 +++----
.../assessment/ui/assessment-result-view.tsx | 25 ++--------
frontend/src/entities/candidate-view/index.ts | 1 -
.../candidate-view/model/presentation.test.ts | 5 +-
.../candidate-view/model/presentation.ts | 11 +---
.../ui/employer-card-preview.test.tsx | 10 ++--
.../ui/employer-card-preview.tsx | 2 -
.../entities/match/model/card-presentation.ts | 8 ++-
frontend/src/entities/match/model/labels.ts | 9 ++--
.../match/ui/candidate-card-details.tsx | 2 -
frontend/src/entities/match/ui/match-card.tsx | 2 +-
.../assessment-signals/ui/signal-notice.tsx | 4 +-
.../assessment/ui/assessment-attempt-page.tsx | 14 ++----
.../pages/assessment/ui/assessment-page.tsx | 15 +++---
frontend/src/pages/jury-guide/model/guide.ts | 22 +++-----
.../jury-guide/ui/jury-guide-page.test.tsx | 19 +++----
.../pages/jury-guide/ui/jury-guide-page.tsx | 31 +++---------
.../src/pages/welcome/ui/welcome-page.tsx | 5 +-
.../ui/assessment-history.test.tsx | 2 +-
.../ui/assessment-history.tsx | 5 +-
.../src/widgets/demo-stand-banner/index.ts | 1 -
.../ui/demo-stand-banner.module.css | 32 ------------
.../ui/demo-stand-banner.tsx | 19 -------
.../widgets/match-list/ui/match-list.test.tsx | 2 +-
44 files changed, 165 insertions(+), 376 deletions(-)
delete mode 100644 frontend/src/widgets/demo-stand-banner/index.ts
delete mode 100644 frontend/src/widgets/demo-stand-banner/ui/demo-stand-banner.module.css
delete mode 100644 frontend/src/widgets/demo-stand-banner/ui/demo-stand-banner.tsx
diff --git a/docs/en/ARCHITECTURE.md b/docs/en/ARCHITECTURE.md
index 4425e7a..4aeec9d 100644
--- a/docs/en/ARCHITECTURE.md
+++ b/docs/en/ARCHITECTURE.md
@@ -722,7 +722,7 @@ Implemented as a deterministic search without ML: `POST /api/v1/organizations/{o
- Owner only. For the MVP milestone the active owner of the organization searches. The HTTP boundary refuses every other role (`ownerCompanyOperations`), and the usecase repeats the role check under the membership lock, so a membership alone grants nothing. The full role and assignment matrix is later work and must not widen rights by one membership.
- Charged like card reads. A search returns card content (the confirmed category with its strength and basis, the declared grade, the stack, the experience band, the work formats, and the explanation), so it passes through the same allowance as a card read. The whole visible bank is ranked, and then each group is cut to `max_results_per_group` of the policy version (demo value 10, so at most 30 reveals for one search, below the 50 distinct card views per day of tier E0); no total is returned. Walking the output in the order `main`, `near`, `unconfirmed`, each newly revealed candidate is reserved through the company quota port (`candidateview.SearchViews.Reserve`, the same `ReserveCardView` as a card read: idempotent per organization and candidate inside the window, so repeating the search or opening the card afterwards does not charge twice), and the candidate's access history gets one `card_viewed` entry per search with the fields actually returned (`SearchViews.Record`), all in the transaction of the search. When the allowance ends, the output stops at the first refusal: the entries already paid for are returned, `truncated` is true, nothing is written for the rest, and there is no error. `truncated` is also true when a group exceeded its limit; it carries no count. Opening a card is still the read for the full card.
- One entry per candidate specialization, built from the card the organization is allowed to see. A specialization is confirmed only when the card shows its category (`categories` published and not generalized away); a role that the self-assessment lists as unconfirmed is an unconfirmed entry; a role marked confirmed whose category the card does not show gives no entry, because a result cannot claim a confirmation the candidate did not publish. The same handle can therefore be confirmed in Backend and unconfirmed in Networks, and a Backend confirmation never changes the Networks entry. The status of an entry follows the specialization of the request: a need with a confirmed specialization and a `specialization` filter both restrict it, and two different values leave nothing. A need without a confirmed specialization searches all of them and returns each specialization separately.
-- Category basis. Each confirmed category of an entry carries `basis` from the same stored row as the card. Today it is `synthetic_demo`, a demonstration that is not a validated measurement. The organization reads it as a demonstration confirmation; the field is required in `MatchCategory`, so a category without a basis cannot exist.
+- Category basis. Each confirmed category of an entry carries `basis` from the same stored row as the card. Today it is `synthetic_demo`, a demonstration that is not a validated measurement. The organization interface shows it as an ordinary confirmation (standard or strong) while the basis itself stays in the API response; the field is required in `MatchCategory`, so a category without a basis cannot exist.
- Filters, all applied before scoring. `confirmed_grade`, `confirmed_category`, and `confirmation_status: confirmed` keep only confirmed entries; a declared grade never satisfies them. `declared_grade` is a separate claim. `stack` requires every named tag in the card and also counts as a required skill of the request. `conditions.work_formats` needs one common format, and `conditions.salary_compatibility` needs the same value; an unknown card value never satisfies a condition. An unconfirmed category alone hides nothing: without a confirmed filter the declared specializations are listed.
- Requested skills. The skills of the Cov come from the confirmed required (weight 2) and desired (weight 1) skills of the need snapshot, with the tags of the `stack` filter as required. A code is counted once however often it is repeated. A skill without a taxonomy code has no reviewed mapping, matches nothing, and is a gap. An empty request uses the neutral Cov 0.5 instead of dividing by zero. The need is read by `requirements_version` (`GetVersion`); a general version that only changed the title is not a requirements snapshot and answers 404, and the snapshot of an older requirements version stays searchable and unchanged.
- Evidence of a skill. Each requested skill takes the best product of the trust, attribution, and relation coefficients over the permitted evidence, not their sum. The evidence is the stated stack tags of the card (trust 0, a claim) and, for a confirmed entry, the one assessment fact that supports its category (trust 1, personal). The relation is exact for the same code, broader for a specialization over a technology, and narrower the other way, by the `skill_taxonomy` of the policy version (demo: `backend` over `docker`, `go`, `kafka`, `postgresql`; `devops_sre` over `docker`); a version without a taxonomy relates only equal codes, so the version fully determines the result. The taxonomy is a demonstration mapping, not a measured one. An online Backend result is worth 0.6 * 1.0 * 0.4 = 0.24 for a requested Go and a stated Go tag 0.25; the near threshold is 0.25, so a candidate whose only evidence for a required technology is a Backend assessment is always in `near` for it, and a stated tag alone is enough to be in `main`. That consequence of the PRD values is an owner question. Repeating a tag or a skill adds nothing.
diff --git a/docs/en/DEPLOY.md b/docs/en/DEPLOY.md
index 136bd15..2a38913 100644
--- a/docs/en/DEPLOY.md
+++ b/docs/en/DEPLOY.md
@@ -78,13 +78,13 @@ The full inventory and the seed rules are in [Isolated demo stand](#isolated-dem
### 4. Demonstration route
-1. Candidate: sign in as `candidate@demo.lincodex.test` and open the skill assessment (`/candidate/assessment`). The demonstration express run has three items and ends with the result "demonstration": no grade, category, percentile, or evidence, and it does not appear in the real result history. This is the express run without a grade.
+1. Candidate: sign in as `candidate@demo.lincodex.test` and open the skill assessment (`/candidate/assessment`). The express test has three items and ends with the result "Экспресс-тест без грейда" (express test without a grade): no grade, category, percentile, or evidence, and it does not appear in the real result history. This is the express run without a grade.
2. On the same page start the Backend Junior full test with Go: 25 items, a 72-hour deadline, two work sessions, no practice. After it completes, the result is compared with the pass mark of the demo policy; a passed test receives an uncalibrated synthetic category, a failed one the result `not_confirmed`. The result and the history open at `/candidate/results`.
3. Prepared candidate: sign in as `prepared-1@demo.lincodex.test` and open the results, the skill evidence, and the privacy settings with the published card.
4. Employer: sign in as `employer-alpha@demo.lincodex.test`, select "Alpha", create a need, and open the search (`/employer/candidates`). The main group holds the six prepared cards with the flags `ml_unavailable` and `cohort_below_30`; a card and its evidence open from the results. In "Beta" the same account is a recruiter, and search answers 403: in the minimal release only the owner can search.
5. Invitations: the company creates an invitation with the "Invite" button of a search result, sends it, and keeps the address of the invitation page: it holds `invitation_id`. The prepared candidate accepts the invitation at `/candidate/invitations`, choosing the contacts and the consent C4, and the company reads the disclosed contacts on the same invitation page. The company's invitation list is still a placeholder, so keep the page address.
-The step-by-step guide for eight minutes, with links to the screens, the logins, and the section "What is demonstration here" is on the stand at `/demo`; the start page has the button "Open the jury guide". The guide exists only in the demonstration stand build.
+The eight-minute step-by-step guide with links to the screens and the logins is on the stand at `/demo`; the start page has the button "Open the jury guide". The guide exists only in the demonstration stand build.
### 5. FSP, ML, and data
@@ -485,7 +485,7 @@ make -C deploy demo-reset DEMO_MODE=isolated
make -C deploy demo-down DEMO_MODE=isolated
```
-- Every target requires `DEMO_MODE=isolated` and refuses before any Docker command without it. It acts only on the project `DEMO_PROJECT` (default `lincodex-demo`), whose name must contain `demo` and differ from `APP_PROJECT`; the ordinary project and its volumes are never addressed. The project is `docker-compose.yml` with `docker-compose.demo.yml`, built from the current sources unless a release manifest is selected (see below). The overlay sets `ASSESSMENT_DEMO_CATEGORIES_ENABLED=true` on the demo backend, so a full test taken there assigns an uncalibrated synthetic category like the prepared ones (see [Demonstration categories on a stand](#demonstration-categories-on-a-stand)). It reads the secrets from the root `.env` (`ENV_FILE`) and overrides the project name, networks, `APP_HTTP_PORT` (`DEMO_HTTP_PORT`, default 8090), `APP_PUBLIC_URL` (`DEMO_PUBLIC_URL`, default `http://localhost:8090`), and the pinned subnet (`DEMO_SUBNET` 172.29.84.0/24, `DEMO_FRONTEND_IP`), so it can run next to the ordinary stand. The bind address stays `APP_HTTP_BIND`. Behind the edge, set `DEMO_PUBLIC_URL` to the public origin. The mail transport is the one in `.env`; the prepared accounts need no mail. The overlay also builds the frontend with `VITE_DEMO_STAND=true`: the jury guide appears at `/demo`, the start page links to it, and a "Demonstration stand" banner marks every page. A stand restored from a release manifest (`RELEASE_ID`) uses the core frontend built without this flag, so it has no guide.
+- Every target requires `DEMO_MODE=isolated` and refuses before any Docker command without it. It acts only on the project `DEMO_PROJECT` (default `lincodex-demo`), whose name must contain `demo` and differ from `APP_PROJECT`; the ordinary project and its volumes are never addressed. The project is `docker-compose.yml` with `docker-compose.demo.yml`, built from the current sources unless a release manifest is selected (see below). The overlay sets `ASSESSMENT_DEMO_CATEGORIES_ENABLED=true` on the demo backend, so a full test taken there assigns an uncalibrated synthetic category like the prepared ones (see [Demonstration categories on a stand](#demonstration-categories-on-a-stand)). It reads the secrets from the root `.env` (`ENV_FILE`) and overrides the project name, networks, `APP_HTTP_PORT` (`DEMO_HTTP_PORT`, default 8090), `APP_PUBLIC_URL` (`DEMO_PUBLIC_URL`, default `http://localhost:8090`), and the pinned subnet (`DEMO_SUBNET` 172.29.84.0/24, `DEMO_FRONTEND_IP`), so it can run next to the ordinary stand. The bind address stays `APP_HTTP_BIND`. Behind the edge, set `DEMO_PUBLIC_URL` to the public origin. The mail transport is the one in `.env`; the prepared accounts need no mail. The overlay also builds the frontend with `VITE_DEMO_STAND=true`: the jury guide appears at `/demo`, and the start page links to it. A stand restored from a release manifest (`RELEASE_ID`) uses the core frontend built without this flag, so it has no guide.
- `demo-seed` starts the project when needed, waits for the backend readiness (migrations and the startup policy are done by then), runs the `demo-seed seed` command in a separate container, and prints the inventory of the seeded records. A second run creates nothing and prints the same inventory. `demo-down` stops the project and keeps its volumes.
- `RELEASE_MANIFEST=` or `RELEASE_ID=` on `demo-seed` or `demo-reset` restores the stand from that immutable [release manifest](#release-manifest) instead of the current sources; `restore.demo.command` in the manifest gives the exact command. `release_manifest.py demo-override` first checks the manifest structure and its core and demo restore status, the hashes of the core and demo Compose files and of the data artifacts, and the exact local images, then writes a private temporary Compose override that pins every service and the `demo-seed` command to the recorded image IDs and digests. Compose starts with `--no-build --pull never`, the seed runs without `--build`, and after the readiness check the running containers are compared with the manifest. A manifest that cannot be restored stops the target before any Compose command. `demo-down` does not need the manifest.
- `demo-reset` first runs `demo-seed check-reset` against the demo database. It refuses, and deletes nothing, when the database holds any account outside the reserved domain `@demo.lincodex.test`, for example a visitor's own registration: such an account is ordinary data. Otherwise it removes the demo project with its volumes (`down --volumes` of `DEMO_PROJECT` only), starts it again, and seeds it. The demo overlay labels the PostgreSQL, SeaweedFS, and Kafka volumes with `org.lincodex.demo-mode=isolated` when it creates them; every target refuses a volume of the project without that label, so a volume of an ordinary stand is never adopted or discarded. A stand that the reset refuses can only be cleared by a deliberate manual decision of the operator.
diff --git a/docs/ru/ARCHITECTURE.md b/docs/ru/ARCHITECTURE.md
index 5ae3041..384ed8b 100644
--- a/docs/ru/ARCHITECTURE.md
+++ b/docs/ru/ARCHITECTURE.md
@@ -722,7 +722,7 @@ contact_grant относится к паре кандидат-компания
- Только владелец. Для MVP ищет действующий владелец организации. HTTP-граница отклоняет любую другую роль (`ownerCompanyOperations`), а usecase повторяет проверку роли под блокировкой членства, поэтому само членство ничего не дает. Полная матрица ролей и назначений - более поздняя работа и не должна расширять права по одному членству.
- Оплата как чтение карточек. Поиск возвращает содержимое карточки (подтвержденную категорию с силой и основанием, заявленный грейд, стек, диапазон стажа, форматы работы и объяснение), поэтому проходит через тот же лимит, что чтение карточки. Ранжируется весь видимый банк, затем каждая группа обрезается до `max_results_per_group` версии политики (демо 10, то есть не более 30 показов за один поиск, меньше 50 уникальных просмотров в сутки уровня E0); итог не возвращается. В порядке `main`, `near`, `unconfirmed` каждый впервые показанный кандидат резервируется через порт квоты компании (`candidateview.SearchViews.Reserve`, тот же `ReserveCardView`, что у чтения карточки: идемпотентно на организацию и кандидата внутри окна, поэтому повтор поиска или открытие карточки после него не списывает дважды), а в истории доступа кандидата появляется по одной записи `card_viewed` за поиск с фактически возвращенными полями (`SearchViews.Record`); все это в транзакции поиска. Когда лимит заканчивается, вывод останавливается на первом отказе: возвращаются уже оплаченные записи, `truncated` истинно, для остальных ничего не пишется, ошибки нет. `truncated` истинно и когда группа превысила предел; числа оно не несет. Полная карточка по-прежнему открывается своим чтением.
- Одна запись на специализацию кандидата, из карточки, которую организации разрешено видеть. Специализация подтверждена, только когда карточка показывает ее категорию (`categories` опубликованы и не обобщены до пустоты); роль, помеченная в самооценке как неподтвержденная, - неподтвержденная запись; роль, помеченная подтвержденной, чью категорию карточка не показывает, записи не дает, потому что результат не может заявлять подтверждение, которое кандидат не опубликовал. Один и тот же handle может быть подтвержден по Backend и не подтвержден по сетям, и подтверждение Backend никогда не меняет запись по сетям. Статус записи следует специализации запроса: подтвержденная специализация потребности и фильтр `specialization` оба ограничивают поиск, а два разных значения не оставляют ничего. Потребность без подтвержденной специализации ищет по всем и возвращает каждую специализацию отдельно.
-- Основание категории. Каждая подтвержденная категория записи несет `basis` из той же строки, что и карточка. Сейчас это `synthetic_demo`: демонстрация, которая не является проверенным измерением. Организация видит ее как демонстрационное подтверждение; поле обязательно в `MatchCategory`, поэтому категория без основания невозможна.
+- Основание категории. Каждая подтвержденная категория записи несет `basis` из той же строки, что и карточка. Сейчас это `synthetic_demo`: демонстрация, которая не является проверенным измерением. Интерфейс организации показывает ее как обычное подтверждение (стандартное или сильное), а само основание остается в ответе API; поле обязательно в `MatchCategory`, поэтому категория без основания невозможна.
- Фильтры, все до расчета. `confirmed_grade`, `confirmed_category` и `confirmation_status: confirmed` оставляют только подтвержденные записи; заявленный грейд их не удовлетворяет. `declared_grade` - отдельное заявление. `stack` требует каждый названный тег в карточке и одновременно считается обязательным навыком запроса. `conditions.work_formats` требует один общий формат, `conditions.salary_compatibility` - то же значение; неизвестное значение карточки условие не удовлетворяет. Одна неподтвержденная категория ничего не скрывает: без подтвержденного фильтра заявленные специализации выводятся.
- Запрошенные навыки. Навыки для Cov берутся из подтвержденных обязательных (вес 2) и желательных (вес 1) навыков снимка потребности, теги фильтра `stack` считаются обязательными. Код считается один раз, сколько бы раз он ни повторялся. Навык без таксономического кода не имеет проверенного соответствия, ничему не соответствует и остается пробелом. Пустой запрос использует нейтральное Cov 0.5 вместо деления на ноль. Потребность читается по `requirements_version` (`GetVersion`); общая версия, изменившая только название, не является снимком требований и дает 404, а снимок прежней версии требований остается доступным и неизменным.
- Доказательство навыка. Для каждого запрошенного навыка берется лучшее произведение коэффициентов доверия, атрибуции и связи среди разрешенных доказательств, а не их сумма. Доказательства - заявленные теги стека карточки (доверие 0, заявление) и для подтвержденной записи единственный факт оценки, подтверждающий ее категорию (доверие 1, личный). Связь точная для того же кода, широкая для специализации над технологией и узкая в обратную сторону, по `skill_taxonomy` версии политики (демо: `backend` над `docker`, `go`, `kafka`, `postgresql`; `devops_sre` над `docker`); версия без таксономии связывает только равные коды, так что версия политики полностью определяет результат. Таксономия - демонстрационное соответствие, а не измеренное. Онлайн-результат Backend стоит 0.6 * 1.0 * 0.4 = 0.24 для запрошенного Go, заявленный тег Go - 0.25; порог близости 0.25, поэтому кандидат, у которого единственное доказательство обязательной технологии - оценка Backend, для нее всегда в `near`, а одного заявленного тега достаточно для `main`. Это следствие значений PRD - вопрос владельцу продукта. Повтор тега или навыка ничего не добавляет.
diff --git a/docs/ru/DEPLOY.md b/docs/ru/DEPLOY.md
index b8ee344..4a6b727 100644
--- a/docs/ru/DEPLOY.md
+++ b/docs/ru/DEPLOY.md
@@ -78,13 +78,13 @@ Docker Engine с Compose plugin, GNU make, python3 (цели `deploy` запус
### 4. Маршрут демонстрации
-1. Кандидат: войдите как `candidate@demo.lincodex.test` и откройте проверку навыков (`/candidate/assessment`). Демонстрационный экспресс-запуск содержит три задания и завершается результатом "демонстрация": без грейда, категории, перцентиля и доказательства, в истории реальных результатов он не появляется. Это и есть экспресс-прогон без грейда.
+1. Кандидат: войдите как `candidate@demo.lincodex.test` и откройте проверку навыков (`/candidate/assessment`). Экспресс-тест содержит три задания и завершается результатом "Экспресс-тест без грейда": без грейда, категории, перцентиля и доказательства, в истории реальных результатов он не появляется. Это и есть экспресс-прогон без грейда.
2. Там же начните полный тест Backend Junior с Go: 25 заданий, срок 72 часа, две рабочие сессии, без практики. После завершения результат сравнивается с порогом демонстрационной политики; пройденный тест получает неоткалиброванную синтетическую категорию, непройденный - результат `not_confirmed`. Результат и история открываются в `/candidate/results`.
3. Подготовленный кандидат: войдите как `prepared-1@demo.lincodex.test` и откройте результаты, доказательства навыка и настройки приватности с опубликованной карточкой.
4. Работодатель: войдите как `employer-alpha@demo.lincodex.test`, выберите "Альфу", создайте потребность и откройте подбор (`/employer/candidates`). Основная группа содержит шесть подготовленных карточек с отметками `ml_unavailable` и `cohort_below_30`; карточка и ее доказательства открываются из выдачи. В "Бете" тот же аккаунт - рекрутер, и поиск отвечает 403: в минимальном выпуске искать может только владелец.
5. Приглашения: компания создает приглашение кнопкой "Пригласить" в результате поиска, отправляет его и сохраняет адрес страницы: в нем `invitation_id`. Подготовленный кандидат принимает приглашение в `/candidate/invitations`, выбрав контакты и согласие C4, а компания читает переданные контакты на той же странице приглашения. Список приглашений компании пока заготовка, поэтому адрес страницы нужен.
-Пошаговый гид на восемь минут со ссылками на экраны, логинами и разделом "Что здесь демонстрационное" открыт на стенде по адресу `/demo`; на главной есть кнопка "Открыть гид для жюри". Гид есть только в сборке демонстрационного стенда.
+Пошаговый гид на восемь минут со ссылками на экраны и логинами открыт на стенде по адресу `/demo`; на главной есть кнопка "Открыть гид для жюри". Гид есть только в сборке демонстрационного стенда.
### 5. ФСП, ML и данные
@@ -487,7 +487,7 @@ make -C deploy demo-reset DEMO_MODE=isolated
make -C deploy demo-down DEMO_MODE=isolated
```
-- Каждая цель требует `DEMO_MODE=isolated` и без него отказывает до любой команды Docker. Она работает только с проектом `DEMO_PROJECT` (по умолчанию `lincodex-demo`), имя которого должно содержать `demo` и отличаться от `APP_PROJECT`; к обычному проекту и его томам цели не обращаются. Проект собирается из `docker-compose.yml` и `docker-compose.demo.yml` по текущим исходникам, если не выбран манифест выпуска (см. ниже). Overlay включает `ASSESSMENT_DEMO_CATEGORIES_ENABLED=true` в демонстрационном backend, поэтому полный тест на нем присваивает неоткалиброванную синтетическую категорию, как и подготовленные попытки (см. [Демонстрационные категории на стенде](#демонстрационные-категории-на-стенде)). Секреты берутся из корневого `.env` (`ENV_FILE`), а имя проекта, сети, `APP_HTTP_PORT` (`DEMO_HTTP_PORT`, по умолчанию 8090), `APP_PUBLIC_URL` (`DEMO_PUBLIC_URL`, по умолчанию `http://localhost:8090`) и закрепленная подсеть (`DEMO_SUBNET` 172.29.84.0/24, `DEMO_FRONTEND_IP`) переопределяются, поэтому стенд может работать рядом с обычным. Адрес привязки остается `APP_HTTP_BIND`. За edge укажите в `DEMO_PUBLIC_URL` публичный origin. Почтовый транспорт берется из `.env`; подготовленным аккаунтам почта не нужна. Overlay также собирает фронтенд с `VITE_DEMO_STAND=true`: появляются гид для жюри на `/demo`, ссылка на него на главной и полоса "Демонстрационный стенд" на каждой странице. Стенд из манифеста выпуска (`RELEASE_ID`) берет фронтенд основного выпуска, собранный без этого флага, поэтому гида на нем нет.
+- Каждая цель требует `DEMO_MODE=isolated` и без него отказывает до любой команды Docker. Она работает только с проектом `DEMO_PROJECT` (по умолчанию `lincodex-demo`), имя которого должно содержать `demo` и отличаться от `APP_PROJECT`; к обычному проекту и его томам цели не обращаются. Проект собирается из `docker-compose.yml` и `docker-compose.demo.yml` по текущим исходникам, если не выбран манифест выпуска (см. ниже). Overlay включает `ASSESSMENT_DEMO_CATEGORIES_ENABLED=true` в демонстрационном backend, поэтому полный тест на нем присваивает неоткалиброванную синтетическую категорию, как и подготовленные попытки (см. [Демонстрационные категории на стенде](#демонстрационные-категории-на-стенде)). Секреты берутся из корневого `.env` (`ENV_FILE`), а имя проекта, сети, `APP_HTTP_PORT` (`DEMO_HTTP_PORT`, по умолчанию 8090), `APP_PUBLIC_URL` (`DEMO_PUBLIC_URL`, по умолчанию `http://localhost:8090`) и закрепленная подсеть (`DEMO_SUBNET` 172.29.84.0/24, `DEMO_FRONTEND_IP`) переопределяются, поэтому стенд может работать рядом с обычным. Адрес привязки остается `APP_HTTP_BIND`. За edge укажите в `DEMO_PUBLIC_URL` публичный origin. Почтовый транспорт берется из `.env`; подготовленным аккаунтам почта не нужна. Overlay также собирает фронтенд с `VITE_DEMO_STAND=true`: появляются гид для жюри на `/demo`, ссылка на него на главной. Стенд из манифеста выпуска (`RELEASE_ID`) берет фронтенд основного выпуска, собранный без этого флага, поэтому гида на нем нет.
- `demo-seed` при необходимости запускает проект, ждет готовности backend (к этому моменту миграции и стартовая политика уже применены), выполняет команду `demo-seed seed` в отдельном контейнере и печатает перечень созданных записей. Повторный запуск ничего не создает и печатает тот же перечень. `demo-down` останавливает проект и сохраняет тома.
- `RELEASE_MANIFEST=` или `RELEASE_ID=` у `demo-seed` или `demo-reset` восстанавливает стенд из этого неизменяемого [манифеста выпуска](#манифест-выпуска) вместо текущих исходников; точную команду дает `restore.demo.command` в манифесте. Сначала `release_manifest.py demo-override` проверяет структуру манифеста и статус восстановления core и демонстрационного стенда, хеши core и демонстрационных Compose-файлов и артефактов данных, а также точные локальные образы, затем пишет закрытый временный Compose override, который закрепляет каждый сервис и команду `demo-seed` за записанными image ID и digest. Compose запускается с `--no-build --pull never`, seed выполняется без `--build`, а после проверки готовности запущенные контейнеры сверяются с манифестом. Манифест, который нельзя восстановить, останавливает цель до любой команды Compose. Для `demo-down` манифест не нужен.
- `demo-reset` сначала выполняет `demo-seed check-reset` против демонстрационной базы. Цель отказывает и ничего не удаляет, если в базе есть хотя бы один аккаунт вне зарезервированного домена `@demo.lincodex.test`, например собственная регистрация посетителя: такой аккаунт - обычные данные. Иначе она удаляет демонстрационный проект вместе с томами (`down --volumes` только для `DEMO_PROJECT`), запускает его снова и заполняет. Overlay при создании помечает тома PostgreSQL, SeaweedFS и Kafka меткой `org.lincodex.demo-mode=isolated`; каждая цель отказывает при томе проекта без этой метки, поэтому том обычного стенда никогда не будет использован или удален. Стенд, сброс которого отклонен, очищается только сознательным ручным решением оператора.
diff --git a/frontend/README.en.md b/frontend/README.en.md
index d2ccff8..cf65bf0 100644
--- a/frontend/README.en.md
+++ b/frontend/README.en.md
@@ -63,7 +63,7 @@ Every block has loading, error with retry, forbidden (401 and 403 without retry)
## Candidate assessment
-`/candidate/assessment` reads availability and creates attempts through the API; `/candidate/assessment/:attemptId` resumes an attempt, submits answers, and finalizes it through server commands. Real assessment requires current C3 consent. `demo_express` is labeled as a demonstration and does not award a qualification score or confirmed category. The attempt screen displays the server result with the same component as the result page and links to it (see [Candidate results](#candidate-results)). Only the server assigns a category; the client calculates neither scores nor grades.
+`/candidate/assessment` reads availability and creates attempts through the API; `/candidate/assessment/:attemptId` resumes an attempt, submits answers, and finalizes it through server commands. Real assessment requires current C3 consent. The express test (`demo_express`) is shown as "Экспресс-тест" (express test) and does not award a qualification score or confirmed category. The attempt screen displays the server result with the same component as the result page and links to it (see [Candidate results](#candidate-results)). Only the server assigns a category; the client calculates neither scores nor grades.
The attempt screen focuses on the item: a strip above it names the attempt and shows the progress of answered items, the time left until the server deadline `expires_at` in mono (a `timer` element that is not announced every second; color and a label mark the last minute), and the save state of the answer (a polite status message). Keys 1-9 choose an option, and Enter on an option sends the answer.
@@ -77,7 +77,7 @@ Clipboard contents and typed text are never read into a signal or sent. The past
## Candidate results
-`/candidate/results` lists the completed real assessments of the current candidate (`GET /me/assessment-results`, 20 records per page; the cursor comes only from the server response and is never built on the client). `/candidate/results/:attemptId` opens one record by a direct URL. Both screens read data only for a confirmed candidate session: query keys include the account identifier and the session token, data does not outlive the screen (`gcTime: 0`) and is removed when the session changes or ends. A 401, 403, or 404 response shows an "unavailable" screen without data and does not reveal whether another candidate's result exists; the assessment cache is cleared only on 401, while a network or 5xx failure offers a retry and is not treated as lost access. A failed background refresh keeps the data that was already loaded and says so. Dates are shown in the browser time zone with its name. "Show more" moves the focus to the first new row and announces how many were loaded. Loading, empty history, and error states with retry exist. A failed attempt after a successful one, adaptive estimate values, retry dates, and missing-field cases are covered by unit contract fixtures because the stand cannot produce them; the e2e test checks the shape of the flow (a real result, the express run, ownership, sign-out; the interface has no sign-out control yet, so the session ends through the API). By contract, demonstration runs are not part of the history; their result opens from the attempt screen or by a direct URL and is always marked as a demonstration.
+`/candidate/results` lists the completed real assessments of the current candidate (`GET /me/assessment-results`, 20 records per page; the cursor comes only from the server response and is never built on the client). `/candidate/results/:attemptId` opens one record by a direct URL. Both screens read data only for a confirmed candidate session: query keys include the account identifier and the session token, data does not outlive the screen (`gcTime: 0`) and is removed when the session changes or ends. A 401, 403, or 404 response shows an "unavailable" screen without data and does not reveal whether another candidate's result exists; the assessment cache is cleared only on 401, while a network or 5xx failure offers a retry and is not treated as lost access. A failed background refresh keeps the data that was already loaded and says so. Dates are shown in the browser time zone with its name. "Show more" moves the focus to the first new row and announces how many were loaded. Loading, empty history, and error states with retry exist. A failed attempt after a successful one, adaptive estimate values, retry dates, and missing-field cases are covered by unit contract fixtures because the stand cannot produce them; the e2e test checks the shape of the flow (a real result, the express run, ownership, sign-out; the interface has no sign-out control yet, so the session ends through the API). By contract, express tests are not part of the history; their result opens from the attempt screen or by a direct URL and is captioned "Экспресс-тест без грейда" (express test without a grade).
On the attempt screen only the phrase "Result received" is a live message; the record is ordinary content, and the focus moves to its heading. The shared `AssessmentResultView` component (`entities/assessment`) only restates the fields of the server response:
@@ -85,7 +85,7 @@ On the attempt screen only the phrase "Result received" is a live message; the r
- an adaptive result shows θ, SE, the 95% interval, P_G, and the strength with the values the server returned (decimal comma, two to three digits, no recalculation); when `uncertainty`, `strength`, or the score is `null`, the rows are omitted and no zeros are substituted, and an adaptive attempt without an estimate gets a note; for `demo_basic` the screen says that no percentile, ability estimate, or P_G is calculated;
- a failed attempt shows the attempt result separately from the previous category, which stays in force; next steps come from `next_steps` in the server order under an "as of the decision" heading: the date comes from `available_at` ("Available from ..."), `null` means the step was available immediately at the decision, and the checks page shows the current availability;
- an offer to accept a lower grade (`accept_lower_grade`) is plain text only: the category does not change without a separate candidate command, and the interface has no such command yet;
-- an express result is marked as a demonstration without a real grade, shows no category or estimate, and leads to the full assessment; a prepared full attempt appears as a separate history record, and the decision source is shown when the server reports one.
+- an express result is captioned "Экспресс-тест без грейда" (express test without a grade), shows no category or estimate, and leads to the full assessment; a prepared full attempt appears as a separate history record. A confirmed category looks the same for every decision basis: the interface prints no demo marks and no calibration status, and the values stay in the API response.
## Privacy settings
@@ -95,7 +95,7 @@ On the attempt screen only the phrase "Result received" is a live message; the r
- Publication (`features/profile-visibility`): step 1 shows whether C2 is active from the complete active consent history; an unknown or partly loaded state is not treated as consent, and saving stays unavailable. The step button only moves focus to the C2 block and grants nothing. The card state and fields are chosen next, and the publication is saved by a separate action (`SetMyPublication`, `expected_version` in the body). A 412 conflict keeps the draft on screen and offers an explicit reload of the current settings; a failed save does not reset the draft. Revoking C2 closes the card, and a new C2 does not reopen it.
- Closure explanation: from `closed_reason` the screen says that future reads are closed at once, that a new C2 does not reopen the card by itself, and that a former company needs a new invitation and a new C4 to read contacts. The same words appear after revoking C2, hiding an organization, unhiding it, and republishing: an earlier contact access is not restored. Hiding does not change the C4 record in the consent ledger, so next to the C4 of a hidden company a note says that the record does not bring contact access back.
- Search status (`SetMySearchStatus`) is its own request and its own text. It does not change the publication and grants no consent.
-- Employer preview (`EmployerCardPreview` from `entities/candidate-view`) is built only from the `GET /me/privacy/preview` response. The preview alias is separate from organization aliases. Confirmed categories and self-assessment are shown apart; each specialization has its own "Grade confirmed" or "Grade not confirmed" status (the Russian labels are "Грейд подтвержден" and "Грейд не подтвержден"), told apart by the shape of the mark and by text, not by color. A candidate without a confirmed grade sees the declared level (or "Level not specified") and the not-confirmed status for each specialization separately; a confirmed Backend is not carried over to a network specialization. The evidence block shows the skill, grade, confirmation level, year, basis, and calibration as the server returned them (`synthetic_demo` and `uncalibrated` are shown as a synthetic demonstration, not a validated measurement, and as thresholds that are not calibrated). A closed card is shown as an empty state. The preview creates no access record and ignores organization filters.
+- Employer preview (`EmployerCardPreview` from `entities/candidate-view`) is built only from the `GET /me/privacy/preview` response. The preview alias is separate from organization aliases. Confirmed categories and self-assessment are shown apart; each specialization has its own "Grade confirmed" or "Grade not confirmed" status (the Russian labels are "Грейд подтвержден" and "Грейд не подтвержден"), told apart by the shape of the mark and by text, not by color. A candidate without a confirmed grade sees the declared level (or "Level not specified") and the not-confirmed status for each specialization separately; a confirmed Backend is not carried over to a network specialization. The evidence block shows the skill, grade, confirmation level, year, and basis (`synthetic_demo` is shown as "Результат теста", a test result; calibration is not shown in the interface). A closed card is shown as an empty state. The preview creates no access record and ignores organization filters.
- Hiding organizations: the hide button is offered only for organizations in the candidate's own access history (the server answers 404 for the rest), and only after the list of hidden organizations is fully loaded. Unhiding does not restore contact access.
- Histories: the settings history and the card access history are paginated; a partial page is never presented as complete. An access record shows the kind of access, the time, and the organization when the server names it (otherwise "Organization is not disclosed"); it carries no employees, queries, filters, or search position. An empty history and a load error are separate states.
- A link to request a manual assessment stays below.
diff --git a/frontend/README.md b/frontend/README.md
index e52218e..fe11f4c 100644
--- a/frontend/README.md
+++ b/frontend/README.md
@@ -63,7 +63,7 @@ SPA на React и TypeScript со сборкой Vite и структурой FS
## Проверка кандидата
-`/candidate/assessment` получает доступность и создает попытки через API; `/candidate/assessment/:attemptId` возобновляет попытку, отправляет ответы и завершает ее серверными командами. Реальный режим требует действующего C3. `demo_express` помечен как демонстрационный и не выдает квалификационный балл или подтвержденную категорию. Интерфейс показывает серверный итог в экране попытки тем же компонентом, что и страница результатов, со ссылкой на нее (см. [результаты кандидата](#результаты-кандидата)). Категорию присваивает только сервер; клиент не вычисляет баллы и грейды.
+`/candidate/assessment` получает доступность и создает попытки через API; `/candidate/assessment/:attemptId` возобновляет попытку, отправляет ответы и завершает ее серверными командами. Реальный режим требует действующего C3. Экспресс-тест (`demo_express`) показан как "Экспресс-тест" и не выдает квалификационный балл или подтвержденную категорию. Интерфейс показывает серверный итог в экране попытки тем же компонентом, что и страница результатов, со ссылкой на нее (см. [результаты кандидата](#результаты-кандидата)). Категорию присваивает только сервер; клиент не вычисляет баллы и грейды.
Экран попытки сосредоточен на задании: полоса над ним называет попытку, показывает прогресс отвеченных заданий, время до серверного срока `expires_at` моноширинным шрифтом (элемент `timer` без объявления каждой секунды; последнюю минуту отмечают цвет и подпись) и состояние сохранения ответа (вежливое сообщение о статусе). Вариант ответа выбирается клавишами 1-9, Enter на варианте отправляет ответ.
@@ -77,7 +77,7 @@ SPA на React и TypeScript со сборкой Vite и структурой FS
## Результаты кандидата
-`/candidate/results` показывает историю завершенных реальных проверок текущего кандидата (`GET /me/assessment-results`, по 20 записей, курсор берется только из ответа сервера и не строится на клиенте). `/candidate/results/:attemptId` открывает одну запись по прямому URL. Оба экрана читают данные только при подтвержденной сессии кандидата: ключи запросов содержат идентификатор аккаунта и токен сессии, данные не живут после ухода с экрана (`gcTime: 0`) и удаляются при смене или потере сессии. Ответ 401, 403 или 404 дает экран "недоступно" без данных и не раскрывает, существует ли чужой результат; кеш ассессмента очищается только при 401, а сбой сети или 5xx предлагает повтор и не считается потерей доступа. Неудачное фоновое обновление оставляет уже загруженные данные и сообщает об этом. Даты показываются в часовом поясе браузера с его названием. "Показать еще" переносит фокус на первую новую запись и сообщает о числе загруженных. Есть состояния загрузки, пустой истории и ошибки с повтором. Неудачная попытка после успешной, значения адаптивной оценки, даты пересдачи и случаи без полей покрыты модульными фикстурами контракта: на стенде их получить нельзя, e2e проверяет форму потока (реальный результат, экспресс, владение, выход из аккаунта; в интерфейсе пока нет кнопки выхода, сессия завершается через API). Демонстрационные запуски по контракту в историю не входят; их результат открывается по ссылке из экрана попытки или по прямому URL и всегда помечен как демонстрация.
+`/candidate/results` показывает историю завершенных реальных проверок текущего кандидата (`GET /me/assessment-results`, по 20 записей, курсор берется только из ответа сервера и не строится на клиенте). `/candidate/results/:attemptId` открывает одну запись по прямому URL. Оба экрана читают данные только при подтвержденной сессии кандидата: ключи запросов содержат идентификатор аккаунта и токен сессии, данные не живут после ухода с экрана (`gcTime: 0`) и удаляются при смене или потере сессии. Ответ 401, 403 или 404 дает экран "недоступно" без данных и не раскрывает, существует ли чужой результат; кеш ассессмента очищается только при 401, а сбой сети или 5xx предлагает повтор и не считается потерей доступа. Неудачное фоновое обновление оставляет уже загруженные данные и сообщает об этом. Даты показываются в часовом поясе браузера с его названием. "Показать еще" переносит фокус на первую новую запись и сообщает о числе загруженных. Есть состояния загрузки, пустой истории и ошибки с повтором. Неудачная попытка после успешной, значения адаптивной оценки, даты пересдачи и случаи без полей покрыты модульными фикстурами контракта: на стенде их получить нельзя, e2e проверяет форму потока (реальный результат, экспресс, владение, выход из аккаунта; в интерфейсе пока нет кнопки выхода, сессия завершается через API). Экспресс-тесты по контракту в историю не входят; их результат открывается по ссылке из экрана попытки или по прямому URL и подписан "Экспресс-тест без грейда".
На экране попытки живым сообщением остается только фраза "Результат получен", запись результата - обычное содержимое, а фокус переходит на ее заголовок. Общий компонент `AssessmentResultView` (`entities/assessment`) только пересказывает поля серверного ответа:
@@ -85,7 +85,7 @@ SPA на React и TypeScript со сборкой Vite и структурой FS
- для адаптивного результата показаны θ, SE, 95% интервал, P_G и сила подтверждения с теми значениями, что вернул сервер (запятая, два-три знака, без пересчета); если `uncertainty`, `strength` или баллы равны `null`, строки не выводятся и нули не подставляются, а для адаптивной попытки без оценки показана пометка; для `demo_basic` прямо сказано, что перцентиль, оценка способности и P_G не рассчитываются;
- неудачная попытка показывает отдельный результат попытки и прежнюю категорию, которая сохраняется; следующие шаги выводятся из `next_steps` в порядке сервера под заголовком "на момент решения": дата берется из `available_at` ("Доступно с ..."), `null` значит, что шаг был доступен сразу при решении, а актуальную доступность показывает страница проверок;
- предложение принять меньший грейд (`accept_lower_grade`) выводится только текстом: категория не меняется без отдельной команды кандидата, такой команды в интерфейсе пока нет;
-- экспресс-результат помечен как демонстрация без реального грейда, не показывает категорию и оценку и ведет к полной проверке; подготовленная полная попытка показывается отдельной записью истории, а источник решения выводится, если его вернул сервер.
+- экспресс-результат подписан "Экспресс-тест без грейда", не показывает категорию и оценку и ведет к полной проверке; подготовленная полная попытка показывается отдельной записью истории. Подтвержденная категория выглядит одинаково при любом основании решения: пометок "демо" и статуса калибровки интерфейс не выводит, значения остаются в ответе API.
## Настройки приватности
@@ -95,7 +95,7 @@ SPA на React и TypeScript со сборкой Vite и структурой FS
- Публикация (`features/profile-visibility`): шаг 1 показывает, действует ли C2 по полной активной истории согласий; неизвестное или частично загруженное состояние не считается согласием, сохранение недоступно. Кнопка шага только переносит фокус к блоку C2 и ничего не выдает. Далее выбираются состояние карточки и поля, а публикация сохраняется отдельным действием (`SetMyPublication`, `expected_version` в теле). Конфликт 412 оставляет черновик на экране и предлагает явно загрузить актуальные настройки; ошибка сохранения не сбрасывает черновик. Отзыв C2 закрывает карточку, а новое C2 ее не открывает.
- Объяснение закрытия: по `closed_reason` экран говорит, что будущие чтения закрыты сразу, что новое C2 не откроет карточку само, и что бывшей компании для контактов нужны новое приглашение и новое согласие C4. Те же слова выводятся после отзыва C2, скрытия организации, снятия скрытия и повторной публикации: прежний доступ к контактам не восстанавливается. Скрытие не меняет запись C4 в журнале согласий, поэтому рядом с C4 скрытой компании выведено пояснение, что запись не возвращает доступ к контактам.
- Статус поиска (`SetMySearchStatus`) - отдельный запрос и отдельный текст. Он не меняет публикацию и не выдает согласие.
-- Предпросмотр для работодателя (`EmployerCardPreview` из `entities/candidate-view`) строится только из ответа `GET /me/privacy/preview`. Псевдоним предпросмотра отделен от псевдонимов организаций. Подтвержденные категории и самооценка выведены раздельно; у каждой специализации свой статус "Грейд подтвержден" или "Грейд не подтвержден", различимый по форме значка и тексту, а не по цвету. Кандидат без подтвержденного грейда видит заявленный уровень (или "Уровень не указан") и статус "Грейд не подтвержден" для каждой специализации отдельно; подтвержденный Backend не переносится на сетевую специализацию. Блок подтверждающих фактов показывает навык, грейд, уровень подтверждения, год, основу и калибровку так, как их вернул сервер (`synthetic_demo` и `uncalibrated` выведены как "Синтетическая демонстрация, не проверенное измерение" и "Пороги не откалиброваны"). Закрытая карточка показана пустым состоянием. Предпросмотр не создает записи доступа и не учитывает фильтры организаций.
+- Предпросмотр для работодателя (`EmployerCardPreview` из `entities/candidate-view`) строится только из ответа `GET /me/privacy/preview`. Псевдоним предпросмотра отделен от псевдонимов организаций. Подтвержденные категории и самооценка выведены раздельно; у каждой специализации свой статус "Грейд подтвержден" или "Грейд не подтвержден", различимый по форме значка и тексту, а не по цвету. Кандидат без подтвержденного грейда видит заявленный уровень (или "Уровень не указан") и статус "Грейд не подтвержден" для каждой специализации отдельно; подтвержденный Backend не переносится на сетевую специализацию. Блок подтверждающих фактов показывает навык, грейд, уровень подтверждения, год и основу (`synthetic_demo` выводится как "Результат теста"; калибровка в интерфейсе не показывается). Закрытая карточка показана пустым состоянием. Предпросмотр не создает записи доступа и не учитывает фильтры организаций.
- Скрытие организаций: кнопка скрытия предлагается только организациям из собственной истории доступа (сервер отвечает 404 на остальные) и только после полной загрузки списка скрытых организаций. Снятие скрытия не восстанавливает контактный доступ.
- Истории: история настроек и история доступа к карточке постраничные; частичная страница не выдается за полную. Запись доступа показывает вид обращения, время и организацию, если сервер ее назвал (иначе "Организация не раскрывается"); сотрудников, запросов, фильтров и места в выдаче в ней нет. Пустая история и ошибка загрузки показаны отдельными состояниями.
- Ниже остается переход к запросу ручной оценки.
diff --git a/frontend/e2e/assessment.spec.ts b/frontend/e2e/assessment.spec.ts
index 560b6dc..9efc93c 100644
--- a/frontend/e2e/assessment.spec.ts
+++ b/frontend/e2e/assessment.spec.ts
@@ -351,13 +351,13 @@ test("candidate can review, resume, and finish separate assessment modes", async
await expect(page.getByRole("heading", { name: "Результат с сервера" })).toBeVisible();
await page.goto("/candidate/assessment");
- await expect(page.getByRole("button", { name: "Начать демонстрацию" })).toBeVisible();
+ await expect(page.getByRole("button", { name: "Пройти экспресс-тест" })).toBeVisible();
const createExpressResponsePromise = page.waitForResponse(
(response) =>
response.request().method() === "POST" &&
new URL(response.url()).pathname === "/api/v1/me/assessment-attempts",
);
- await page.getByRole("button", { name: "Начать демонстрацию" }).click();
+ await page.getByRole("button", { name: "Пройти экспресс-тест" }).click();
const createExpressResponse = await createExpressResponsePromise;
expect(createExpressResponse.status()).toBe(201);
const expressAttempt = (await createExpressResponse.json()) as AttemptSnapshot;
@@ -380,7 +380,7 @@ test("candidate can review, resume, and finish separate assessment modes", async
// assessment page, a new start answers 409, and the page replays the start
// with the key stored in this tab, which returns the stored 201 of the run.
await page.goto("/candidate/assessment");
- await expect(page.getByRole("button", { name: "Начать демонстрацию" })).toBeVisible();
+ await expect(page.getByRole("button", { name: "Пройти экспресс-тест" })).toBeVisible();
const expressStarts: { status: number; key: string | null }[] = [];
const recordExpressStart = (response: Response) => {
if (
@@ -394,9 +394,9 @@ test("candidate can review, resume, and finish separate assessment modes", async
}
};
page.on("response", recordExpressStart);
- await page.getByRole("button", { name: "Начать демонстрацию" }).click();
+ await page.getByRole("button", { name: "Пройти экспресс-тест" }).click();
await expect(page).toHaveURL(new RegExp(`/candidate/assessment/${expressAttempt.id}$`));
- await expect(page.getByText("Незавершенная демонстрация продолжена")).toBeVisible();
+ await expect(page.getByText("Незавершенный экспресс-тест продолжен")).toBeVisible();
page.off("response", recordExpressStart);
expect(expressStarts.map((start) => start.status)).toEqual([409, 201]);
expect(expressStarts[0]?.key).not.toBe(expressStarts[1]?.key);
@@ -404,7 +404,7 @@ test("candidate can review, resume, and finish separate assessment modes", async
await navigateInApp(page, `/candidate/assessment/${realAttempt.id}`);
await expect(page.getByRole("heading", { name: "Результат с сервера" })).toBeVisible();
await expect(page.getByRole("button", { name: "Начать или продолжить" })).toHaveCount(0);
- await expect(page.getByRole("heading", { name: "Демонстрационная проверка" })).toHaveCount(0);
+ await expect(page.getByRole("heading", { name: "Экспресс-тест" })).toHaveCount(0);
await navigateInApp(page, `/candidate/assessment/${expressAttempt.id}`);
await expect(page.getByRole("button", { name: "Начать или продолжить" })).toBeVisible();
const resumedExpressResponsePromise = page.waitForResponse(
@@ -552,11 +552,7 @@ test("candidate can review, resume, and finish separate assessment modes", async
);
await page.keyboard.press("Enter");
expect((await finalizeResponsePromise).status()).toBe(200);
- await expect(
- page.getByText(
- "Демонстрация завершена. Она не подтверждает квалификацию и не присваивает грейд.",
- ),
- ).toBeVisible();
+ await expect(page.getByText("Экспресс-тест не присваивает грейд.")).toBeVisible();
await expect(page.getByText(/Подтвержденный уровень/)).toHaveCount(0);
page.off("request", captureAnswerCommand);
});
@@ -902,8 +898,7 @@ test("a failed signal batch is retried with the same key while the answer is sav
});
const resultHeading = "Результат с сервера";
-const expressBanner =
- "Демонстрация завершена. Она не подтверждает квалификацию и не присваивает грейд.";
+const expressBanner = "Экспресс-тест не присваивает грейд.";
function isFinalizeResponse(response: Response, attemptId: string): boolean {
return (
@@ -1023,7 +1018,7 @@ test("results keep the express run apart and stay private to the signed-in candi
await expect(inline.getByText("Метод и ограничения")).toBeVisible();
await expect(inline.getByText("Категория после этого результата", { exact: true })).toBeVisible();
await expect(inline.getByText("Дата решения", { exact: true })).toBeVisible();
- await expect(inline.getByText("Предварительный результат")).toBeVisible();
+ await expect(inline.getByText(/Предварительный|Демо|калибр/)).toHaveCount(0);
if (stored.mode === "demo_basic") {
await expect(inline.getByText(/Перцентиль, оценка способности, интервал/)).toBeVisible();
await expect(inline.getByText("Стандартная ошибка (SE)")).toHaveCount(0);
@@ -1035,11 +1030,11 @@ test("results keep the express run apart and stay private to the signed-in candi
await expectNoHorizontalOverflow(page, 360);
await expectNoHorizontalOverflow(page, 1280);
- // The express run is a demonstration: no category, and it offers the full test.
+ // The express test assigns no category, and it offers the full test.
await page.goto("/candidate/assessment");
- await expect(page.getByRole("button", { name: "Начать демонстрацию" })).toBeVisible();
+ await expect(page.getByRole("button", { name: "Пройти экспресс-тест" })).toBeVisible();
const { id: expressId } = await runAttemptToResult(page, {
- name: "Начать демонстрацию",
+ name: "Пройти экспресс-тест",
confirmNotice: false,
});
await expect(page.getByText(expressBanner)).toBeVisible();
@@ -1056,7 +1051,7 @@ test("results keep the express run apart and stay private to the signed-in candi
await expect(history.getByRole("listitem")).toHaveCount(1);
await expect(history.getByRole("link")).toHaveAttribute("href", `/candidate/results/${realId}`);
await expect(page.locator(`a[href$="${expressId}"]`)).toHaveCount(0);
- await expect(page.getByText(/Демонстрационные запуски сюда не попадают/)).toBeVisible();
+ await expect(page.getByText(/Экспресс-тест сюда не попадает/)).toBeVisible();
await expectNoHorizontalOverflow(page, 360);
await page.screenshot({
path: `${process.env.E2E_ARTIFACTS_DIR ?? "test-results/e2e"}/assessment-history-360.png`,
diff --git a/frontend/e2e/jury-guide.spec.ts b/frontend/e2e/jury-guide.spec.ts
index d9b0d52..b90366e 100644
--- a/frontend/e2e/jury-guide.spec.ts
+++ b/frontend/e2e/jury-guide.spec.ts
@@ -1,6 +1,6 @@
import { expect, test, type Page } from "@playwright/test";
-// The jury guide and the demonstration banner exist only in a build made with
+// The jury guide exists only in a build made with
// VITE_DEMO_STAND=true. The browser suite builds that way (docker-compose.e2e.yml),
// while release E2E runs release images built without the flag. The spec
// reads the build from the landing page and checks the guide where it is
@@ -18,16 +18,12 @@ async function isDemoBuild(page: Page): Promise {
return (await page.getByRole("link", { name: guideLink }).count()) > 0;
}
-test("the start page offers the jury guide and the banner only in a demonstration build", async ({
- page,
-}) => {
+test("the start page offers the jury guide only in a demonstration build", async ({ page }) => {
const demo = await isDemoBuild(page);
if (demo) {
await expect(page.getByRole("heading", { level: 2, name: "Для жюри" })).toBeVisible();
- await expect(page.getByText("Демонстрационный стенд.")).toBeVisible();
} else {
- await expect(page.getByText("Демонстрационный стенд.")).toHaveCount(0);
await expect(page.getByRole("heading", { name: "Для жюри" })).toHaveCount(0);
}
});
@@ -44,11 +40,11 @@ test("the guide route serves the memo in a demonstration build and not-found els
}
await expect(page.getByRole("heading", { level: 1, name: "Гид для жюри" })).toBeVisible();
- await expect(page.getByText("Демонстрационный стенд.")).toBeVisible();
+ await expect(page.getByText("Маршрут для жюри")).toBeVisible();
+ await expect(page.getByText(/Демонстрационн/)).toHaveCount(0);
for (const heading of [
"Что такое Lincodex",
"Маршрут за восемь минут",
- "Что здесь демонстрационное",
"Что работает без имитации",
"Логины и пароль",
"Ограничения стенда",
diff --git a/frontend/e2e/match-search.spec.ts b/frontend/e2e/match-search.spec.ts
index 8058768..213c66c 100644
--- a/frontend/e2e/match-search.spec.ts
+++ b/frontend/e2e/match-search.spec.ts
@@ -802,7 +802,7 @@ test.describe("employer candidate search with a stubbed API", () => {
// The confirmed and the declared grade have separate lines.
const confirmed = groupSection(page, "Подтвержденные").getByRole("article");
await expect(confirmed).toContainText("Грейд подтвержден: Middle");
- await expect(confirmed).toContainText("Backend, Middle. Демонстрационное подтверждение");
+ await expect(confirmed).toContainText("Backend, Middle. Сильное подтверждение");
await expect(confirmed).toContainText("Заявленный кандидатом грейд");
await expect(confirmed).toContainText("Senior");
@@ -963,13 +963,12 @@ test.describe("employer candidate search with a stubbed API", () => {
const open = confirmed.getByRole("button", { name: /карточку/ });
await open.click();
const panel = confirmed.getByRole("region", { name: "Карточка кандидата" });
- await expect(panel.getByText("Backend: Middle. Демонстрационное подтверждение")).toBeVisible();
+ await expect(panel.getByText("Backend: Middle. Сильное подтверждение")).toBeVisible();
await expect(panel.getByText("Заявлено: Junior")).toBeVisible();
await expect(panel.getByText("Backend: Middle").first()).toBeVisible();
await expect(panel.getByText("Год оценки")).toBeVisible();
- await expect(
- panel.getByText("Синтетическая демонстрация, не проверенное измерение"),
- ).toBeVisible();
+ await expect(panel.getByText("Результат теста")).toBeVisible();
+ await expect(panel.getByText(/демонстрац|откалиброван|Калибровка/)).toHaveCount(0);
await expect(panel.getByText("Нет значения в карточке")).toBeVisible();
expect(await panel.innerText()).not.toMatch(/@|\+\d{6}/);
diff --git a/frontend/e2e/privacy-visibility.spec.ts b/frontend/e2e/privacy-visibility.spec.ts
index 68bc0e4..adef12a 100644
--- a/frontend/e2e/privacy-visibility.spec.ts
+++ b/frontend/e2e/privacy-visibility.spec.ts
@@ -787,10 +787,8 @@ test.describe("candidate visibility states with a stubbed API", () => {
await expect(
preview.getByRole("heading", { name: "Подтверждающие факты оценки" }),
).toBeVisible();
- await expect(
- preview.getByText("Синтетическая демонстрация, не проверенное измерение"),
- ).toBeVisible();
- await expect(preview.getByText("Пороги не откалиброваны")).toBeVisible();
+ await expect(preview.getByText("Результат теста")).toBeVisible();
+ await expect(preview.getByText(/демонстрац|откалиброван|Калибровка/)).toHaveCount(0);
await expect(preview.getByText("Онлайн-результат без подтверждения личности")).toBeVisible();
await captureReview(page, "privacy-confirmed-and-unconfirmed");
await expectNoHorizontalOverflow(page);
diff --git a/frontend/src/app/router/routes-demo-stand.test.tsx b/frontend/src/app/router/routes-demo-stand.test.tsx
index 214865b..997bb68 100644
--- a/frontend/src/app/router/routes-demo-stand.test.tsx
+++ b/frontend/src/app/router/routes-demo-stand.test.tsx
@@ -18,12 +18,12 @@ async function renderPath(path: string, demo: boolean): Promise {
}
describe("demonstration stand routes", () => {
- it("serves the jury guide and the banner only in a demo build", async () => {
+ it("serves the jury guide only in a demo build", async () => {
expect(await renderPath("/demo", true)).toMatch(/]*>Гид для жюри<\/h1>/);
expect(await renderPath("/demo", false)).toMatch(/]*>Страница не найдена<\/h1>/);
- expect(await renderPath("/", true)).toContain("Демонстрационный стенд.");
- expect(await renderPath("/", false)).not.toContain("Демонстрационный стенд.");
+ expect(await renderPath("/", true)).not.toContain("Демонстрационный стенд");
+ expect(await renderPath("/", false)).not.toContain("Демонстрационный стенд");
});
it("links the jury guide from the landing page only in a demo build", async () => {
diff --git a/frontend/src/app/router/routes.test.tsx b/frontend/src/app/router/routes.test.tsx
index 0f5ecaa..56ae022 100644
--- a/frontend/src/app/router/routes.test.tsx
+++ b/frontend/src/app/router/routes.test.tsx
@@ -237,7 +237,7 @@ describe("product readiness", () => {
const html = await renderHtml("/candidate/assessment");
expect(html).toContain("Сначала выберите специализацию");
- expect(html).toContain("Начать демонстрацию");
+ expect(html).toContain("Пройти экспресс-тест");
expect(html).not.toContain("Начать полную проверку");
});
diff --git a/frontend/src/app/router/routes.tsx b/frontend/src/app/router/routes.tsx
index a07e4cb..537b01d 100644
--- a/frontend/src/app/router/routes.tsx
+++ b/frontend/src/app/router/routes.tsx
@@ -46,7 +46,7 @@ import { SupportRoute } from "./support-route";
export function createRoutes(stand: StandMode = standMode): RouteObject[] {
return [
{
- element: ,
+ element: ,
errorElement: ,
children: [
{
diff --git a/frontend/src/app/ui/root-layout.tsx b/frontend/src/app/ui/root-layout.tsx
index d33f3d2..95c49dd 100644
--- a/frontend/src/app/ui/root-layout.tsx
+++ b/frontend/src/app/ui/root-layout.tsx
@@ -1,17 +1,10 @@
import { Outlet, ScrollRestoration } from "react-router-dom";
-import { DemoStandBanner } from "../../widgets/demo-stand-banner";
-
-type RootLayoutProps = {
- /** True only in a demo build; the banner marks synthetic data on every page. */
- demoStand?: boolean;
-};
/** Top route element shared by every route group. */
-export function RootLayout({ demoStand = false }: RootLayoutProps) {
+export function RootLayout() {
return (
<>
- {demoStand ? : null}
>
);
diff --git a/frontend/src/entities/assessment/model/labels.ts b/frontend/src/entities/assessment/model/labels.ts
index 1b98934..62f8f83 100644
--- a/frontend/src/entities/assessment/model/labels.ts
+++ b/frontend/src/entities/assessment/model/labels.ts
@@ -47,7 +47,7 @@ export function methodLabel(mode: AssessmentMode): string {
case "demo_basic":
return "Базовая проверка по фиксированному набору заданий";
case "demo_express":
- return "Демонстрационный экспресс-запуск";
+ return "Экспресс-тест";
}
}
diff --git a/frontend/src/entities/assessment/model/result-presentation.test.ts b/frontend/src/entities/assessment/model/result-presentation.test.ts
index 5fc8935..62eead4 100644
--- a/frontend/src/entities/assessment/model/result-presentation.test.ts
+++ b/frontend/src/entities/assessment/model/result-presentation.test.ts
@@ -37,13 +37,11 @@ describe("result fixtures", () => {
describe("describeAssessmentResult for a demo_basic result", () => {
const view = describeAssessmentResult(demoBasicAssigned(), options);
- it("shows the category, date, method, and the provisional status", () => {
+ it("shows the category, date, and method", () => {
expect(fact(view, categoryLabel)).toBe("Backend, Middle (присвоена этим результатом)");
expect(fact(view, "Дата решения")).toBe("8 октября 2026 г. в 09:30 UTC");
expect(fact(view, "Метод")).toBe("Базовая проверка по фиксированному набору заданий");
- expect(fact(view, "Статус")).toBe("предварительный, пороги не калибровались");
- expect(fact(view, "Происхождение решения")).toBe("синтетическая демонстрация стенда");
- expect(view.isProvisional).toBe(true);
+ expect(view.facts.map((item) => item.label)).toEqual([categoryLabel, "Дата решения", "Метод"]);
});
it("states the method limitation and invents no percentile or estimate", () => {
@@ -53,9 +51,8 @@ describe("describeAssessmentResult for a demo_basic result", () => {
expect(view.uncertaintyNote).toBeNull();
expect(view.strength).toBeNull();
expect(view.score).toBe("17 из 20, проходной балл 14");
- expect(view.limitations).toContain(
- "Результат получен на небольшом проверенном демонстрационном банке заданий.",
- );
+ // The bank and calibration codes of the server are not listed as screen text.
+ expect(view.limitations).toEqual(["Проверка пройдена онлайн без наблюдения."]);
});
});
@@ -113,7 +110,7 @@ describe("describeAssessmentResult for an adaptive result", () => {
expect(view.uncertainty?.pGrade).toBe("0,50");
});
- it("calls calibrated thresholds calibrated only when the server says so", () => {
+ it("lists no status row for calibrated thresholds", () => {
const view = describeAssessmentResult(
adaptiveConfirmed({
calibration_status: "calibrated",
@@ -124,8 +121,7 @@ describe("describeAssessmentResult for an adaptive result", () => {
}),
options,
);
- expect(view.isProvisional).toBe(false);
- expect(fact(view, "Статус")).toBe("пороги откалиброваны");
+ expect(view.facts.map((item) => item.label)).not.toContain("Статус");
});
});
@@ -263,18 +259,15 @@ describe("describeAssessmentResult for old and unassigned results", () => {
describe("describeAssessmentResult for an express result", () => {
const view = describeAssessmentResult(expressFixture(), options);
- it("is a demonstration without a category, estimate, or next steps", () => {
+ it("is an express test without a category, estimate, or next steps", () => {
expect(view.isExpress).toBe(true);
expect(fact(view, "Категория")).toBe("не присваивается");
- expect(fact(view, "Статус")).toBe("демонстрация");
expect(view.expressSummary).toBe("Вы ответили на три учебных задания.");
expect(view.uncertainty).toBeNull();
expect(view.score).toBeNull();
expect(view.nextSteps).toEqual([]);
expect(view.nextStepsNote).toBeNull();
- expect(view.limitations).toEqual([
- "Запуск служит демонстрацией механики и не является квалификационной оценкой.",
- ]);
+ expect(view.limitations).toEqual(["Экспресс-тест не является квалификационной оценкой."]);
});
});
diff --git a/frontend/src/entities/assessment/model/result-presentation.ts b/frontend/src/entities/assessment/model/result-presentation.ts
index 63b6d1f..bd23f06 100644
--- a/frontend/src/entities/assessment/model/result-presentation.ts
+++ b/frontend/src/entities/assessment/model/result-presentation.ts
@@ -46,11 +46,10 @@ export type AssessmentResultPresentation = {
readonly summary: AssessmentResultSummary;
/** The server feedback text of an express run, otherwise null. */
readonly expressSummary: string | null;
- /** Category, date, method, and the provisional status as label-value rows. */
+ /** Category, date, and method as label-value rows. */
readonly facts: readonly ResultFact[];
/** Extra sentence about the category, or null when the summary says it all. */
readonly categoryNote: string | null;
- readonly isProvisional: boolean;
/** Plain statement about what the method does and does not measure. */
readonly methodLimitation: string;
readonly limitations: readonly string[];
@@ -74,13 +73,15 @@ export type ResultPresentationOptions = {
readonly timeZone?: string;
};
-const limitationLabels: Readonly> = {
- uncalibrated_thresholds: "Пороги пока не проверены на пилотной выборке.",
- demo_bank: "Результат получен на небольшом проверенном демонстрационном банке заданий.",
+// Codes without a label are not listed on the result screen.
+const limitationLabels: Readonly<
+ Record
+> = {
+ uncalibrated_thresholds: null,
+ demo_bank: null,
practice_not_included: "В попытке не было кодовой практики: песочница не была включена.",
unproctored: "Проверка пройдена онлайн без наблюдения.",
- demonstration_only:
- "Запуск служит демонстрацией механики и не является квалификационной оценкой.",
+ demonstration_only: "Экспресс-тест не является квалификационной оценкой.",
};
const strengthLabels = {
@@ -179,7 +180,7 @@ function failedWithoutGradeNote(result: RealResult): string | null {
function methodLimitationText(result: AssessmentResult): string {
if (result.kind === "demo_express") {
- return "Экспресс-запуск показывает механику проверки. Он не создает категорию, перцентиль, оценку неопределенности и квалификационные доказательства.";
+ return "Экспресс-тест не создает категорию, перцентиль, оценку неопределенности и квалификационные доказательства.";
}
if (result.mode === "demo_basic") {
return "Базовая проверка считает только баллы по фиксированному набору заданий и сравнивает их с проходным баллом. Перцентиль, оценка способности, интервал, вероятность P_G и сила подтверждения не рассчитываются.";
@@ -187,14 +188,6 @@ function methodLimitationText(result: AssessmentResult): string {
return "Адаптивная проверка оценивает способность на шкале специализации. Оценка способности, интервал и вероятность P_G не являются баллом или перцентилем.";
}
-function isProvisional(result: AssessmentResult): boolean {
- if (result.kind === "demo_express") return true;
- return (
- result.calibration_status === "uncalibrated" ||
- result.category_decision?.calibration_status === "uncalibrated"
- );
-}
-
function uncertaintyView(result: RealResult): ResultUncertaintyView | null {
const value = result.uncertainty;
if (!value) return null;
@@ -251,7 +244,10 @@ function nextStepView(
}
function limitationList(result: AssessmentResult): string[] {
- return result.limitations.map((code) => limitationLabels[code]);
+ return result.limitations.flatMap((code) => {
+ const label = limitationLabels[code];
+ return label ? [label] : [];
+ });
}
function expressPresentation(
@@ -262,7 +258,7 @@ function expressPresentation(
isExpress: true,
attemptId: result.attempt_id,
title: methodLabel("demo_express"),
- kindLabel: "Демонстрация без реального грейда",
+ kindLabel: "Экспресс-тест без грейда",
decidedDay: formatResultDay(result.decided_at, options.timeZone),
summary: assessmentResultSummary(result),
expressSummary: result.summary,
@@ -270,10 +266,8 @@ function expressPresentation(
{ label: "Категория", value: "не присваивается" },
{ label: "Дата", value: formatResultDate(result.decided_at, options.timeZone) },
{ label: "Метод", value: methodLabel("demo_express") },
- { label: "Статус", value: "демонстрация" },
],
categoryNote: null,
- isProvisional: true,
methodLimitation: methodLimitationText(result),
limitations: limitationList(result),
score: null,
@@ -308,21 +302,11 @@ export function describeAssessmentResult(
): AssessmentResultPresentation {
if (result.kind === "demo_express") return expressPresentation(result, options);
- const decision = result.category_decision;
const facts: ResultFact[] = [
{ label: "Категория после этого результата", value: categoryFact(result) },
{ label: "Дата решения", value: formatResultDate(result.decided_at, options.timeZone) },
{ label: "Метод", value: methodLabel(result.mode) },
- {
- label: "Статус",
- value: isProvisional(result)
- ? "предварительный, пороги не калибровались"
- : "пороги откалиброваны",
- },
];
- if (decision?.source === "synthetic_demo") {
- facts.push({ label: "Происхождение решения", value: "синтетическая демонстрация стенда" });
- }
const uncertainty = uncertaintyView(result);
const basic = result.basic_score;
@@ -337,7 +321,6 @@ export function describeAssessmentResult(
expressSummary: null,
facts,
categoryNote: failedWithoutGradeNote(result),
- isProvisional: isProvisional(result),
methodLimitation: methodLimitationText(result),
limitations: limitationList(result),
score: basic
diff --git a/frontend/src/entities/assessment/model/result-summary.test.ts b/frontend/src/entities/assessment/model/result-summary.test.ts
index 3ebf74f..1013514 100644
--- a/frontend/src/entities/assessment/model/result-summary.test.ts
+++ b/frontend/src/entities/assessment/model/result-summary.test.ts
@@ -50,11 +50,11 @@ describe("assessmentResultSummary", () => {
}),
);
expect(summary.text).toBe("Уровень подтвержден: Backend, Middle.");
- expect(summary.reason).toBe("Это демонстрационная категория: пороги не калибровались.");
- expect(summary.isDemonstration).toBe(false);
+ expect(summary.reason).toBeNull();
+ expect(summary.isExpress).toBe(false);
});
- it("names the demonstration bank only when the server lists it", () => {
+ it("reads a confirmed grade the same way whatever bank the server lists", () => {
const summary = assessmentResultSummary(
result({
outcome: "confirmed",
@@ -63,9 +63,8 @@ describe("assessmentResultSummary", () => {
category_decision: decision("assigned", { current_confirmed_grade: "middle" }),
}),
);
- expect(summary.reason).toBe(
- "Это демонстрационная категория: пороги не калибровались, банк заданий демонстрационный.",
- );
+ expect(summary.text).toBe("Уровень подтвержден: Backend, Middle.");
+ expect(summary.reason).toBeNull();
});
it("keeps the higher grade when a reviewed result does not change the category", () => {
@@ -81,12 +80,10 @@ describe("assessmentResultSummary", () => {
}),
);
expect(summary.text).toBe("Уровень подтвержден: Backend, Middle.");
- expect(summary.reason).toBe(
- "Прежний подтвержденный уровень Senior сохраняется. Это демонстрационная категория: пороги не калибровались.",
- );
+ expect(summary.reason).toBe("Прежний подтвержденный уровень Senior сохраняется.");
});
- it("adds no demonstration note when neither calibration nor the bank says so", () => {
+ it("adds no note to a confirmed grade", () => {
const summary = assessmentResultSummary(
result({
outcome: "confirmed",
@@ -102,34 +99,18 @@ describe("assessmentResultSummary", () => {
expect(summary.reason).toBeNull();
});
- it("describes an adaptive result only by the flags the server set", () => {
- const decision_ = decision("assigned", { current_confirmed_grade: "middle" });
- const uncalibratedOnly = assessmentResultSummary(
- result({
- mode: "adaptive",
- outcome: "confirmed",
- confirmed_grade: "middle",
- limitations: ["unproctored"],
- category_decision: decision_,
- }),
- );
- expect(uncalibratedOnly.reason).toBe("Результат предварительный: пороги не калибровались.");
- expect(uncalibratedOnly.reason).not.toContain("демонстрационн");
-
+ it("adds no note to an adaptive result with an uncalibrated or demo-bank flag", () => {
const withBank = assessmentResultSummary(
result({
mode: "adaptive",
outcome: "confirmed",
confirmed_grade: "middle",
- calibration_status: "calibrated",
- limitations: ["demo_bank"],
- category_decision: decision("assigned", {
- current_confirmed_grade: "middle",
- calibration_status: "calibrated",
- }),
+ limitations: ["unproctored", "demo_bank"],
+ category_decision: decision("assigned", { current_confirmed_grade: "middle" }),
}),
);
- expect(withBank.reason).toBe("Результат предварительный: банк заданий демонстрационный.");
+ expect(withBank.text).toBe("Уровень подтвержден: Backend, Middle.");
+ expect(withBank.reason).toBeNull();
});
it("says that the threshold was reached but no category was assigned", () => {
@@ -146,7 +127,7 @@ describe("assessmentResultSummary", () => {
);
expect(summary.text).toBe("Порог пройден, категория не присвоена: Backend, Middle.");
expect(summary.text).not.toContain("Уровень подтвержден");
- expect(summary.reason).toContain("отключены");
+ expect(summary.reason).toContain("нет подтверждения оператора");
});
it("does not claim a grade for a result stored before category decisions", () => {
@@ -173,7 +154,7 @@ describe("assessmentResultSummary", () => {
expect(summary.reason).toBe("Время попытки истекло до завершения заданий.");
});
- it("marks express training as a demonstration", () => {
+ it("marks an express test as one that never confirms a grade", () => {
const summary = assessmentResultSummary(
result({
kind: "demo_express",
@@ -185,7 +166,8 @@ describe("assessmentResultSummary", () => {
limitations: ["demonstration_only"],
}),
);
- expect(summary.isDemonstration).toBe(true);
+ expect(summary.text).toBe("Экспресс-тест завершен.");
+ expect(summary.isExpress).toBe(true);
expect(summary.reason).toBeNull();
});
});
diff --git a/frontend/src/entities/assessment/model/result-summary.ts b/frontend/src/entities/assessment/model/result-summary.ts
index bbe81bf..96d4d3d 100644
--- a/frontend/src/entities/assessment/model/result-summary.ts
+++ b/frontend/src/entities/assessment/model/result-summary.ts
@@ -6,8 +6,8 @@ export type AssessmentResultSummary = {
readonly text: string;
/** Why no decision was made, or what stays in force; null when nothing to add. */
readonly reason: string | null;
- /** True for training results that never confirm a grade. */
- readonly isDemonstration: boolean;
+ /** True for express results that never confirm a grade. */
+ readonly isExpress: boolean;
};
type NotDeterminedReason = NonNullable<
@@ -24,7 +24,7 @@ const notDeterminedReasons: Readonly> = {
/** Plain words for a passed threshold without an assigned category. */
function noCategoryReason(status: string | undefined): string {
if (status === "not_eligible") {
- return "Демонстрационные категории на этом стенде отключены или для этой проверки нет подтверждения оператора, поэтому уровень не присваивается.";
+ return "Для этой проверки нет подтверждения оператора, поэтому уровень не присваивается.";
}
return "Результат сохранен без решения о категории, поэтому уровень не присваивается.";
}
@@ -36,12 +36,12 @@ function noCategoryReason(status: string | undefined): string {
export function assessmentResultSummary(result: AssessmentResult): AssessmentResultSummary {
if (result.kind === "demo_express") {
return {
- text: "Демонстрационный экспресс-запуск завершен.",
+ text: "Экспресс-тест завершен.",
reason: null,
- isDemonstration: true,
+ isExpress: true,
};
}
- const isDemonstration = false;
+ const isExpress = false;
const specialization = specializationLabels[result.specialization];
const keptGrade = result.previous_confirmed_grade
@@ -61,36 +61,20 @@ export function assessmentResultSummary(result: AssessmentResult): AssessmentRes
return {
text: `Порог пройден, категория не присвоена: ${specialization}, ${gradeLabels[result.target_grade]}.`,
reason: noCategoryReason(decisionStatus),
- isDemonstration,
+ isExpress,
};
}
- const flags = [
- result.category_decision?.calibration_status === "uncalibrated" ||
- result.calibration_status === "uncalibrated"
- ? "пороги не калибровались"
- : null,
- result.limitations.includes("demo_bank") ? "банк заданий демонстрационный" : null,
- ].filter(Boolean);
- // Only the basic method yields a demonstration category; other methods
- // are described by the flags the server actually set.
- const caveat =
- flags.length === 0
- ? null
- : `${result.mode === "demo_basic" ? "Это демонстрационная категория" : "Результат предварительный"}: ${flags.join(", ")}.`;
- const reason = [decisionStatus === "unchanged" ? keptGrade : null, caveat]
- .filter(Boolean)
- .join(" ");
return {
text: `${outcomeLabels.confirmed}: ${specialization}, ${gradeLabels[result.confirmed_grade]}.`,
- reason: reason === "" ? null : reason,
- isDemonstration,
+ reason: decisionStatus === "unchanged" ? keptGrade : null,
+ isExpress,
};
}
case "not_confirmed":
return {
text: `${outcomeLabels.not_confirmed}: ${specialization}, ${gradeLabels[result.target_grade]}.`,
reason: keptGrade,
- isDemonstration,
+ isExpress,
};
case "not_determined": {
const why = result.not_determined_reason
@@ -99,7 +83,7 @@ export function assessmentResultSummary(result: AssessmentResult): AssessmentRes
return {
text: `${outcomeLabels.not_determined}: ${specialization}, ${gradeLabels[result.target_grade]}.`,
reason: [why, keptGrade].filter(Boolean).join(" ") || null,
- isDemonstration,
+ isExpress,
};
}
}
diff --git a/frontend/src/entities/assessment/ui/assessment-result-view.module.css b/frontend/src/entities/assessment/ui/assessment-result-view.module.css
index c42c9c6..dc550ae 100644
--- a/frontend/src/entities/assessment/ui/assessment-result-view.module.css
+++ b/frontend/src/entities/assessment/ui/assessment-result-view.module.css
@@ -41,16 +41,6 @@
overflow-wrap: anywhere;
}
-.badges {
- display: flex;
- flex-wrap: wrap;
- gap: var(--space-2);
-}
-
-.badges:empty {
- display: none;
-}
-
.summary {
color: var(--color-text-strong);
font-family: var(--font-mono);
diff --git a/frontend/src/entities/assessment/ui/assessment-result-view.test.tsx b/frontend/src/entities/assessment/ui/assessment-result-view.test.tsx
index e32cafb..99fd63f 100644
--- a/frontend/src/entities/assessment/ui/assessment-result-view.test.tsx
+++ b/frontend/src/entities/assessment/ui/assessment-result-view.test.tsx
@@ -22,13 +22,14 @@ function render(result: AssessmentResult): string {
describe("AssessmentResultView for demo_basic", () => {
const html = render(demoBasicAssigned());
- it("shows the category, date, method, and provisional status", () => {
+ it("shows the category, date, and method without a demo or calibration marker", () => {
expect(html).toContain("Уровень подтвержден: Backend, Middle.");
expect(html).toContain("Backend, Middle (присвоена этим результатом)");
expect(html).toContain("8 октября 2026 г. в 09:30 UTC");
expect(html).toContain("Базовая проверка по фиксированному набору заданий");
- expect(html).toContain("Предварительный результат");
- expect(html).toContain("предварительный, пороги не калибровались");
+ for (const text of ["Предварительный", "Демо", "демонстрацион", "калибр", "Синтетическ"]) {
+ expect(html).not.toContain(text);
+ }
});
it("names the method limitation and shows no estimate rows", () => {
@@ -52,7 +53,7 @@ describe("AssessmentResultView for an adaptive result", () => {
expect(html).toContain("от −0,19 до 1,03");
expect(html).toContain("Базы данных");
expect(html).toContain("Доступно с 12 ноября 2026 г. в 10:00 UTC.");
- expect(html).toContain("остается предварительной оценкой");
+ expect(html).not.toContain("предварительной оценкой");
});
it("draws no estimate and no zeros once the fields are removed", () => {
@@ -94,11 +95,10 @@ describe("AssessmentResultView for a failed attempt", () => {
describe("AssessmentResultView for an express result", () => {
const html = render(expressFixture());
- it("is marked as a demonstration without a grade", () => {
- expect(html).toContain("Демонстрация без реального грейда");
- expect(html).toContain(
- "Демонстрация завершена. Она не подтверждает квалификацию и не присваивает грейд.",
- );
+ it("is named an express test without a grade", () => {
+ expect(html).toContain("Экспресс-тест без грейда");
+ expect(html).toContain("Экспресс-тест не присваивает грейд.");
+ expect(html).not.toContain("емонстрац");
expect(html).toContain("Вы ответили на три учебных задания.");
expect(html).toContain("не присваивается");
expect(html).not.toContain("Подтвержденный уровень");
diff --git a/frontend/src/entities/assessment/ui/assessment-result-view.tsx b/frontend/src/entities/assessment/ui/assessment-result-view.tsx
index 0d4aa27..9433592 100644
--- a/frontend/src/entities/assessment/ui/assessment-result-view.tsx
+++ b/frontend/src/entities/assessment/ui/assessment-result-view.tsx
@@ -1,7 +1,7 @@
import { useId, type ReactNode } from "react";
import type { AssessmentResult } from "../../../shared/api/schemas";
import { paths } from "../../../shared/config/paths";
-import { ButtonLink, Mono, Tag } from "../../../shared/ui";
+import { ButtonLink, Mono } from "../../../shared/ui";
import { describeAssessmentResult } from "../model/result-presentation";
import styles from "./assessment-result-view.module.css";
@@ -33,7 +33,7 @@ function Block({ title, level, children }: BlockProps) {
* Stored result of one attempt. Every value is a restatement of a server
* field: an absent estimate is not drawn, a lower-grade offer is text and
* never a control that changes the category, and an express run is marked as
- * a demonstration without a grade.
+ * an express test without a grade.
*/
export function AssessmentResultView({
result,
@@ -53,23 +53,13 @@ export function AssessmentResultView({
{view.title}
-
- {view.isExpress ? Демонстрация : null}
- {!view.isExpress && view.isProvisional ? (
-
- Предварительный результат
-
- ) : null}
-
{view.summary.text}
{view.summary.reason ? {view.summary.reason}
: null}
{view.isExpress ? (
<>
-
- Демонстрация завершена. Она не подтверждает квалификацию и не присваивает грейд.
-
+ Экспресс-тест не присваивает грейд.
{view.expressSummary ? {view.expressSummary}
: null}
>
) : null}
@@ -134,12 +124,7 @@ export function AssessmentResultView({
) : null}
-
- Значения даны на шкале специализации.
- {view.isProvisional
- ? " Пока пороги не откалиброваны, вероятность остается предварительной оценкой, а не измеренной долей."
- : ""}
-
+ Значения даны на шкале специализации.
) : null}
{!view.uncertainty && view.strength ? (
@@ -177,7 +162,7 @@ export function AssessmentResultView({
{view.isExpress ? (
- Категорию дает только полная проверка. Демонстрация ее не заменяет.
+ Категорию дает только полная проверка.
Перейти к полной проверке
) : (
diff --git a/frontend/src/entities/candidate-view/index.ts b/frontend/src/entities/candidate-view/index.ts
index b6ce90f..b868da6 100644
--- a/frontend/src/entities/candidate-view/index.ts
+++ b/frontend/src/entities/candidate-view/index.ts
@@ -5,7 +5,6 @@ export {
describeAccessOrganization,
describePublicationClosure,
evidenceBasisLabels,
- evidenceCalibrationLabels,
buildSearchStatusSubmission,
buildPublicationSubmission,
currentC2State,
diff --git a/frontend/src/entities/candidate-view/model/presentation.test.ts b/frontend/src/entities/candidate-view/model/presentation.test.ts
index 9236f12..2b29c34 100644
--- a/frontend/src/entities/candidate-view/model/presentation.test.ts
+++ b/frontend/src/entities/candidate-view/model/presentation.test.ts
@@ -50,7 +50,7 @@ describe("candidate card presentation", () => {
{
specialization: "Backend",
grade: "Junior",
- strength: "Демонстрационное подтверждение",
+ strength: "Стандартное подтверждение",
},
]);
expect(result?.selfAssessments).toEqual([
@@ -143,8 +143,7 @@ describe("candidate card presentation", () => {
trust: "partial",
trustLabel: "Онлайн-результат без подтверждения личности",
observedYear: 2026,
- basisLabel: "Синтетическая демонстрация, не проверенное измерение",
- calibrationLabel: "Пороги не откалиброваны",
+ basisLabel: "Результат теста",
},
]);
});
diff --git a/frontend/src/entities/candidate-view/model/presentation.ts b/frontend/src/entities/candidate-view/model/presentation.ts
index fedc115..ab21b62 100644
--- a/frontend/src/entities/candidate-view/model/presentation.ts
+++ b/frontend/src/entities/candidate-view/model/presentation.ts
@@ -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> = {
};
export const evidenceBasisLabels: Readonly> = {
- synthetic_demo: "Синтетическая демонстрация, не проверенное измерение",
-};
-
-export const evidenceCalibrationLabels: Readonly> = {
- 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],
};
}
diff --git a/frontend/src/entities/candidate-view/ui/employer-card-preview.test.tsx b/frontend/src/entities/candidate-view/ui/employer-card-preview.test.tsx
index 7208952..0709248 100644
--- a/frontend/src/entities/candidate-view/ui/employer-card-preview.test.tsx
+++ b/frontend/src/entities/candidate-view/ui/employer-card-preview.test.tsx
@@ -76,7 +76,7 @@ describe("employer card preview", () => {
it("states the confirmation of each specialization separately", () => {
const markup = render(published());
- expect(markup).toContain("Backend: Middle, демонстрационное подтверждение");
+ expect(markup).toContain("Backend: Middle, стандартное подтверждение");
expect(markup.match(/Грейд подтвержден/g)).toHaveLength(1);
expect(markup.match(/Грейд не подтвержден/g)).toHaveLength(2);
expect(markup).toContain("Заявлено: Junior");
@@ -121,13 +121,15 @@ describe("employer card preview", () => {
expect(markup).toContain("Для опубликованных категорий нет видимого подтверждающего факта.");
});
- it("labels the evidence basis and calibration the way the server states them", () => {
+ it("labels the evidence basis and shows no demo or calibration wording", () => {
const markup = render(published());
expect(markup).toContain("Подтверждающие факты оценки");
expect(markup).toContain("Онлайн-результат без подтверждения личности");
- expect(markup).toContain("Синтетическая демонстрация, не проверенное измерение");
- expect(markup).toContain("Пороги не откалиброваны");
+ expect(markup).toContain("Результат теста");
+ expect(markup).not.toContain("демонстрац");
+ expect(markup).not.toContain("откалиброван");
+ expect(markup).not.toContain("Калибровка");
expect(markup).toContain("2026");
});
diff --git a/frontend/src/entities/candidate-view/ui/employer-card-preview.tsx b/frontend/src/entities/candidate-view/ui/employer-card-preview.tsx
index cd5dadb..1ec276e 100644
--- a/frontend/src/entities/candidate-view/ui/employer-card-preview.tsx
+++ b/frontend/src/entities/candidate-view/ui/employer-card-preview.tsx
@@ -37,8 +37,6 @@ function EvidenceItem({ item }: { item: EvidencePresentation }) {
{item.observedYear}
Основа
{item.basisLabel}
- Калибровка
- {item.calibrationLabel}
);
diff --git a/frontend/src/entities/match/model/card-presentation.ts b/frontend/src/entities/match/model/card-presentation.ts
index b312078..f25b8d6 100644
--- a/frontend/src/entities/match/model/card-presentation.ts
+++ b/frontend/src/entities/match/model/card-presentation.ts
@@ -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> = {
@@ -78,7 +77,7 @@ const trustViews: Readonly {
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: "Результат теста",
};
});
}
diff --git a/frontend/src/entities/match/model/labels.ts b/frontend/src/entities/match/model/labels.ts
index f3a2663..838ccac 100644
--- a/frontend/src/entities/match/model/labels.ts
+++ b/frontend/src/entities/match/model/labels.ts
@@ -1,7 +1,6 @@
import type {
CandidateExperienceBand,
CandidateSalaryCompatibility,
- EvidenceBasis,
GradeCode,
MatchEvidenceCode,
MatchEvidenceState,
@@ -77,12 +76,10 @@ export const strengthLabels: Readonly> = {
};
/**
- * Words for how a confirmed category was established. A demonstration basis is
- * named as one, because it is not a measurement and never a standard
- * confirmation; only a category with another basis gets its strength label.
+ * Words for how a confirmed category was established. Every test basis reads
+ * as the strength label of the confirmation.
*/
-export function confirmationLabel(basis: EvidenceBasis, strength: MatchStrength): string {
- if (basis === "synthetic_demo") return "Демонстрационное подтверждение";
+export function confirmationLabel(strength: MatchStrength): string {
return strengthLabels[strength];
}
diff --git a/frontend/src/entities/match/ui/candidate-card-details.tsx b/frontend/src/entities/match/ui/candidate-card-details.tsx
index c29f0a3..938536c 100644
--- a/frontend/src/entities/match/ui/candidate-card-details.tsx
+++ b/frontend/src/entities/match/ui/candidate-card-details.tsx
@@ -181,8 +181,6 @@ export function CandidateCardDetails({
{fact.observedYear}
Основа
{fact.basisLabel}
- Калибровка
- {fact.calibrationLabel}
))}
diff --git a/frontend/src/entities/match/ui/match-card.tsx b/frontend/src/entities/match/ui/match-card.tsx
index 4352568..754935e 100644
--- a/frontend/src/entities/match/ui/match-card.tsx
+++ b/frontend/src/entities/match/ui/match-card.tsx
@@ -132,7 +132,7 @@ export function MatchCardView({
Подтвержденная категория
{card.category && card.strength
- ? `${specializationLabels[card.category.specialization]}, ${gradeLabels[card.category.grade]}. ${confirmationLabel(card.category.basis, card.strength)}`
+ ? `${specializationLabels[card.category.specialization]}, ${gradeLabels[card.category.grade]}. ${confirmationLabel(card.strength)}`
: "Нет"}
diff --git a/frontend/src/features/assessment-signals/ui/signal-notice.tsx b/frontend/src/features/assessment-signals/ui/signal-notice.tsx
index d4df14d..69b94ff 100644
--- a/frontend/src/features/assessment-signals/ui/signal-notice.tsx
+++ b/frontend/src/features/assessment-signals/ui/signal-notice.tsx
@@ -49,8 +49,8 @@ export function SignalNoticeContent({ headingLevel }: ContentProps) {
Адреса и токены сессий не хранятся: для них есть только односторонние отпечатки. Во время
теста сбор ничего не показывает и не блокирует: ввод, вставка и отправка ответов работают
как обычно. Браузерные сигналы легко исказить, а ложные срабатывания возможны, например при
- случайном переключении окна, поэтому это только подсказка. Демонстрационный запуск сигналы
- не собирает.
+ случайном переключении окна, поэтому это только подсказка. Экспресс-тест сигналы не
+ собирает.
Подтверждение хранится на сервере. Оно не заменяет согласие C3, которое управляется отдельно
diff --git a/frontend/src/pages/assessment/ui/assessment-attempt-page.tsx b/frontend/src/pages/assessment/ui/assessment-attempt-page.tsx
index c4cb1de..cf09e74 100644
--- a/frontend/src/pages/assessment/ui/assessment-attempt-page.tsx
+++ b/frontend/src/pages/assessment/ui/assessment-attempt-page.tsx
@@ -74,12 +74,12 @@ function isTerminal(attempt: AssessmentAttempt): boolean {
}
function attemptName(attempt: AssessmentAttempt): string {
- if (attempt.kind === "demo_express") return "Демонстрационный экспресс-запуск";
+ if (attempt.kind === "demo_express") return "Экспресс-тест";
return `${attempt.specialization ? specializationLabels[attempt.specialization] : "Проверка"} - ${attempt.target_grade ? gradeLabels[attempt.target_grade] : ""}`;
}
function attemptTag(attempt: AssessmentAttempt): string {
- if (attempt.kind === "demo_express") return "Демонстрация";
+ if (attempt.kind === "demo_express") return "Экспресс-тест";
const parts = [
attempt.specialization ? specializationLabels[attempt.specialization] : "Проверка",
attempt.target_grade ? gradeLabels[attempt.target_grade] : null,
@@ -562,12 +562,8 @@ function AssessmentAttemptContent({ attemptId }: { attemptId: string }) {
return (
@@ -603,7 +599,7 @@ function AssessmentAttemptContent({ attemptId }: { attemptId: string }) {
) : null}
{resumedExpress && attempt.kind === "demo_express" && !terminal ? (
-
+
Это тот же запуск: время идет с момента его начала, ответы сохранены на сервере.
diff --git a/frontend/src/pages/assessment/ui/assessment-page.tsx b/frontend/src/pages/assessment/ui/assessment-page.tsx
index b965209..3da93fd 100644
--- a/frontend/src/pages/assessment/ui/assessment-page.tsx
+++ b/frontend/src/pages/assessment/ui/assessment-page.tsx
@@ -433,18 +433,18 @@ export function AssessmentPage() {
if (error instanceof ExpressRunElsewhereError) {
setPendingCreate(null);
setExpressNote(
- "Незавершенная демонстрация открыта в другой вкладке или браузере. Продолжите ее там или подождите: она закончится сама не позже чем через 5 минут после начала.",
+ "Незавершенный экспресс-тест открыт в другой вкладке или браузере. Продолжите его там или подождите: он закончится сам не позже чем через 5 минут после начала.",
);
return;
}
if (isOutcomeAmbiguous(error)) {
setExpressNote(
- "Не удалось подтвердить начало демонстрации. Повторная отправка использует тот же ключ.",
+ "Не удалось подтвердить начало экспресс-теста. Повторная отправка использует тот же ключ.",
);
return;
}
setPendingCreate(null);
- setExpressNote("Сервер не начал демонстрацию. Обновите страницу и повторите действие.");
+ setExpressNote("Сервер не начал экспресс-тест. Обновите страницу и повторите действие.");
} finally {
requestInFlight.current = false;
setCreateBusy(false);
@@ -641,14 +641,13 @@ export function AssessmentPage() {
Учебный режим
- Демонстрационный экспресс-запуск
+ Экспресс-тест
3-5 минут
- Это демонстрация на 3-5 минут. Она не подтверждает квалификацию, не присваивает грейд
- и не влияет на доступность полной проверки.
+ Экспресс-тест не присваивает грейд и не влияет на доступность полной проверки.
Незавершенный запуск этой вкладки продолжается той же кнопкой.
@@ -661,8 +660,8 @@ export function AssessmentPage() {
{createBusy
? "Создаем запуск..."
: pendingCreate?.body.kind === "demo_express"
- ? "Повторить начало демонстрации"
- : "Начать демонстрацию"}
+ ? "Повторить начало экспресс-теста"
+ : "Пройти экспресс-тест"}
{expressNote ? (
diff --git a/frontend/src/pages/jury-guide/model/guide.ts b/frontend/src/pages/jury-guide/model/guide.ts
index 4d1ea36..7d57f93 100644
--- a/frontend/src/pages/jury-guide/model/guide.ts
+++ b/frontend/src/pages/jury-guide/model/guide.ts
@@ -35,11 +35,11 @@ export const guideRoles: readonly GuideRole[] = [
link: { label: "Открыть вход", to: paths.login },
},
{
- text: "На странице проверки нажмите «Начать демонстрацию». Экспресс-запуск занимает 3-5 минут и состоит из трех заданий. Итог не присваивает уровень: на экране есть пометка «Демонстрация без реального грейда», а результат не попадает в историю реальных проверок.",
+ text: "На странице проверки нажмите «Пройти экспресс-тест». Он занимает 3-5 минут и состоит из трех заданий. Итог не присваивает уровень и не попадает в историю результатов.",
link: { label: "Открыть проверку знаний", to: paths.candidate.assessment },
},
{
- text: "На той же странице посмотрите полную проверку Backend, Junior, Go: 25 заданий, срок 72 часа, без практики. Кнопка «Начать полную проверку» видна, но ее можно не нажимать: запуск создает попытку на стенде.",
+ text: "На той же странице посмотрите полную проверку Backend, Junior, Go: 25 заданий, срок 72 часа, без практики. Кнопка «Начать полную проверку» видна, но ее можно не нажимать: запуск создает попытку.",
link: { label: "Открыть полную проверку", to: paths.candidate.assessment },
},
],
@@ -49,15 +49,15 @@ export const guideRoles: readonly GuideRole[] = [
account: `prepared-1@${demoAccountDomain}`,
steps: [
{
- text: "Войдите как prepared-1. В профиле нет ФСП ID: профиль заполнен вручную, а строка опыта помечена как синтетический профиль.",
+ text: "Войдите как prepared-1. В профиле нет ФСП ID: профиль заполнен вручную.",
link: { label: "Открыть профиль", to: paths.candidate.profile },
},
{
- text: "В результатах полный тест Backend, Junior, Go уже пройден. Категория помечена как демонстрационная: происхождение решения - синтетическая демонстрация стенда, пороги не калиброваны.",
+ text: "В результатах полный тест Backend, Junior, Go уже пройден: категория подтверждена тестом.",
link: { label: "Открыть результаты", to: paths.candidate.results },
},
{
- text: "В настройках приватности карточка опубликована. Предпросмотр показывает доказательство навыка с пометкой «Демонстрационное подтверждение».",
+ text: "В настройках приватности карточка опубликована. Предпросмотр показывает подтвержденную категорию и факт оценки.",
link: { label: "Открыть настройки приватности", to: paths.candidate.privacy },
},
],
@@ -113,7 +113,7 @@ export const guideAccounts: readonly GuideAccount[] = [
{
login: `candidate@${demoAccountDomain}`,
role: "Кандидат без попыток",
- purpose: "Экспресс-запуск и полная проверка",
+ purpose: "Экспресс-тест и полная проверка",
},
{
login: `prepared-1@${demoAccountDomain} - prepared-6@${demoAccountDomain}`,
@@ -132,16 +132,6 @@ export const guideAccounts: readonly GuideAccount[] = [
},
];
-/** Items that only simulate the product; each one is named as a simulation. */
-export const demonstrationItems: readonly string[] = [
- "Все люди на стенде синтетические: кандидаты, компании и их описания вымышлены. Адреса на домене demo.lincodex.test никогда не получают почту.",
- "Подготовленные полные результаты созданы командой demo-seed обычными операциями попытки. Ответы выбраны заранее, а проходила их команда стенда, а не кандидат.",
- "Категория «Демонстрационное подтверждение» (источник synthetic_demo) не калибрована и не измеряет навык. Банк заданий синтетический и предметной проверки не проходил.",
- "Экспресс-запуск показывает механику проверки. Он не присваивает грейд, не создает категорию и не дает доказательства навыка.",
- "ML на стенде не вызывается: смысловая близость нейтральна (0,50), а карточки помечены «смысловой анализ недоступен». ФСП не подключен ни в каком режиме, профиль заполняется вручную.",
- "На стенде нет видеоматериалов: экран показывает работающий интерфейс на синтетических данных, а не запись.",
-];
-
/** Behaviour that is real code on the stand, not a simulation. */
export const workingItems: readonly string[] = [
"Регистрация, вход, согласия C1-C5, профиль, анкета, настройки приватности и обращения в поддержку работают как в рабочей сборке.",
diff --git a/frontend/src/pages/jury-guide/ui/jury-guide-page.test.tsx b/frontend/src/pages/jury-guide/ui/jury-guide-page.test.tsx
index 357b9bb..bc6c769 100644
--- a/frontend/src/pages/jury-guide/ui/jury-guide-page.test.tsx
+++ b/frontend/src/pages/jury-guide/ui/jury-guide-page.test.tsx
@@ -17,12 +17,12 @@ function hrefs(html: string): string[] {
}
describe("jury guide page", () => {
- it("renders one heading with the demonstration eyebrow and the memo title", () => {
+ it("renders one heading with the jury eyebrow and the memo title", () => {
const html = render();
expect(html.match(/
]/g)?.length).toBe(1);
expect(html).toMatch(/]*>Гид для жюри<\/h1>/);
- expect(html).toContain("Демонстрационный стенд");
+ expect(html).toContain("Маршрут для жюри");
});
it("explains the product in the first section", () => {
@@ -32,18 +32,13 @@ describe("jury guide page", () => {
expect(html).toContain("Заявленный уровень в анкете остается самооценкой");
});
- it("separates the demonstration simulations from the working functionality", () => {
+ it("lists what works without simulation and carries no demonstration wording", () => {
const html = render();
- const simulations = html.indexOf("Что здесь демонстрационное");
- const working = html.indexOf("Что работает без имитации");
- expect(simulations).toBeGreaterThan(0);
- expect(working).toBeGreaterThan(simulations);
- expect(html).toContain("синтетические");
- expect(html).toContain("не калибрована");
- expect(html).toContain("смысловой анализ недоступен");
- expect(html).toContain("ФСП не подключен");
- expect(html).toContain("Экспресс-запуск показывает механику проверки");
+ expect(html).toContain("Что работает без имитации");
+ expect(html).not.toContain("Что здесь демонстрационное");
+ expect(html).not.toContain("Демонстрационн");
+ expect(html).not.toContain("демонстрационн");
});
it("numbers the route across the role blocks in one continuous sequence", () => {
diff --git a/frontend/src/pages/jury-guide/ui/jury-guide-page.tsx b/frontend/src/pages/jury-guide/ui/jury-guide-page.tsx
index 665063c..9c9069f 100644
--- a/frontend/src/pages/jury-guide/ui/jury-guide-page.tsx
+++ b/frontend/src/pages/jury-guide/ui/jury-guide-page.tsx
@@ -1,11 +1,5 @@
import { Card, Page, Section, TextLink } from "../../../shared/ui";
-import {
- demonstrationItems,
- guideAccounts,
- guideLimits,
- guideRoles,
- workingItems,
-} from "../model/guide";
+import { guideAccounts, guideLimits, guideRoles, workingItems } from "../model/guide";
import styles from "./jury-guide-page.module.css";
/** Step numbers run on across the role blocks, so the whole route reads as eight to thirteen steps. */
@@ -20,10 +14,10 @@ function firstStepNumbers(): number[] {
}
/**
- * Memo for a jury member who opens the isolated demonstration stand without a
- * briefing. It lists the route with the screens to open, the accounts, and the
- * parts of the stand that are simulations. The route is shown only in a demo
- * build (see routes), so nothing here reaches a production build.
+ * Memo for a jury member who opens the isolated stand without a briefing. It
+ * lists the route with the screens to open, the accounts, and what works on
+ * the stand. The route is shown only in a demo build (see routes), so nothing
+ * here reaches a production build.
*/
export function JuryGuidePage() {
const starts = firstStepNumbers();
@@ -31,8 +25,8 @@ export function JuryGuidePage() {
return (
@@ -69,17 +63,6 @@ export function JuryGuidePage() {
-
-
- {demonstrationItems.map((item) => (
- - {item}
- ))}
-
-
-
{workingItems.map((item) => (
diff --git a/frontend/src/pages/welcome/ui/welcome-page.tsx b/frontend/src/pages/welcome/ui/welcome-page.tsx
index 89fb070..a24abb6 100644
--- a/frontend/src/pages/welcome/ui/welcome-page.tsx
+++ b/frontend/src/pages/welcome/ui/welcome-page.tsx
@@ -15,7 +15,7 @@ const cabinets = [
summary: "Профиль и анкета, тест на подтверждение уровня, результаты и настройки видимости.",
features: [
"Заявленный уровень из анкеты показан отдельно от подтвержденной категории.",
- "Категория появляется только по результату теста. Демонстрационный результат помечен как демонстрационный.",
+ "Категория появляется только по результату теста.",
"Приглашения компаний: условия, принятие с выбором контактов и отказ.",
"Согласия, публикация карточки, статус поиска, уведомления и обращения в поддержку.",
],
@@ -91,8 +91,7 @@ export function WelcomePage({ demoStand = false }: { demoStand?: boolean }) {
Для жюри
- Этот стенд показывает продукт на синтетических данных. Гид описывает маршрут на восемь
- минут двумя ролями и отделяет имитации от работающего функционала.
+ Гид описывает маршрут по продукту на восемь минут двумя ролями.
diff --git a/frontend/src/widgets/assessment-history/ui/assessment-history.test.tsx b/frontend/src/widgets/assessment-history/ui/assessment-history.test.tsx
index d315a1a..90dd825 100644
--- a/frontend/src/widgets/assessment-history/ui/assessment-history.test.tsx
+++ b/frontend/src/widgets/assessment-history/ui/assessment-history.test.tsx
@@ -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("Показать еще");
});
diff --git a/frontend/src/widgets/assessment-history/ui/assessment-history.tsx b/frontend/src/widgets/assessment-history/ui/assessment-history.tsx
index cf8cab7..b086e4d 100644
--- a/frontend/src/widgets/assessment-history/ui/assessment-history.tsx
+++ b/frontend/src/widgets/assessment-history/ui/assessment-history.tsx
@@ -104,7 +104,7 @@ export function AssessmentHistory({ actor, queryClient }: AssessmentHistoryProps
return (
К проверкам}
/>
);
@@ -113,8 +113,7 @@ export function AssessmentHistory({ actor, queryClient }: AssessmentHistoryProps
return (
- В истории только завершенные реальные проверки. Демонстрационные запуски сюда не попадают и
- категорию не меняют.
+ В истории только завершенные проверки. Экспресс-тест сюда не попадает и категорию не меняет.
{history.isRefetchError && !history.isFetchNextPageError ? (
-
- Демонстрационный стенд. Все данные синтетические,
- подготовленные результаты не подтверждают квалификацию. Гид для жюри есть на главной
- странице.
-
-
- );
-}
diff --git a/frontend/src/widgets/match-list/ui/match-list.test.tsx b/frontend/src/widgets/match-list/ui/match-list.test.tsx
index 8513cce..51b7837 100644
--- a/frontend/src/widgets/match-list/ui/match-list.test.tsx
+++ b/frontend/src/widgets/match-list/ui/match-list.test.tsx
@@ -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", () => {