Keep Dock exclusive and polish controls chart and overlays

This commit is contained in:
SantaSpeen committed 2026-11-30 23:13:57 +03:00
1 parent 84c4b3030a
commit 17011ebd4d
38 files changed
+240 -68

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@
node scripts/serve.mjs
```
Просмотр: [http://127.0.0.1:4173/](http://127.0.0.1:4173/). Нужен Node.js 22+, зависимости для просмотра не требуются. Альтернатива: `python -m http.server 4173 --bind 127.0.0.1`. Прямой file:// не поддерживает ES modules.
Просмотр: [http://127.0.0.1:4173/](http://127.0.0.1:4173/). Нужен Node.js 22+ или Python 3; зависимости для просмотра не требуются. Альтернатива: `python scripts/serve.py`. Оба сервера запрещают кэширование, чтобы после обновления открывался актуальный Dock. Прямой file:// не поддерживает ES modules.
## Возможности
+1 -1
View File
@@ -7,6 +7,6 @@ where node >nul 2>nul
if not errorlevel 1 (
node scripts/serve.mjs
) else (
python -m http.server 4173 --bind 127.0.0.1
python scripts/serve.py
)
pause
+22 -20
View File
@@ -1,27 +1,29 @@
# Контракт компонентов
Уточнения Dock: переключатель 44×24px с бегунком 18px и равными отступами; перемещение и смена цвета — 160ms. Выпадающие и контекстные меню имеют скругление control и появление 180ms; reduced motion отключает анимацию. График показывает ближайшее время и p95 при наведении/касании; стрелки, Home/End и Escape доступны с клавиатуры. Числовая таблица сохранена. Тост использует manual popover в верхнем слое браузера и виден поверх модального затемнения.
Исполняемые образцы: экран Components; таблица и фильтры — Users; вкладки — Settings; вход — Authentication. Основная стилизация в `system.css`.
| Компонент | Состояния и взаимодействия |
|---|---|
| Button | Rest, hover, active, focus-visible, native disabled, aria-busy на ожидании. Enter/Space. Primary для основного действия; danger для опасного |
| Input / Select | Связанный label, native валидация и клавиатура, focus, disabled, aria-invalid + текст ошибки. Пароль допускает вставку и password manager |
| Checkbox / Radio / Switch | Native inputs, label, checked, disabled; switch имеет role=switch. Space переключает, radio — стрелки браузера |
| Table / Pagination | Семантические th/td, caption, aria-sort. Сортировка имени/роли, фильтр, поиск, выбор страницы, частичный выбор, 5 строк/страница. Мобильный горизонтальный скролл только в table-wrap |
| Search / Filter | Обновляют список без потери фокуса, сбрасывают страницу, пустой результат со сбросом |
| Sidebar / Header / Breadcrumb | Активный раздел aria-current, подписанные иконки, mobile раскрытие. Breadcrumb показывает контекст; не изображает несуществующие ссылки |
| Tabs | tablist/tab/tabpanel, aria-selected, roving tabindex, стрелки/Home/End |
| Dropdown | Native details/summary для списка действий: Enter/Space раскрывают, Tab проходит действия, Esc закрывает |
| Context menu | Правая кнопка, Shift+F10, Enter; role=menu/menuitem, стрелки, Esc, возврат фокуса |
| Modal / Drawer | Native dialog.showModal: фон inert, фокус внутри, Esc/Close, возврат к инициатору. Заголовок aria-labelledby. Drawer использует тот же контракт |
| Tooltip | Hover и focus-within, role=tooltip, aria-describedby. Не содержит обязательной информации |
| Toast | role=status/aria-live=polite, видимый результат без перехвата фокуса |
| Status | Текст + семантический цвет; без зависимости от цвета |
| Chart | SVG с подписью, единицами, периодом и числовой таблицей. Смена периода. Без декоративных данных и автоматического потока |
| Skeleton | aria-busy, метка загрузки, стабильная геометрия; без бесконечного shimmer |
| Empty / Error | Объяснение и следующее действие: сброс фильтров / повторить |
| Authentication | Native required/email/minlength, autocomplete. Демо-вход, SSO-форма и восстановление; реальная авторизация не подключена |
| Command palette | Ctrl/⌘K, поиск, стрелки, Enter, Esc. Native dialog для управления фокусом |
| Компонент | Состояния и взаимодействия |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Button | Rest, hover, active, focus-visible, native disabled, aria-busy на ожидании. Enter/Space. Primary для основного действия; danger для опасного |
| Input / Select | Связанный label, native валидация и клавиатура, focus, disabled, aria-invalid + текст ошибки. Пароль допускает вставку и password manager |
| Checkbox / Radio / Switch | Native inputs, label, checked, disabled; switch имеет role=switch. Space переключает, radio — стрелки браузера |
| Table / Pagination | Семантические th/td, caption, aria-sort. Сортировка имени/роли, фильтр, поиск, выбор страницы, частичный выбор, 5 строк/страница. Мобильный горизонтальный скролл только в table-wrap |
| Search / Filter | Обновляют список без потери фокуса, сбрасывают страницу, пустой результат со сбросом |
| Sidebar / Header / Breadcrumb | Активный раздел aria-current, подписанные иконки, mobile раскрытие. Breadcrumb показывает контекст; не изображает несуществующие ссылки |
| Tabs | tablist/tab/tabpanel, aria-selected, roving tabindex, стрелки/Home/End |
| Dropdown | Native details/summary для списка действий: Enter/Space раскрывают, Tab проходит действия, Esc закрывает |
| Context menu | Правая кнопка, Shift+F10, Enter; role=menu/menuitem, стрелки, Esc, возврат фокуса |
| Modal / Drawer | Native dialog.showModal: фон inert, фокус внутри, Esc/Close, возврат к инициатору. Заголовок aria-labelledby. Drawer использует тот же контракт |
| Tooltip | Hover и focus-within, role=tooltip, aria-describedby. Не содержит обязательной информации |
| Toast | role=status/aria-live=polite, видимый результат без перехвата фокуса |
| Status | Текст + семантический цвет; без зависимости от цвета |
| Chart | SVG с подписью, единицами, периодом и числовой таблицей. Смена периода. Без декоративных данных и автоматического потока |
| Skeleton | aria-busy, метка загрузки, стабильная геометрия; без бесконечного shimmer |
| Empty / Error | Объяснение и следующее действие: сброс фильтров / повторить |
| Authentication | Native required/email/minlength, autocomplete. Демо-вход, SSO-форма и восстановление; реальная авторизация не подключена |
| Command palette | Ctrl/⌘K, поиск, стрелки, Enter, Esc. Native dialog для управления фокусом |
Hover и active — временные указательные состояния; focus-visible — клавиатурное. Loading и error применяются к операциям и вводам, а не к декоративным статусам. Системные компоненты не должны имитировать состояния, не имеющие смысла для их роли.
+75 -10
View File
@@ -361,6 +361,42 @@ small {
height: 100%;
overflow: visible;
}
.chart-plot {
position: relative;
height: 100%;
cursor: crosshair;
touch-action: pan-y;
}
.chart-guide {
position: absolute;
top: 0;
bottom: 0;
border-left: 1px dashed var(--color-muted);
pointer-events: none;
}
.chart-dot {
position: absolute;
width: 9px;
height: 9px;
border: 2px solid var(--color-surface);
border-radius: 50%;
background: var(--color-accent);
transform: translate(-50%, -50%);
pointer-events: none;
}
.chart-tooltip {
position: absolute;
top: 4px;
padding: 6px 9px;
border: 1px solid var(--color-border);
border-radius: var(--radius-control);
background: var(--color-surface);
color: var(--color-text);
box-shadow: 0 3px 12px #0002;
font-size: 12px;
white-space: nowrap;
pointer-events: none;
}
.chart-grid {
stroke: var(--color-border);
stroke-dasharray: 3 4;
@@ -554,29 +590,35 @@ td .person {
justify-content: flex-end;
gap: 10px;
}
.switch {
input[type="checkbox"].switch {
appearance: none;
width: 36px !important;
height: 21px !important;
width: 44px;
height: 24px;
padding: 0;
margin: 0;
background: var(--color-border);
border-radius: 12px !important;
border: 1px solid transparent;
border-radius: 999px;
position: relative;
transition: background-color 160ms ease;
}
.switch:after {
content: "";
width: 15px;
height: 15px;
width: 18px;
height: 18px;
position: absolute;
top: 3px;
left: 3px;
top: 50%;
left: 2px;
transform: translateY(-50%);
border-radius: 50%;
background: var(--color-surface);
transition: transform 160ms ease;
}
.switch:checked {
input[type="checkbox"].switch:checked {
background: var(--color-accent);
}
.switch:checked:after {
left: 18px;
transform: translate(20px, -50%);
}
.auth-layout {
display: grid;
@@ -731,8 +773,23 @@ summary {
min-width: 180px;
padding: 6px;
border: 1px solid var(--color-border);
border-radius: var(--radius-control);
z-index: 5;
box-shadow: 0 6px 20px #0002;
transform-origin: top left;
}
details[open] > .dropdown {
animation: menu-open 180ms ease-out both;
}
@keyframes menu-open {
from {
opacity: 0;
transform: translateY(-6px) scale(0.98);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.dropdown button {
display: block;
@@ -751,9 +808,11 @@ summary {
position: fixed;
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: var(--radius-control);
padding: 6px;
z-index: 30;
box-shadow: 0 5px 20px #0003;
animation: menu-open 180ms ease-out both;
}
.context-menu button {
display: block;
@@ -867,6 +926,9 @@ dialog > p {
}
#toast {
position: fixed;
inset: auto;
margin: 0;
border: 0;
bottom: 25px;
left: 50%;
transform: translateX(-50%);
@@ -879,6 +941,9 @@ dialog > p {
display: none;
max-width: calc(100% - 32px);
}
#toast:popover-open {
display: block;
}
.skip {
position: fixed;
top: -100px;
+5 -4
View File
@@ -3,14 +3,15 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Anidev</title>
<link rel="stylesheet" href="components/system.css" />
<title>Anidev Dock</title>
<meta http-equiv="Cache-Control" content="no-store" />
<link rel="stylesheet" href="components/system.css?v=dock-only-2" />
</head>
<body>
<body data-concept="dock">
<a class="skip" href="#content">Skip to content</a>
<div id="app"></div>
<dialog id="dialog" aria-labelledby="dialog-title"></dialog>
<div id="toast" role="status" aria-live="polite"></div>
<script type="module" src="playground/frame.js"></script>
<script type="module" src="playground/frame.js?v=dock-only-2"></script>
</body>
</html>
+3 -3
View File
@@ -4,13 +4,13 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Anidev Dock</title>
<link rel="stylesheet" href="../components/system.css" />
<link rel="stylesheet" href="../components/system.css?v=dock-only-2" />
</head>
<body>
<body data-concept="dock">
<a class="skip" href="#content">Skip to content</a>
<div id="app"></div>
<dialog id="dialog" aria-labelledby="dialog-title"></dialog>
<div id="toast" role="status" aria-live="polite"></div>
<script type="module" src="frame.js"></script>
<script type="module" src="frame.js?v=dock-only-2"></script>
</body>
</html>
+86 -24
View File
@@ -19,7 +19,8 @@ try {
) || {};
} catch {}
const params = new URLSearchParams(location.search),
concept = concepts.find((c) => c.id === params.get("concept")) || concepts[0];
concept = concepts[0];
params.delete("concept");
let theme =
(params.get("theme") || preferences.theme) === "dark" ? "dark" : "light",
density = ["compact", "normal", "relaxed"].includes(
@@ -220,10 +221,15 @@ function persist() {
}
let toastTimer;
function toast(message) {
$("#toast").textContent = message;
$("#toast").style.display = "block";
const notification = $("#toast");
notification.popover = "manual";
notification.textContent = message;
if (notification.matches(":popover-open")) notification.hidePopover();
notification.showPopover();
clearTimeout(toastTimer);
toastTimer = setTimeout(() => ($("#toast").style.display = "none"), 3500);
toastTimer = setTimeout(() => {
notification.hidePopover();
}, 3500);
}
function currentIdentity() {
return identityAdapter.snapshot().account;
@@ -256,14 +262,14 @@ ${currentIdentity()?.roles.some((r) => ["Master Admin", "SSO Admin"].includes(r)
}
function nav() {
const dockBrand = `<button class="dock-toggle dock-brand wordmark" data-action="dock-toggle" aria-expanded="false" aria-controls="dock-navigation" aria-label="${t("Развернуть меню Anidev", "Expand Anidev navigation")}" title="${t("Навигация Anidev", "Anidev navigation")}"><b>a/</b><span>anidev</span></button>`;
return `<aside class="navigation" id="dock-navigation">${concept.id === "dock" ? dockBrand : wordmark}<div class="workspace-label">ANIDEV / PRODUCTION</div><nav aria-label="${t("Основная навигация", "Main navigation")}" class="nav-links">${navigationPages()
return `<aside class="navigation" id="dock-navigation">${dockBrand}<div class="workspace-label">ANIDEV / PRODUCTION</div><nav aria-label="${t("Основная навигация", "Main navigation")}" class="nav-links">${navigationPages()
.map(
(p) =>
`<button data-page="${p}" ${page === p ? 'aria-current="page"' : ""} title="${pageNames[p]}" aria-label="${pageNames[p]}">${icon(p)}<span>${pageNames[p]}</span></button>`,
)
.join(
"",
)}</nav><div class="nav-bottom">eu-central-1<br>Workspace / Pro<br><button data-page="auth" style="font-size:12px;margin-top:15px">${t("Выйти", "Sign out")}</button></div>${concept.id === "dock" ? dockAccount() : ""}</aside>`;
)}</nav><div class="nav-bottom">eu-central-1<br>Workspace / Pro<br><button data-page="auth" style="font-size:12px;margin-top:15px">${t("Выйти", "Sign out")}</button></div>${dockAccount()}</aside>`;
}
function header() {
return `<header class="app-header"><button class="mobile-menu" data-action="mobile-menu" aria-label="${t("Открыть навигацию", "Open navigation")}" aria-expanded="false">☰</button><div class="breadcrumb">Anidev <span aria-hidden="true">/</span> ${accountPageIds.includes(page) ? t("Личный кабинет", "My account") : "Production"} <span aria-hidden="true">/</span> ${pageNames[page]}</div><div class="header-actions"><button class="command-trigger" data-action="command">${t("Найти команду", "Find a command")} <kbd>⌘ K</kbd></button><button class="avatar" data-action="profile" aria-label="${escape(accountName())}">${escape(accountInitials())}</button></div></header>`;
@@ -273,7 +279,7 @@ const heading = (title, desc, actions = "") =>
let dockHoverOpened = false;
let dockCloseTimer;
function bindDockHover() {
if (concept.id !== "dock" || !$(".dock-toggle")) return;
if (!$(".dock-toggle")) return;
const nav = $(".navigation");
nav.addEventListener("pointerenter", (e) => {
if (
@@ -292,7 +298,7 @@ function bindDockHover() {
if (nav.contains(e.relatedTarget)) return;
if (dockHoverOpened)
dockCloseTimer = setTimeout(() => {
if (!$("[popover]:popover-open")) {
if (!$("[popover=auto]:popover-open")) {
dockHoverOpened = false;
setDockOpen(false, false);
}
@@ -305,7 +311,7 @@ function setDockOpen(open, returnFocus = true) {
clearTimeout(dockCloseTimer);
}
const nav = $(".navigation");
if (!nav || concept.id !== "dock") return;
if (!nav) return;
document.body.classList.toggle("dock-open", open);
const toggle = $(".dock-toggle");
toggle.setAttribute("aria-expanded", String(open));
@@ -338,6 +344,7 @@ function savePreferences() {
let initialRender = true;
function render() {
const route = new URL(location.href);
route.searchParams.delete("concept");
route.searchParams.set("page", page);
route.searchParams.set("theme", theme);
route.searchParams.set("locale", locale);
@@ -375,10 +382,11 @@ function render() {
$("#app").innerHTML =
page === "auth"
? auth()
: `<div class="shell">${nav()}${concept.id === "dock" ? `<button class="dock-scrim" data-action="dock-close" tabindex="-1" aria-label="${t("Закрыть меню", "Close navigation")}" aria-hidden="true"></button>` : ""}<div class="main-column">${header()}<main id="content" tabindex="-1">${content}</main></div></div>`;
: `<div class="shell">${nav()}<button class="dock-scrim" data-action="dock-close" tabindex="-1" aria-label="${t("Закрыть меню", "Close navigation")}" aria-hidden="true"></button><div class="main-column">${header()}<main id="content" tabindex="-1">${content}</main></div></div>`;
bindForms();
accountUI.bind(page);
bindDockHover();
bindCharts();
if (page === "users" && $("#user-search")) bindUsers();
}
function chart() {
@@ -392,7 +400,68 @@ function chart() {
const points = values
.map((v, i) => `${(i * 500) / (values.length - 1)},${145 - (v - 25) * 5}`)
.join(" ");
return `<div class="chart" role="img" aria-label="${t("Задержка p95: от 30 до 43 мс. Текущая 34 мс.", "p95 latency: 30 to 43 ms. Current 34 ms.")}"><svg viewBox="0 0 500 150" preserveAspectRatio="none" aria-hidden="true"><path class="chart-grid" d="M0 20H500M0 75H500M0 130H500"/><polygon class="chart-area" points="0,150 ${points} 500,150"/><polyline class="chart-line" points="${points}"/></svg><div class="axis-labels"><span>${chartRange === "24h" ? "00:00" : "21.11"}</span><span>${chartRange === "24h" ? "06:00" : "23.11"}</span><span>${chartRange === "24h" ? "12:00" : "25.11"}</span><span>${chartRange === "24h" ? "18:00" : "27.11"}</span></div></div><p class="chart-legend">${t("p95 · миллисекунды · ниже — лучше · тестовая выборка", "p95 · milliseconds · lower is better · sample dataset")}</p><details class="chart-data"><summary>${t("Числовые данные", "Numerical data")}</summary><div class="chart-data-scroll"><table><thead><tr><th>${t("Время UTC", "Time UTC")}</th><th>p95 / ms</th></tr></thead><tbody>${values.map((v, i) => `<tr><td>${chartRange === "24h" ? String(i).padStart(2, "0") + ":00" : 21 + i + ".11"}</td><td>${v}</td></tr>`).join("")}</tbody></table></div></details>`;
return `<div class="chart" role="group" aria-label="${t("Задержка p95: от 30 до 43 мс. Текущая 34 мс.", "p95 latency: 30 to 43 ms. Current 34 ms.")}"><div class="chart-plot" tabindex="0" role="slider" aria-label="${t("Точка графика p95", "p95 chart point")}" aria-valuemin="0" aria-valuemax="${values.length - 1}" aria-valuenow="${values.length - 1}" data-values="${values.join(",")}" data-range="${chartRange}"><svg viewBox="0 0 500 150" preserveAspectRatio="none" aria-hidden="true"><path class="chart-grid" d="M0 20H500M0 75H500M0 130H500"/><polygon class="chart-area" points="0,150 ${points} 500,150"/><polyline class="chart-line" points="${points}"/></svg><span class="chart-guide" hidden></span><span class="chart-dot" hidden></span><div class="chart-tooltip" role="tooltip" hidden></div></div><div class="axis-labels"><span>${chartRange === "24h" ? "00:00" : "21.11"}</span><span>${chartRange === "24h" ? "06:00" : "23.11"}</span><span>${chartRange === "24h" ? "12:00" : "25.11"}</span><span>${chartRange === "24h" ? "18:00" : "27.11"}</span></div></div><p class="chart-legend">${t("p95 · миллисекунды · ниже — лучше · тестовая выборка", "p95 · milliseconds · lower is better · sample dataset")}</p><details class="chart-data"><summary>${t("Числовые данные", "Numerical data")}</summary><div class="chart-data-scroll"><table><thead><tr><th>${t("Время UTC", "Time UTC")}</th><th>p95 / ms</th></tr></thead><tbody>${values.map((v, i) => `<tr><td>${chartRange === "24h" ? String(i).padStart(2, "0") + ":00" : 21 + i + ".11"}</td><td>${v}</td></tr>`).join("")}</tbody></table></div></details>`;
}
function bindCharts() {
document.querySelectorAll(".chart-plot").forEach((plot) => {
const values = plot.dataset.values.split(",").map(Number);
const tooltip = plot.querySelector(".chart-tooltip");
const dot = plot.querySelector(".chart-dot");
const guide = plot.querySelector(".chart-guide");
let selected = values.length - 1;
const label = (index) =>
plot.dataset.range === "24h"
? `${String(index).padStart(2, "0")}:00 UTC`
: `${21 + index}.11`;
const text = (index) =>
`${label(index)} · ${values[index]} ${t("мс", "ms")}`;
plot.setAttribute("aria-valuetext", text(selected));
function show(index) {
selected = Math.max(0, Math.min(values.length - 1, index));
const x = (selected / (values.length - 1)) * plot.clientWidth;
tooltip.textContent = text(selected);
tooltip.hidden = dot.hidden = guide.hidden = false;
tooltip.style.left = `${Math.max(0, Math.min(x - tooltip.offsetWidth / 2, plot.clientWidth - tooltip.offsetWidth))}px`;
dot.style.left = guide.style.left = `${x}px`;
dot.style.top = `${((145 - (values[selected] - 25) * 5) / 150) * 100}%`;
plot.setAttribute("aria-valuenow", String(selected));
plot.setAttribute("aria-valuetext", text(selected));
}
function hide() {
tooltip.hidden = dot.hidden = guide.hidden = true;
}
function point(event) {
const rect = plot.getBoundingClientRect();
show(
Math.round(
((event.clientX - rect.left) / rect.width) * (values.length - 1),
),
);
}
plot.addEventListener("pointermove", point);
plot.addEventListener("pointerdown", point);
plot.addEventListener("pointerleave", hide);
plot.addEventListener("focus", () => show(selected));
plot.addEventListener("blur", hide);
plot.addEventListener("keydown", (event) => {
const moves = {
ArrowLeft: selected - 1,
ArrowDown: selected - 1,
ArrowRight: selected + 1,
ArrowUp: selected + 1,
Home: 0,
End: values.length - 1,
};
if (event.key === "Escape") {
hide();
return;
}
if (event.key in moves) {
event.preventDefault();
show(moves[event.key]);
}
});
});
}
function dashboard() {
return `${heading(t("Обзор инфраструктуры", "Infrastructure overview"), t("Production · 27 ноября 2026", "Production · November 27, 2026"), `<button data-action="activity">${t("Журнал событий", "Activity log")}</button><button class="primary" data-action="invite">${t("Пригласить участника", "Invite member")}</button>`)}
@@ -555,7 +624,7 @@ function tokenScreen() {
)
.join(
"",
)}</div><pre class="code-block">:root {\n${cssVars(tokens)}\n}</pre><p class="compact-note">${t("Экспорт включает обе темы, JSON и CSS. Акцент применяется к каждой концепции отдельно.", "Export includes both themes, JSON and CSS. Each concept retains its own accent.")}</p></div>`;
)}</div><pre class="code-block">:root {\n${cssVars(tokens)}\n}</pre><p class="compact-note">${t("Экспорт включает обе темы, JSON и CSS. Используется утверждённая палитра Dock.", "Export includes both themes, JSON and CSS. Uses the approved Dock palette.")}</p></div>`;
}
let dialogInitiator = null;
function openDialog(title, body, cls = "") {
@@ -778,7 +847,7 @@ document.addEventListener("click", async (e) => {
if (!e.target.closest(".context-menu")) $(".context-menu")?.remove();
if (!action) return;
document
.querySelectorAll("[popover]:popover-open")
.querySelectorAll("[popover=auto]:popover-open")
.forEach((el) => el.hidePopover());
const actions = {
shares: () =>
@@ -796,15 +865,8 @@ document.addEventListener("click", async (e) => {
setDockOpen(!document.body.classList.contains("dock-open"));
},
"dock-close": () => setDockOpen(false),
"mobile-menu": () => {
if (concept.id === "dock") {
setDockOpen(!document.body.classList.contains("dock-open"));
return;
}
const nav = $(".navigation");
nav.classList.toggle("open");
button.setAttribute("aria-expanded", nav.classList.contains("open"));
},
"mobile-menu": () =>
setDockOpen(!document.body.classList.contains("dock-open")),
close: () => $("#dialog").close(),
invite,
command,
@@ -985,9 +1047,9 @@ document.addEventListener("click", async (e) => {
});
});
document.addEventListener("keydown", (e) => {
if (e.key === "Escape" && $("[popover]:popover-open")) {
if (e.key === "Escape" && $("[popover=auto]:popover-open")) {
e.preventDefault();
$("[popover]:popover-open").hidePopover();
$("[popover=auto]:popover-open").hidePopover();
$(".dock-account")?.focus();
return;
}
+9
View File
@@ -66,3 +66,12 @@
Внешняя оболочка удалена полностью. Корневой index.html показывает приложение непосредственно; нет iframe, шапки и регуляторов просмотра. Старый /playground/ перенаправляется на корень. Внутри приложения сохранены темы, страницы, навигация и экспорт на странице токенов.
Core 50/50, Dock 10/10, Identity 94/94, TOTP geometry 4/4, feedback/scroll 24/24, standalone site 31/31 — всего 213 проверок, ошибок JavaScript нет. Последняя suite проверяет hover/focus для Пользователей, Настроек, Компонентов и Токенов в обеих темах на desktop/mobile, current-page, Back/Forward, reload, совместимость старых URL, тему и отсутствие сдвигов. Выбранный Обзор выделен отдельно. Экспорт 23 файла, CRC проверен. Актуальные скриншоты: [site](site/README.md).
## Dock / исправления по скриншотам, 30.11.2026
Удалены запасное меню и выбор интерфейса через concept в URL. Корневой HTML сразу отмечен как Dock; версии CSS/JS и no-store у обоих серверов предотвращают загрузку старой оболочки. Python fallback использует scripts/serve.py. По пользовательскому адресу 4173 подтверждены HTTP 200 и Cache-Control: no-store.
Core 50/50, standalone site 35/35 (включая четыре старые ссылки concept), Dock 10/10, Identity 94/94, TOTP 4/4, feedback/scroll 24/24. Всего 217, ошибок JavaScript нет. После удаления неиспользуемой ветки обнаружена и исправлена зависимость формы входа от общего логотипа; соответствующие suite повторены успешно.
Дополнительно 36 целевых проверок в Edge: геометрия переключателя в обоих состояниях, двух темах и desktop/mobile; скругление/анимация меню и reduced motion; значения и границы подсказки графика, клавиатура и семидневный диапазон; касание в мобильном контексте; тост в верхнем слое при открытом диалоге. Скриншоты меню, переключателя, графика и тоста проверены визуально. Это не полный аудит доступности.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 108 KiB

+1 -1
View File
@@ -1,5 +1,5 @@
{
"date": "2026-11-30T18:11:02.387Z",
"date": "2026-11-30T20:09:13.573Z",
"passed": 94,
"failed": 0,
"failures": [],
+4 -3
View File
@@ -7,9 +7,10 @@
"dockPassed": 10,
"totpGeometryPassed": 4,
"feedbackAndScrollPassed": 24,
"sitePassed": 31,
"totalPassed": 213,
"sitePassed": 35,
"totalPassed": 253,
"failed": 0,
"errors": [],
"export": "23 files; no outer shell; CRC verified"
"export": "23 files; no outer shell; CRC verified",
"targetedVisualChecksPassed": 36
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

+1 -1
View File
@@ -1,5 +1,5 @@
{
"passed": 31,
"passed": 35,
"errors": [],
"checks": "Root app without wrapper; all navigation hover/focus; routes/reload/back; legacy redirects; theme persistence; no layout jump; export"
}
+24
View File
@@ -0,0 +1,24 @@
"""Local Dock preview with the same cache policy as the Node server."""
import os
from functools import partial
from http.server import SimpleHTTPRequestHandler, ThreadingHTTPServer
from pathlib import Path
class DockHandler(SimpleHTTPRequestHandler):
def end_headers(self):
self.send_header("Cache-Control", "no-store")
super().end_headers()
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:
print(f"Anidev Dock: http://127.0.0.1:{port}/", flush=True)
try:
server.serve_forever()
except KeyboardInterrupt:
pass
+8
View File
@@ -102,6 +102,14 @@ try {
assert.equal(new URL(p.url()).pathname, "/");
assert.equal(await p.locator("iframe").count(), 0);
passed++;
for (const oldConcept of ["relay", "folio", "orbit", "unknown"]) {
await p.goto(`${base}/?concept=${oldConcept}&page=dashboard`);
await p.locator(".dock-brand").waitFor();
assert.equal(await p.locator("body").getAttribute("data-concept"), "dock");
assert.equal(new URL(p.url()).searchParams.has("concept"), false);
assert.equal(await p.locator("iframe,#concept,.concept-card").count(), 0);
passed++;
}
await p.goto(base + "/?page=appearance&theme=light");
await p.locator("[data-identity=theme][data-theme=dark]").click();
await p.reload();