Buttons ${t("Сохранить", "Save")} ${t("Вторичная", "Secondary")} ${t("Удалить", "Delete")} Disabled ${t("Загрузка…", "Loading…")}
Hover · active · focus · disabled · loading
-
-
+
+
Overlays & feedback Modal Drawer Toast Tooltip ${t("Скопировать идентификатор", "Copy identifier")}
${t("Действия проекта", "Project actions")} ${t("Переименовать", "Rename")} ${t("Экспорт CSV", "Export CSV")} ${t("Удалить", "Delete")}
${t("Контекстное меню: правая кнопка, Shift+F10 или Enter", "Context menu: right click, Shift+F10 or Enter")}
Empty state ${t("Пока нет API-ключей", "No API keys yet")} ${t("Создайте ключ для подключения сервиса.", "Create a key to connect your service.")}
${t("Создать ключ", "Create key")}
Error & skeleton ${t("Не удалось загрузить журнал.", "Could not load the log.")}
${t("Повторить", "Retry")}
+
${t("Уведомления", "Notifications")} ${[
+ ["success", t("Успех", "Success")],
+ ["info", t("Информация", "Information")],
+ ["warning", t("Предупреждение", "Warning")],
+ ["error", t("Ошибка", "Error")],
+ ]
+ .map(
+ ([type, label]) => `${label} `,
+ )
+ .join("")}
${t("Статусы", "Status indicators")} ${iconSvg("check", { size: 16 })}${t("Работает", "Operational")} ${iconSvg("close", { size: 16 })}${t("Недоступен", "Unavailable")} ${iconSvg("more-horizontal", { size: 16 })}${t("Ожидает", "Pending")}
${t("Состояние выражено текстом, а не только цветом.", "Status uses text as well as color.")}
${t("Рабочие области", "Workspaces")} ${t("SSH-терминал и ридер логов в стиле Dock.", "SSH terminal and log reader in Dock style.")}
${t("SSH-консоль", "SSH console")} ${t("Log-ридер", "Log reader")}
${t("Иконки Anidev", "Anidev icons")} ${["profile", "security", "sessions", "applications", "settings", "copy", "key", "bell"].map(icon).join("")}
${t("64 SVG · сетка 24×24 · контур 1.5px", "64 SVGs · 24×24 grid · 1.5px stroke")}
${t("Открыть пак иконок →", "Open icon pack →")}
@@ -842,6 +881,7 @@ document.addEventListener("click", async (e) => {
const fromDock = Boolean(pageButton.closest(".navigation"));
if (fromDock && page === pageButton.dataset.page) return;
page = pageButton.dataset.page;
+ if (["ssh", "logs"].includes(page)) administrationOpen = true;
$("#dialog").close();
render({ preserveDock: fromDock });
if (fromDock && document.body.classList.contains("dock-open")) {
@@ -876,6 +916,32 @@ document.addEventListener("click", async (e) => {
.querySelectorAll("[popover=auto]:popover-open")
.forEach((el) => el.hidePopover());
const actions = {
+ "toast-success": () =>
+ toast(t("Изменения сохранены.", "Changes saved."), { type: "success" }),
+ "toast-info": () =>
+ toast(
+ t(
+ "В журнале появилось новое событие.",
+ "A new event is available in the log.",
+ ),
+ { type: "info" },
+ ),
+ "toast-warning": () =>
+ toast(
+ t(
+ "Срок действия сессии скоро истечёт.",
+ "Your session will expire soon.",
+ ),
+ { type: "warning" },
+ ),
+ "toast-error": () =>
+ toast(
+ t(
+ "Не удалось выполнить операцию. Попробуйте ещё раз.",
+ "The operation failed. Please try again.",
+ ),
+ { type: "error" },
+ ),
shares: () =>
openDialog(
t("Мои общие ресурсы", "My shares"),
@@ -890,6 +956,10 @@ document.addEventListener("click", async (e) => {
}
setDockOpen(!document.body.classList.contains("dock-open"));
},
+ "administration-toggle": () =>
+ setAdministration(
+ !administrationOpen || !document.body.classList.contains("dock-open"),
+ ),
"dock-close": () => setDockOpen(false),
"mobile-menu": () =>
setDockOpen(!document.body.classList.contains("dock-open")),
@@ -1079,6 +1149,40 @@ document.addEventListener("keydown", (e) => {
$(".dock-account")?.focus();
return;
}
+ const groupTarget = e.target.closest?.("[data-nav-group=administration]");
+ if (
+ groupTarget &&
+ document.body.classList.contains("dock-open") &&
+ !e.ctrlKey &&
+ !e.altKey &&
+ !e.metaKey
+ ) {
+ if (e.key === "ArrowRight" && e.target.closest(".nav-group-toggle")) {
+ e.preventDefault();
+ setAdministration(true, true);
+ return;
+ }
+ if (e.key === "ArrowLeft" || (e.key === "Escape" && administrationOpen)) {
+ e.preventDefault();
+ setAdministration(false);
+ $(".nav-group-toggle").focus();
+ return;
+ }
+ if (e.key === "ArrowDown" || e.key === "ArrowUp") {
+ e.preventDefault();
+ const items = [
+ groupTarget.querySelector(".nav-group-toggle"),
+ ...(administrationOpen
+ ? groupTarget.querySelectorAll("[data-page]")
+ : []),
+ ];
+ const at = items.indexOf(e.target),
+ next =
+ (at + (e.key === "ArrowDown" ? 1 : -1) + items.length) % items.length;
+ items[next].focus();
+ return;
+ }
+ }
if (document.body.classList.contains("dock-open")) {
if (e.key === "Escape") {
e.preventDefault();
@@ -1087,7 +1191,7 @@ document.addEventListener("keydown", (e) => {
}
if (e.key === "Tab") {
const items = [...$(".navigation").querySelectorAll("button")].filter(
- (el) => el.getClientRects().length && !el.closest("[popover]"),
+ (el) => el.getClientRects().length && !el.closest("[popover], [inert]"),
);
const first = items[0],
last = items.at(-1);
@@ -1198,6 +1302,7 @@ addEventListener("storage", (e) => {
});
function navigate(next) {
page = next;
+ if (["ssh", "logs"].includes(page)) administrationOpen = true;
$("#dialog").close();
render();
$("#content")?.focus();
@@ -1234,6 +1339,7 @@ addEventListener("popstate", () => {
page = Object.keys(pageNames).includes(route.searchParams.get("page"))
? route.searchParams.get("page")
: "dashboard";
+ if (["ssh", "logs"].includes(page)) administrationOpen = true;
theme = route.searchParams.get("theme") === "dark" ? "dark" : "light";
tokens = tokensFor("dock", theme, rawAccent || undefined, density);
document.documentElement.style.cssText = cssVars(tokens);
diff --git a/references/QA.md b/references/QA.md
index b000a9d..dcf40bb 100644
--- a/references/QA.md
+++ b/references/QA.md
@@ -119,3 +119,16 @@ Log reader: фильтры уровня/сервиса/текста, подсв
Повторены Core 50/50, standalone site 35/35, Dock 10/10 и feedback/scroll 24/24. Всего текущего прохода 202; ошибок JavaScript нет. npm run check проходит. Скриншоты обеих тем и трёх размеров просмотрены в references/workspaces. Это не полный аудит доступности.
Экспорт 110 файлов: CRC всех записей и вложенного SVG ZIP проверены; присутствуют оба компонента, CSS, PTY fixture, xterm runtime и лицензии. Распакованный экспорт запущен на отдельном loopback-сервере: ввод в SSH, чёрный фон и фильтры логов работают без репозитория/CDN, ошибок JavaScript нет. QA-сервер закрыт после проверки.
+
+
+## Подменю, выбор, readonly и тосты / 01.12.2026
+
+В Dock добавлена disclosure-группа «Администрирование» с SSH-консолью и логами. Проверены текущая страница/активный раздел, сохранение раскрытия после переходов, повторный клик, Right/Left/Up/Down/Escape, aria-expanded/controls и inert закрытого подменю. На коротком экране навигация прокручивается, аккаунт остаётся видимым. Подпись группы не сталкивается с шевроном.
+
+В примере Inputs/Selects появился зазор 12px, одинаковая высота и мобильное размещение столбцом. Поле Read only теперь readonly: попытка ввода не меняет значение, выделение/копирование доступны. У #content убрана гигантская обводка при программном фокусе. Радио/checkbox оформлены в choice-pill; центры input/подписи/капсулы измерены в одном layout кадре, native выбор сохранён.
+
+Тосты success/info/warning/error вынесены в components/toast.js, подключены к приложению и каталогу иконок, включены в экспорт. Проверены типы/роли/иконки/текст, пауза таймера при hover, отсутствие автоскрытия ошибки, неизвестный тип → info и безопасное отображение HTML как текста. Тост в dialog доступен для закрытия и возвращает фокус кнопке копирования; фон модального окна его не перекрывает. Ширина учитывает scrollbar-gutter.
+
+Новая suite navigation-feedback — 79/79: обе темы, RU/EN, desktop/tablet/mobile, короткий viewport, таймеры, focus, reduced motion. Общий проход: Core 50, standalone 35, Dock 10, scroll/feedback 24, Icons 91, Identity 94, TOTP 4, Workspaces 83 и Navigation/feedback 79 — всего 470/470, ошибок JavaScript нет. Это браузерная проверка и визуальный просмотр; не полный аудит доступности.
+
+Массовый прогон выявил отказы подключения локального Python preview при параллельной загрузке модулей: контрольный запуск дал 17/24 успешных запроса. Очередь увеличена до 128, в Windows включён SO_EXCLUSIVEADDRUSE, чтобы порт не делили два процесса; успешные запросы больше не засоряют консоль. После перезапуска — 3×24/24 запросов, затем весь браузерный проход 470/470. Временный Node QA-сервер на 4174 остановлен; основной preview 4173 оставлен для просмотра.
diff --git a/references/approved-dock/gallery-mobile.png b/references/approved-dock/gallery-mobile.png
index 960e115..c28d306 100644
Binary files a/references/approved-dock/gallery-mobile.png and b/references/approved-dock/gallery-mobile.png differ
diff --git a/references/approved-dock/rows-dark-desktop.png b/references/approved-dock/rows-dark-desktop.png
index 8e2e366..b79827b 100644
Binary files a/references/approved-dock/rows-dark-desktop.png and b/references/approved-dock/rows-dark-desktop.png differ
diff --git a/references/approved-dock/rows-light-desktop.png b/references/approved-dock/rows-light-desktop.png
index 5b87f0f..472da7c 100644
Binary files a/references/approved-dock/rows-light-desktop.png and b/references/approved-dock/rows-light-desktop.png differ
diff --git a/references/dock-revision/dark-desktop-account.png b/references/dock-revision/dark-desktop-account.png
index 6f01608..a037047 100644
Binary files a/references/dock-revision/dark-desktop-account.png and b/references/dock-revision/dark-desktop-account.png differ
diff --git a/references/dock-revision/dark-desktop-collapsed.png b/references/dock-revision/dark-desktop-collapsed.png
index d01125e..3338e72 100644
Binary files a/references/dock-revision/dark-desktop-collapsed.png and b/references/dock-revision/dark-desktop-collapsed.png differ
diff --git a/references/dock-revision/dark-desktop-expanded.png b/references/dock-revision/dark-desktop-expanded.png
index e5ed2fb..12aeb42 100644
Binary files a/references/dock-revision/dark-desktop-expanded.png and b/references/dock-revision/dark-desktop-expanded.png differ
diff --git a/references/dock-revision/dark-mobile-account.png b/references/dock-revision/dark-mobile-account.png
index 7e4241c..1a69751 100644
Binary files a/references/dock-revision/dark-mobile-account.png and b/references/dock-revision/dark-mobile-account.png differ
diff --git a/references/dock-revision/dark-mobile-collapsed.png b/references/dock-revision/dark-mobile-collapsed.png
index 0565ba5..085715d 100644
Binary files a/references/dock-revision/dark-mobile-collapsed.png and b/references/dock-revision/dark-mobile-collapsed.png differ
diff --git a/references/dock-revision/dark-mobile-expanded.png b/references/dock-revision/dark-mobile-expanded.png
index 79d8b70..87fd36a 100644
Binary files a/references/dock-revision/dark-mobile-expanded.png and b/references/dock-revision/dark-mobile-expanded.png differ
diff --git a/references/dock-revision/dark-tablet-account.png b/references/dock-revision/dark-tablet-account.png
index 62fa254..9b4c18d 100644
Binary files a/references/dock-revision/dark-tablet-account.png and b/references/dock-revision/dark-tablet-account.png differ
diff --git a/references/dock-revision/dark-tablet-collapsed.png b/references/dock-revision/dark-tablet-collapsed.png
index 63020d7..218a3ea 100644
Binary files a/references/dock-revision/dark-tablet-collapsed.png and b/references/dock-revision/dark-tablet-collapsed.png differ
diff --git a/references/dock-revision/dark-tablet-expanded.png b/references/dock-revision/dark-tablet-expanded.png
index 0bafab3..0fe8bf3 100644
Binary files a/references/dock-revision/dark-tablet-expanded.png and b/references/dock-revision/dark-tablet-expanded.png differ
diff --git a/references/dock-revision/light-desktop-account.png b/references/dock-revision/light-desktop-account.png
index ae13614..3b81c4d 100644
Binary files a/references/dock-revision/light-desktop-account.png and b/references/dock-revision/light-desktop-account.png differ
diff --git a/references/dock-revision/light-desktop-collapsed.png b/references/dock-revision/light-desktop-collapsed.png
index dae57ab..13c5cb4 100644
Binary files a/references/dock-revision/light-desktop-collapsed.png and b/references/dock-revision/light-desktop-collapsed.png differ
diff --git a/references/dock-revision/light-desktop-expanded.png b/references/dock-revision/light-desktop-expanded.png
index 9d3feee..cba750b 100644
Binary files a/references/dock-revision/light-desktop-expanded.png and b/references/dock-revision/light-desktop-expanded.png differ
diff --git a/references/dock-revision/light-mobile-account.png b/references/dock-revision/light-mobile-account.png
index e1c317b..07ef676 100644
Binary files a/references/dock-revision/light-mobile-account.png and b/references/dock-revision/light-mobile-account.png differ
diff --git a/references/dock-revision/light-mobile-collapsed.png b/references/dock-revision/light-mobile-collapsed.png
index 6d19d6b..17225c9 100644
Binary files a/references/dock-revision/light-mobile-collapsed.png and b/references/dock-revision/light-mobile-collapsed.png differ
diff --git a/references/dock-revision/light-mobile-expanded.png b/references/dock-revision/light-mobile-expanded.png
index 2159909..5e835ad 100644
Binary files a/references/dock-revision/light-mobile-expanded.png and b/references/dock-revision/light-mobile-expanded.png differ
diff --git a/references/dock-revision/light-tablet-account.png b/references/dock-revision/light-tablet-account.png
index 95382db..4fb7022 100644
Binary files a/references/dock-revision/light-tablet-account.png and b/references/dock-revision/light-tablet-account.png differ
diff --git a/references/dock-revision/light-tablet-collapsed.png b/references/dock-revision/light-tablet-collapsed.png
index bf38b96..a635fac 100644
Binary files a/references/dock-revision/light-tablet-collapsed.png and b/references/dock-revision/light-tablet-collapsed.png differ
diff --git a/references/dock-revision/light-tablet-expanded.png b/references/dock-revision/light-tablet-expanded.png
index f4dd05a..5d5c43e 100644
Binary files a/references/dock-revision/light-tablet-expanded.png and b/references/dock-revision/light-tablet-expanded.png differ
diff --git a/references/gallery.png b/references/gallery.png
index bc3ae07..b0c9586 100644
Binary files a/references/gallery.png and b/references/gallery.png differ
diff --git a/references/icons/catalog-dark-1440.png b/references/icons/catalog-dark-1440.png
index 1798ea1..34e5b70 100644
Binary files a/references/icons/catalog-dark-1440.png and b/references/icons/catalog-dark-1440.png differ
diff --git a/references/icons/catalog-dark-390.png b/references/icons/catalog-dark-390.png
index 287faa3..3d448a8 100644
Binary files a/references/icons/catalog-dark-390.png and b/references/icons/catalog-dark-390.png differ
diff --git a/references/icons/catalog-dark-768.png b/references/icons/catalog-dark-768.png
index 9ea87ba..90b8a24 100644
Binary files a/references/icons/catalog-dark-768.png and b/references/icons/catalog-dark-768.png differ
diff --git a/references/icons/catalog-light-1440.png b/references/icons/catalog-light-1440.png
index 25c91ee..e2003c3 100644
Binary files a/references/icons/catalog-light-1440.png and b/references/icons/catalog-light-1440.png differ
diff --git a/references/icons/catalog-light-390.png b/references/icons/catalog-light-390.png
index 9b3c11a..0e5f26d 100644
Binary files a/references/icons/catalog-light-390.png and b/references/icons/catalog-light-390.png differ
diff --git a/references/icons/catalog-light-768.png b/references/icons/catalog-light-768.png
index 48cb734..fabc40b 100644
Binary files a/references/icons/catalog-light-768.png and b/references/icons/catalog-light-768.png differ
diff --git a/references/identity/appearance-dark-desktop.png b/references/identity/appearance-dark-desktop.png
index 824883b..7916880 100644
Binary files a/references/identity/appearance-dark-desktop.png and b/references/identity/appearance-dark-desktop.png differ
diff --git a/references/identity/appearance-dark-mobile.png b/references/identity/appearance-dark-mobile.png
index 582d14b..eb52b9c 100644
Binary files a/references/identity/appearance-dark-mobile.png and b/references/identity/appearance-dark-mobile.png differ
diff --git a/references/identity/appearance-light-desktop.png b/references/identity/appearance-light-desktop.png
index ead9f01..f7dcfbc 100644
Binary files a/references/identity/appearance-light-desktop.png and b/references/identity/appearance-light-desktop.png differ
diff --git a/references/identity/appearance-light-mobile.png b/references/identity/appearance-light-mobile.png
index d84f49f..a451a13 100644
Binary files a/references/identity/appearance-light-mobile.png and b/references/identity/appearance-light-mobile.png differ
diff --git a/references/identity/applications-dark-desktop.png b/references/identity/applications-dark-desktop.png
index 9bf1204..f2f1497 100644
Binary files a/references/identity/applications-dark-desktop.png and b/references/identity/applications-dark-desktop.png differ
diff --git a/references/identity/applications-dark-mobile.png b/references/identity/applications-dark-mobile.png
index d3323a8..232d7b2 100644
Binary files a/references/identity/applications-dark-mobile.png and b/references/identity/applications-dark-mobile.png differ
diff --git a/references/identity/applications-light-desktop.png b/references/identity/applications-light-desktop.png
index c806cc0..2a1afa4 100644
Binary files a/references/identity/applications-light-desktop.png and b/references/identity/applications-light-desktop.png differ
diff --git a/references/identity/applications-light-mobile.png b/references/identity/applications-light-mobile.png
index 3d2571e..786ac69 100644
Binary files a/references/identity/applications-light-mobile.png and b/references/identity/applications-light-mobile.png differ
diff --git a/references/identity/identity-dark-desktop.png b/references/identity/identity-dark-desktop.png
index d5d96ee..eaebdde 100644
Binary files a/references/identity/identity-dark-desktop.png and b/references/identity/identity-dark-desktop.png differ
diff --git a/references/identity/identity-dark-mobile.png b/references/identity/identity-dark-mobile.png
index 7b2c853..3916ef8 100644
Binary files a/references/identity/identity-dark-mobile.png and b/references/identity/identity-dark-mobile.png differ
diff --git a/references/identity/identity-light-desktop.png b/references/identity/identity-light-desktop.png
index 3f6f66c..98e14a6 100644
Binary files a/references/identity/identity-light-desktop.png and b/references/identity/identity-light-desktop.png differ
diff --git a/references/identity/identity-light-mobile.png b/references/identity/identity-light-mobile.png
index ef7932b..9234fe9 100644
Binary files a/references/identity/identity-light-mobile.png and b/references/identity/identity-light-mobile.png differ
diff --git a/references/identity/profile-dark-desktop.png b/references/identity/profile-dark-desktop.png
index 3b12e42..1b21fb7 100644
Binary files a/references/identity/profile-dark-desktop.png and b/references/identity/profile-dark-desktop.png differ
diff --git a/references/identity/profile-dark-mobile.png b/references/identity/profile-dark-mobile.png
index cf99d88..b67ff1f 100644
Binary files a/references/identity/profile-dark-mobile.png and b/references/identity/profile-dark-mobile.png differ
diff --git a/references/identity/profile-light-desktop.png b/references/identity/profile-light-desktop.png
index 53a1e55..671f941 100644
Binary files a/references/identity/profile-light-desktop.png and b/references/identity/profile-light-desktop.png differ
diff --git a/references/identity/profile-light-mobile.png b/references/identity/profile-light-mobile.png
index 9ecf42e..b586786 100644
Binary files a/references/identity/profile-light-mobile.png and b/references/identity/profile-light-mobile.png differ
diff --git a/references/identity/qa.json b/references/identity/qa.json
index 6223a44..7b11523 100644
--- a/references/identity/qa.json
+++ b/references/identity/qa.json
@@ -1,5 +1,5 @@
{
- "date": "2026-11-30T20:51:26.151Z",
+ "date": "2026-11-30T23:10:11.396Z",
"passed": 94,
"failed": 0,
"failures": [],
diff --git a/references/identity/security-dark-desktop.png b/references/identity/security-dark-desktop.png
index dbfce5a..804a85c 100644
Binary files a/references/identity/security-dark-desktop.png and b/references/identity/security-dark-desktop.png differ
diff --git a/references/identity/security-dark-mobile.png b/references/identity/security-dark-mobile.png
index 5f45a2e..3215f7b 100644
Binary files a/references/identity/security-dark-mobile.png and b/references/identity/security-dark-mobile.png differ
diff --git a/references/identity/security-light-desktop.png b/references/identity/security-light-desktop.png
index 581f223..6a8a27f 100644
Binary files a/references/identity/security-light-desktop.png and b/references/identity/security-light-desktop.png differ
diff --git a/references/identity/security-light-mobile.png b/references/identity/security-light-mobile.png
index dfbe518..3465252 100644
Binary files a/references/identity/security-light-mobile.png and b/references/identity/security-light-mobile.png differ
diff --git a/references/identity/sessions-dark-desktop.png b/references/identity/sessions-dark-desktop.png
index 16b5b17..e58d698 100644
Binary files a/references/identity/sessions-dark-desktop.png and b/references/identity/sessions-dark-desktop.png differ
diff --git a/references/identity/sessions-dark-mobile.png b/references/identity/sessions-dark-mobile.png
index b1f5640..f8c073c 100644
Binary files a/references/identity/sessions-dark-mobile.png and b/references/identity/sessions-dark-mobile.png differ
diff --git a/references/identity/sessions-light-desktop.png b/references/identity/sessions-light-desktop.png
index 1fe33f9..fc5bcc7 100644
Binary files a/references/identity/sessions-light-desktop.png and b/references/identity/sessions-light-desktop.png differ
diff --git a/references/identity/sessions-light-mobile.png b/references/identity/sessions-light-mobile.png
index 7d31db0..b6e4cf4 100644
Binary files a/references/identity/sessions-light-mobile.png and b/references/identity/sessions-light-mobile.png differ
diff --git a/references/identity/totp-error-dark-desktop.png b/references/identity/totp-error-dark-desktop.png
index b465fee..f0993ff 100644
Binary files a/references/identity/totp-error-dark-desktop.png and b/references/identity/totp-error-dark-desktop.png differ
diff --git a/references/identity/totp-error-dark-mobile.png b/references/identity/totp-error-dark-mobile.png
index 39e8851..cb2c4c9 100644
Binary files a/references/identity/totp-error-dark-mobile.png and b/references/identity/totp-error-dark-mobile.png differ
diff --git a/references/identity/totp-error-light-desktop.png b/references/identity/totp-error-light-desktop.png
index deb883c..e5d5d6f 100644
Binary files a/references/identity/totp-error-light-desktop.png and b/references/identity/totp-error-light-desktop.png differ
diff --git a/references/identity/totp-error-light-mobile.png b/references/identity/totp-error-light-mobile.png
index 80bcf79..47ceb8c 100644
Binary files a/references/identity/totp-error-light-mobile.png and b/references/identity/totp-error-light-mobile.png differ
diff --git a/references/identity/user-access-light-desktop.png b/references/identity/user-access-light-desktop.png
index 8551c39..7cd5c73 100644
Binary files a/references/identity/user-access-light-desktop.png and b/references/identity/user-access-light-desktop.png differ
diff --git a/references/navigation-feedback/choices-dark-1440.png b/references/navigation-feedback/choices-dark-1440.png
new file mode 100644
index 0000000..ba6a432
Binary files /dev/null and b/references/navigation-feedback/choices-dark-1440.png differ
diff --git a/references/navigation-feedback/choices-dark-390.png b/references/navigation-feedback/choices-dark-390.png
new file mode 100644
index 0000000..3dff4a0
Binary files /dev/null and b/references/navigation-feedback/choices-dark-390.png differ
diff --git a/references/navigation-feedback/choices-dark-768.png b/references/navigation-feedback/choices-dark-768.png
new file mode 100644
index 0000000..4722862
Binary files /dev/null and b/references/navigation-feedback/choices-dark-768.png differ
diff --git a/references/navigation-feedback/choices-light-1440.png b/references/navigation-feedback/choices-light-1440.png
new file mode 100644
index 0000000..e2c8cd0
Binary files /dev/null and b/references/navigation-feedback/choices-light-1440.png differ
diff --git a/references/navigation-feedback/choices-light-390.png b/references/navigation-feedback/choices-light-390.png
new file mode 100644
index 0000000..438aa70
Binary files /dev/null and b/references/navigation-feedback/choices-light-390.png differ
diff --git a/references/navigation-feedback/choices-light-768.png b/references/navigation-feedback/choices-light-768.png
new file mode 100644
index 0000000..a5cbca0
Binary files /dev/null and b/references/navigation-feedback/choices-light-768.png differ
diff --git a/references/navigation-feedback/inputs-dark-1440.png b/references/navigation-feedback/inputs-dark-1440.png
new file mode 100644
index 0000000..c585c39
Binary files /dev/null and b/references/navigation-feedback/inputs-dark-1440.png differ
diff --git a/references/navigation-feedback/inputs-dark-390.png b/references/navigation-feedback/inputs-dark-390.png
new file mode 100644
index 0000000..0c12aaf
Binary files /dev/null and b/references/navigation-feedback/inputs-dark-390.png differ
diff --git a/references/navigation-feedback/inputs-dark-768.png b/references/navigation-feedback/inputs-dark-768.png
new file mode 100644
index 0000000..364c29e
Binary files /dev/null and b/references/navigation-feedback/inputs-dark-768.png differ
diff --git a/references/navigation-feedback/inputs-light-1440.png b/references/navigation-feedback/inputs-light-1440.png
new file mode 100644
index 0000000..e3f2079
Binary files /dev/null and b/references/navigation-feedback/inputs-light-1440.png differ
diff --git a/references/navigation-feedback/inputs-light-390.png b/references/navigation-feedback/inputs-light-390.png
new file mode 100644
index 0000000..a9492ee
Binary files /dev/null and b/references/navigation-feedback/inputs-light-390.png differ
diff --git a/references/navigation-feedback/inputs-light-768.png b/references/navigation-feedback/inputs-light-768.png
new file mode 100644
index 0000000..1c3eb9e
Binary files /dev/null and b/references/navigation-feedback/inputs-light-768.png differ
diff --git a/references/navigation-feedback/qa.json b/references/navigation-feedback/qa.json
new file mode 100644
index 0000000..1003f09
--- /dev/null
+++ b/references/navigation-feedback/qa.json
@@ -0,0 +1,5 @@
+{
+ "passed": 79,
+ "errors": [],
+ "checks": "Submenu hierarchy/routes/active section/keys/inert/short viewport; readonly and no landmark outline; control spacing/heights; choice pill centering and behavior; four toast variants/roles/layout; modal close hit testing; paused timers/persistent errors/text safety/reduced motion"
+}
diff --git a/references/navigation-feedback/selection-preview-dark.png b/references/navigation-feedback/selection-preview-dark.png
new file mode 100644
index 0000000..d57f2f1
Binary files /dev/null and b/references/navigation-feedback/selection-preview-dark.png differ
diff --git a/references/navigation-feedback/submenu-dark-1440.png b/references/navigation-feedback/submenu-dark-1440.png
new file mode 100644
index 0000000..7786a2d
Binary files /dev/null and b/references/navigation-feedback/submenu-dark-1440.png differ
diff --git a/references/navigation-feedback/submenu-dark-390.png b/references/navigation-feedback/submenu-dark-390.png
new file mode 100644
index 0000000..f6f8870
Binary files /dev/null and b/references/navigation-feedback/submenu-dark-390.png differ
diff --git a/references/navigation-feedback/submenu-dark-768.png b/references/navigation-feedback/submenu-dark-768.png
new file mode 100644
index 0000000..7786a2d
Binary files /dev/null and b/references/navigation-feedback/submenu-dark-768.png differ
diff --git a/references/navigation-feedback/submenu-light-1440.png b/references/navigation-feedback/submenu-light-1440.png
new file mode 100644
index 0000000..f230db7
Binary files /dev/null and b/references/navigation-feedback/submenu-light-1440.png differ
diff --git a/references/navigation-feedback/submenu-light-390.png b/references/navigation-feedback/submenu-light-390.png
new file mode 100644
index 0000000..0ad6ffc
Binary files /dev/null and b/references/navigation-feedback/submenu-light-390.png differ
diff --git a/references/navigation-feedback/submenu-light-768.png b/references/navigation-feedback/submenu-light-768.png
new file mode 100644
index 0000000..f5628f6
Binary files /dev/null and b/references/navigation-feedback/submenu-light-768.png differ
diff --git a/references/navigation-feedback/toast-error-dark.png b/references/navigation-feedback/toast-error-dark.png
new file mode 100644
index 0000000..c5e50d6
Binary files /dev/null and b/references/navigation-feedback/toast-error-dark.png differ
diff --git a/references/navigation-feedback/toast-error-light.png b/references/navigation-feedback/toast-error-light.png
new file mode 100644
index 0000000..79c3e3b
Binary files /dev/null and b/references/navigation-feedback/toast-error-light.png differ
diff --git a/references/navigation-feedback/toast-info-dark.png b/references/navigation-feedback/toast-info-dark.png
new file mode 100644
index 0000000..0feb7d1
Binary files /dev/null and b/references/navigation-feedback/toast-info-dark.png differ
diff --git a/references/navigation-feedback/toast-info-light.png b/references/navigation-feedback/toast-info-light.png
new file mode 100644
index 0000000..4635121
Binary files /dev/null and b/references/navigation-feedback/toast-info-light.png differ
diff --git a/references/navigation-feedback/toast-success-dark.png b/references/navigation-feedback/toast-success-dark.png
new file mode 100644
index 0000000..3487683
Binary files /dev/null and b/references/navigation-feedback/toast-success-dark.png differ
diff --git a/references/navigation-feedback/toast-success-light.png b/references/navigation-feedback/toast-success-light.png
new file mode 100644
index 0000000..d98ce5a
Binary files /dev/null and b/references/navigation-feedback/toast-success-light.png differ
diff --git a/references/navigation-feedback/toast-warning-dark.png b/references/navigation-feedback/toast-warning-dark.png
new file mode 100644
index 0000000..cb98d52
Binary files /dev/null and b/references/navigation-feedback/toast-warning-dark.png differ
diff --git a/references/navigation-feedback/toast-warning-light.png b/references/navigation-feedback/toast-warning-light.png
new file mode 100644
index 0000000..a3499d5
Binary files /dev/null and b/references/navigation-feedback/toast-warning-light.png differ
diff --git a/references/qa-summary.json b/references/qa-summary.json
index a55963f..70217c0 100644
--- a/references/qa-summary.json
+++ b/references/qa-summary.json
@@ -1,5 +1,5 @@
{
- "clientDate": "2026-11-30",
+ "clientDate": "2026-12-01",
"design": "dock",
"entry": "standalone root index.html",
"corePassed": 50,
@@ -8,13 +8,13 @@
"totpGeometryPassed": 4,
"feedbackAndScrollPassed": 24,
"sitePassed": 35,
- "totalPassed": 316,
+ "totalPassed": 470,
"failed": 0,
"errors": [],
- "export": "110 files; SSH/log workspaces; vendored xterm and licenses; nested icon ZIP; CRC and standalone runtime verified",
+ "export": "111 files; shared toast notifier; warning token; submenu and choice pills; local xterm runtime",
"iconChecksPassed": 91,
- "polishScenariosPassed": 8,
"workspacesPassed": 83,
- "lastWorkspaceRunPassed": 202,
- "lastWorkspaceDate": "2026-12-01"
+ "lastWorkspaceDate": "2026-12-01",
+ "navigationFeedbackPassed": 79,
+ "historicalPolishScenariosPassed": 8
}
diff --git a/references/site/dark-desktop.png b/references/site/dark-desktop.png
index 048b08d..2d8afd3 100644
Binary files a/references/site/dark-desktop.png and b/references/site/dark-desktop.png differ
diff --git a/references/site/dark-mobile.png b/references/site/dark-mobile.png
index 2f245da..eee8210 100644
Binary files a/references/site/dark-mobile.png and b/references/site/dark-mobile.png differ
diff --git a/references/site/light-desktop.png b/references/site/light-desktop.png
index 9d3eae1..cec04a3 100644
Binary files a/references/site/light-desktop.png and b/references/site/light-desktop.png differ
diff --git a/references/site/light-mobile.png b/references/site/light-mobile.png
index 0614c83..973685c 100644
Binary files a/references/site/light-mobile.png and b/references/site/light-mobile.png differ
diff --git a/references/site/navigation-dark-desktop.png b/references/site/navigation-dark-desktop.png
index 1c84820..6190f8e 100644
Binary files a/references/site/navigation-dark-desktop.png and b/references/site/navigation-dark-desktop.png differ
diff --git a/references/site/navigation-dark-mobile.png b/references/site/navigation-dark-mobile.png
index 0ee03d9..620ec45 100644
Binary files a/references/site/navigation-dark-mobile.png and b/references/site/navigation-dark-mobile.png differ
diff --git a/references/site/navigation-light-desktop.png b/references/site/navigation-light-desktop.png
index f525e7d..01bf3a2 100644
Binary files a/references/site/navigation-light-desktop.png and b/references/site/navigation-light-desktop.png differ
diff --git a/references/site/navigation-light-mobile.png b/references/site/navigation-light-mobile.png
index 174d357..755bcbb 100644
Binary files a/references/site/navigation-light-mobile.png and b/references/site/navigation-light-mobile.png differ
diff --git a/references/workspaces/logs-dark-desktop.png b/references/workspaces/logs-dark-desktop.png
index ee840ae..38368dd 100644
Binary files a/references/workspaces/logs-dark-desktop.png and b/references/workspaces/logs-dark-desktop.png differ
diff --git a/references/workspaces/logs-dark-mobile.png b/references/workspaces/logs-dark-mobile.png
index 367d990..fac8796 100644
Binary files a/references/workspaces/logs-dark-mobile.png and b/references/workspaces/logs-dark-mobile.png differ
diff --git a/references/workspaces/logs-dark-tablet.png b/references/workspaces/logs-dark-tablet.png
index 656a6a2..b782646 100644
Binary files a/references/workspaces/logs-dark-tablet.png and b/references/workspaces/logs-dark-tablet.png differ
diff --git a/references/workspaces/logs-light-desktop.png b/references/workspaces/logs-light-desktop.png
index a163ce8..984cfcd 100644
Binary files a/references/workspaces/logs-light-desktop.png and b/references/workspaces/logs-light-desktop.png differ
diff --git a/references/workspaces/logs-light-mobile.png b/references/workspaces/logs-light-mobile.png
index 5b7a2be..0b75e7d 100644
Binary files a/references/workspaces/logs-light-mobile.png and b/references/workspaces/logs-light-mobile.png differ
diff --git a/references/workspaces/logs-light-tablet.png b/references/workspaces/logs-light-tablet.png
index 163fda8..878c764 100644
Binary files a/references/workspaces/logs-light-tablet.png and b/references/workspaces/logs-light-tablet.png differ
diff --git a/references/workspaces/ssh-dark-desktop.png b/references/workspaces/ssh-dark-desktop.png
index 6ddf262..909ae99 100644
Binary files a/references/workspaces/ssh-dark-desktop.png and b/references/workspaces/ssh-dark-desktop.png differ
diff --git a/references/workspaces/ssh-dark-mobile.png b/references/workspaces/ssh-dark-mobile.png
index f113b27..ea58e7e 100644
Binary files a/references/workspaces/ssh-dark-mobile.png and b/references/workspaces/ssh-dark-mobile.png differ
diff --git a/references/workspaces/ssh-dark-tablet.png b/references/workspaces/ssh-dark-tablet.png
index 87b9165..e460f0c 100644
Binary files a/references/workspaces/ssh-dark-tablet.png and b/references/workspaces/ssh-dark-tablet.png differ
diff --git a/references/workspaces/ssh-light-desktop.png b/references/workspaces/ssh-light-desktop.png
index be11dbc..2944aca 100644
Binary files a/references/workspaces/ssh-light-desktop.png and b/references/workspaces/ssh-light-desktop.png differ
diff --git a/references/workspaces/ssh-light-mobile.png b/references/workspaces/ssh-light-mobile.png
index 9a4f382..fa1b74e 100644
Binary files a/references/workspaces/ssh-light-mobile.png and b/references/workspaces/ssh-light-mobile.png differ
diff --git a/references/workspaces/ssh-light-tablet.png b/references/workspaces/ssh-light-tablet.png
index 9e4d4f3..98263b7 100644
Binary files a/references/workspaces/ssh-light-tablet.png and b/references/workspaces/ssh-light-tablet.png differ
diff --git a/scripts/serve.py b/scripts/serve.py
index 76ee514..aa4775e 100644
--- a/scripts/serve.py
+++ b/scripts/serve.py
@@ -1,22 +1,37 @@
"""Local Dock preview with the same cache policy as the Node server."""
import os
+import socket
from functools import partial
from http.server import SimpleHTTPRequestHandler, ThreadingHTTPServer
from pathlib import Path
class DockHandler(SimpleHTTPRequestHandler):
+ def log_request(self, code="-", size="-"):
+ if isinstance(code, int) and code >= 400:
+ super().log_request(code, size)
+
def end_headers(self):
self.send_header("Cache-Control", "no-store")
super().end_headers()
+class DockServer(ThreadingHTTPServer):
+ request_queue_size = 128
+ allow_reuse_address = os.name != "nt"
+
+ def server_bind(self):
+ if os.name == "nt":
+ self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_EXCLUSIVEADDRUSE, 1)
+ super().server_bind()
+
+
if __name__ == "__main__":
root = Path(__file__).resolve().parent.parent
port = int(os.environ.get("PORT", "4173"))
handler = partial(DockHandler, directory=str(root))
- with ThreadingHTTPServer(("127.0.0.1", port), handler) as server:
+ with DockServer(("127.0.0.1", port), handler) as server:
print(f"Anidev Dock: http://127.0.0.1:{port}/", flush=True)
try:
server.serve_forever()
diff --git a/tests/icons.mjs b/tests/icons.mjs
index e320d11..bfc8f86 100644
--- a/tests/icons.mjs
+++ b/tests/icons.mjs
@@ -95,7 +95,9 @@ try {
await p.goto(`${base}/?page=security&theme=${theme}&locale=${locale}`);
await p.locator(".nav-icon").first().waitFor();
const nav = await p.locator(".navigation").boundingBox();
- for (const button of await p.locator(".nav-links button").all()) {
+ for (const button of await p
+ .locator(".nav-links > button, .nav-group-toggle")
+ .all()) {
const rect = await button.boundingBox(),
glyph = await button.locator("svg").boundingBox();
assert.equal(glyph.width, 24);
diff --git a/tests/navigation-feedback.mjs b/tests/navigation-feedback.mjs
new file mode 100644
index 0000000..4522283
--- /dev/null
+++ b/tests/navigation-feedback.mjs
@@ -0,0 +1,312 @@
+import { chromium } from "playwright";
+import assert from "node:assert/strict";
+import { mkdir, writeFile } from "node:fs/promises";
+const base = process.env.BASE_URL || "http://127.0.0.1:4173";
+const b = await chromium.launch({
+ executablePath:
+ process.env.PLAYWRIGHT_EXECUTABLE_PATH ||
+ "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe",
+ headless: true,
+});
+const p = await b.newPage();
+const errors = [];
+p.on("pageerror", (e) => errors.push(e.message));
+let passed = 0;
+await mkdir("references/navigation-feedback", { recursive: true });
+try {
+ for (const theme of ["light", "dark"])
+ for (const width of [1440, 768, 390])
+ for (const locale of ["ru", "en"]) {
+ await p.setViewportSize({ width, height: 900 });
+ await p.goto(
+ `${base}/?page=components&theme=${theme}&locale=${locale}`,
+ );
+ const field = p.locator(".sample-control-row input");
+ await field.waitFor();
+ const before = await field.inputValue();
+ await field.click();
+ await p.keyboard.type("should not edit");
+ assert.equal(await field.inputValue(), before);
+ assert.equal(
+ await field.evaluate((e) => document.activeElement === e),
+ true,
+ );
+ assert.equal(
+ await p
+ .locator("#content")
+ .evaluate((e) => getComputedStyle(e).outlineStyle),
+ "none",
+ );
+ const { select, input } = await p
+ .locator(".sample-control-row")
+ .evaluate((e) => ({
+ select: e.querySelector("select").getBoundingClientRect().toJSON(),
+ input: e.querySelector("input").getBoundingClientRect().toJSON(),
+ }));
+ assert.ok(Math.abs(select.height - input.height) < 0.1);
+ if (width > 600) assert.ok(input.x - select.x - select.width >= 11.5);
+ else assert.ok(input.y - select.y - select.height >= 11.5);
+ for (const label of await p.locator(".choice-pill").all()) {
+ const { rect, control, text } = await label.evaluate((e) => ({
+ rect: e.getBoundingClientRect().toJSON(),
+ control: e.querySelector("input").getBoundingClientRect().toJSON(),
+ text: e.querySelector("span").getBoundingClientRect().toJSON(),
+ }));
+ assert.ok(
+ Math.abs(
+ control.y + control.height / 2 - text.y - text.height / 2,
+ ) < 0.1,
+ );
+ assert.ok(
+ Math.abs(
+ control.y + control.height / 2 - rect.y - rect.height / 2,
+ ) < 0.1,
+ );
+ }
+ await p.locator('input[name=retention][value="90"]').check();
+ assert.equal(
+ await p.locator('input[name=retention][value="30"]').isChecked(),
+ false,
+ );
+ await p.locator("#check-demo").uncheck();
+ assert.equal(await p.locator("#check-demo").isChecked(), false);
+ assert.ok(
+ await p.evaluate(
+ () => document.documentElement.scrollWidth <= innerWidth,
+ ),
+ );
+ passed++;
+ if (locale === "ru")
+ await p.locator(".sample-control-row").screenshot({
+ path: `references/navigation-feedback/inputs-${theme}-${width}.png`,
+ });
+ await p.locator(".dock-brand").click();
+ await p.waitForTimeout(280);
+ const parent = p.locator(".nav-group-toggle"),
+ submenu = p.locator("#administration-submenu");
+ assert.equal(await parent.getAttribute("aria-expanded"), "false");
+ assert.equal(await submenu.evaluate((e) => e.inert), true);
+ await parent.click();
+ await p.waitForTimeout(220);
+ assert.equal(await parent.getAttribute("aria-expanded"), "true");
+ assert.equal(await submenu.evaluate((e) => e.inert), false);
+ assert.equal(await submenu.locator("button").count(), 2);
+ const textBounds = await parent
+ .locator(".nav-group-label")
+ .evaluate((e) => {
+ const range = document.createRange();
+ range.setStart(e.firstChild, 0);
+ range.setEnd(e.firstChild, e.firstChild.textContent.length);
+ return {
+ right: range.getBoundingClientRect().right,
+ chevron: e.querySelector("svg").getBoundingClientRect().left,
+ };
+ });
+ assert.ok(
+ textBounds.right <= textBounds.chevron - 3,
+ JSON.stringify(textBounds),
+ );
+ await submenu.locator("[data-page=ssh]").click();
+ await p.locator(".xterm-rows").waitFor();
+ assert.equal(
+ await p.locator(".dock-brand").getAttribute("aria-expanded"),
+ "true",
+ );
+ assert.equal(
+ await p.locator(".nav-group-toggle").getAttribute("data-active"),
+ "true",
+ );
+ assert.equal(
+ await p
+ .locator("#administration-submenu [data-page=ssh]")
+ .getAttribute("aria-current"),
+ "page",
+ );
+ await p.locator("#administration-submenu [data-page=logs]").click();
+ await p.locator(".log-row").first().waitFor();
+ assert.equal(
+ await p.locator(".dock-brand").getAttribute("aria-expanded"),
+ "true",
+ );
+ assert.equal(
+ await p.locator(".nav-group-toggle").getAttribute("aria-expanded"),
+ "true",
+ );
+ if (locale === "ru")
+ await p.locator(".navigation").screenshot({
+ path: `references/navigation-feedback/submenu-${theme}-${width}.png`,
+ });
+ await p.locator(".nav-group-toggle").focus();
+ await p.keyboard.press("ArrowLeft");
+ assert.equal(
+ await p.locator(".nav-group-toggle").getAttribute("aria-expanded"),
+ "false",
+ );
+ await p.keyboard.press("ArrowRight");
+ assert.equal(
+ await p
+ .locator("#administration-submenu button")
+ .first()
+ .evaluate((e) => document.activeElement === e),
+ true,
+ );
+ await p.keyboard.press("Escape");
+ assert.equal(
+ await p.locator(".nav-group-toggle").getAttribute("aria-expanded"),
+ "false",
+ );
+ assert.equal(
+ await p.locator(".dock-brand").getAttribute("aria-expanded"),
+ "true",
+ );
+ await p.keyboard.press("Escape");
+ assert.equal(
+ await p.locator(".dock-brand").getAttribute("aria-expanded"),
+ "false",
+ );
+ assert.equal(
+ await p.locator("#administration-submenu").evaluate((e) => e.inert),
+ true,
+ );
+ passed++;
+ await p.goto(
+ `${base}/?page=components&theme=${theme}&locale=${locale}`,
+ );
+ for (const type of ["success", "info", "warning", "error"]) {
+ await p.locator(`[data-action=toast-${type}]`).click();
+ await p.locator("#toast:popover-open").waitFor();
+ await p.waitForTimeout(200);
+ assert.equal(
+ await p.locator("#toast").getAttribute("data-type"),
+ type,
+ );
+ assert.equal(
+ await p.locator("#toast").getAttribute("role"),
+ type === "error" ? "alert" : "status",
+ );
+ assert.ok(await p.locator(".toast-message").innerText());
+ const rect = await p.locator("#toast").boundingBox();
+ assert.ok(rect.x >= 12 && rect.x + rect.width <= width - 12);
+ if (locale === "ru" && width === 1440)
+ await p.locator("#toast").screenshot({
+ path: `references/navigation-feedback/toast-${type}-${theme}.png`,
+ });
+ await p.locator("[data-toast-dismiss]").click();
+ assert.equal(await p.locator("#toast").isVisible(), false);
+ passed++;
+ }
+ if (locale === "ru")
+ await p
+ .locator(".choice-pill")
+ .first()
+ .locator("..")
+ .screenshot({
+ path: `references/navigation-feedback/choices-${theme}-${width}.png`,
+ });
+ }
+ await p.setViewportSize({ width: 1440, height: 900 });
+ await p.goto(base + "/?page=components&theme=dark");
+ await p.locator("[data-action=create-key]").click();
+ await p.locator("#copy-key").click();
+ await p.locator("#toast:popover-open").waitFor();
+ assert.equal(
+ await p
+ .locator("#toast")
+ .evaluate((e) => Boolean(e.closest("dialog[open]"))),
+ true,
+ );
+ await p.locator("[data-toast-dismiss]").click();
+ assert.equal(await p.locator("#dialog").evaluate((e) => e.open), true);
+ assert.equal(await p.locator("#toast").isVisible(), false);
+ assert.equal(await p.evaluate(() => document.activeElement?.id), "copy-key");
+ await p.keyboard.press("Escape");
+ passed++;
+ await p.evaluate(async () => {
+ const { createNotifier } = await import("/components/toast.js");
+ const node = document.createElement("div");
+ node.id = "timer-toast";
+ document.body.append(node);
+ window.notifyFixture = createNotifier(node, { t: (ru, en) => en });
+ });
+ await p.evaluate(() =>
+ window.notifyFixture("Pause timer test", { duration: 500 }),
+ );
+ await p.locator("#timer-toast").hover();
+ await p.waitForTimeout(650);
+ assert.equal(await p.locator("#timer-toast").isVisible(), true);
+ await p.mouse.move(10, 10);
+ await p.waitForTimeout(600);
+ assert.equal(await p.locator("#timer-toast").isVisible(), false);
+ passed++;
+ await p.evaluate(() =>
+ window.notifyFixture("
", { type: "error" }),
+ );
+ await p.waitForTimeout(5200);
+ assert.equal(await p.locator("#timer-toast").isVisible(), true);
+ assert.equal(await p.locator("#timer-toast img").count(), 0);
+ await p.locator("#timer-toast [data-toast-dismiss]").click();
+ passed++;
+ await p.evaluate(() =>
+ window.notifyFixture("Unknown type fallback", {
+ type: "constructor",
+ duration: 0,
+ }),
+ );
+ assert.equal(
+ await p.locator("#timer-toast").getAttribute("data-type"),
+ "info",
+ );
+ await p.evaluate(() => window.notifyFixture.dismiss());
+ passed++;
+ await p.emulateMedia({ reducedMotion: "reduce" });
+ await p.evaluate(() =>
+ window.notifyFixture("Reduced motion", { type: "info" }),
+ );
+ assert.equal(
+ await p
+ .locator("#timer-toast")
+ .evaluate((e) => getComputedStyle(e).animationName),
+ "none",
+ );
+ await p.evaluate(() => window.notifyFixture.dismiss());
+ passed++;
+ await p.goto(base + "/?page=ssh&theme=dark");
+ await p.locator(".xterm-rows").waitFor();
+ await p.locator(".dock-brand").click();
+ await p.waitForTimeout(300);
+ assert.equal(
+ await p.locator(".nav-group-toggle").getAttribute("aria-expanded"),
+ "true",
+ );
+ await p.keyboard.press("Escape");
+ passed++;
+ await p.setViewportSize({ width: 390, height: 600 });
+ await p.goto(base + "/?page=logs");
+ await p.locator(".dock-brand").click();
+ await p.waitForTimeout(300);
+ const nav = p.locator(".nav-links");
+ await nav.evaluate((e) => (e.scrollTop = e.scrollHeight));
+ assert.equal(await p.locator(".dock-account").isVisible(), true);
+ const account = await p.locator(".dock-account").boundingBox();
+ assert.ok(account.y + account.height <= 600);
+ passed++;
+ assert.deepEqual(errors, []);
+ await writeFile(
+ "references/navigation-feedback/qa.json",
+ JSON.stringify(
+ {
+ passed,
+ errors,
+ checks:
+ "Submenu hierarchy/routes/active section/keys/inert/short viewport; readonly and no landmark outline; control spacing/heights; choice pill centering and behavior; four toast variants/roles/layout; modal close hit testing; paused timers/persistent errors/text safety/reduced motion",
+ },
+ null,
+ 2,
+ ) + "\n",
+ );
+ console.log(
+ `Navigation and feedback: ${passed} checks passed, no runtime errors`,
+ );
+} finally {
+ await b.close();
+}
diff --git a/tokens/dock/dark.css b/tokens/dock/dark.css
index 2b91283..0414166 100644
--- a/tokens/dock/dark.css
+++ b/tokens/dock/dark.css
@@ -8,6 +8,7 @@
--color-on-accent: #101810;
--color-danger: #ffafa5;
--color-success: #a2d3ab;
+--color-warning: #e8c889;
--color-row-hover: #27434b;
--color-row-active: #2b4a53;
--radius-control: 10px;
diff --git a/tokens/dock/dark.json b/tokens/dock/dark.json
index 813b612..cef62cb 100644
--- a/tokens/dock/dark.json
+++ b/tokens/dock/dark.json
@@ -8,6 +8,7 @@
"color.on-accent": "#101810",
"color.danger": "#ffafa5",
"color.success": "#a2d3ab",
+ "color.warning": "#e8c889",
"color.row-hover": "#27434b",
"color.row-active": "#2b4a53",
"radius.control": "10px",
diff --git a/tokens/dock/light.css b/tokens/dock/light.css
index c6246fd..5c7f37b 100644
--- a/tokens/dock/light.css
+++ b/tokens/dock/light.css
@@ -8,6 +8,7 @@
--color-on-accent: #ffffff;
--color-danger: #a22923;
--color-success: #26623b;
+--color-warning: #795519;
--color-row-hover: #dcebed;
--color-row-active: #cde3e5;
--radius-control: 10px;
diff --git a/tokens/dock/light.json b/tokens/dock/light.json
index 57969b2..cd5e11d 100644
--- a/tokens/dock/light.json
+++ b/tokens/dock/light.json
@@ -8,6 +8,7 @@
"color.on-accent": "#ffffff",
"color.danger": "#a22923",
"color.success": "#26623b",
+ "color.warning": "#795519",
"color.row-hover": "#dcebed",
"color.row-active": "#cde3e5",
"radius.control": "10px",