diff --git a/apps/catalog/src/CatalogApp.tsx b/apps/catalog/src/CatalogApp.tsx index 4be11d9..a810c1c 100644 --- a/apps/catalog/src/CatalogApp.tsx +++ b/apps/catalog/src/CatalogApp.tsx @@ -227,7 +227,7 @@ const iconGroups: Array<{ title: string; note: string; icons: IconName[] }> = [ { title: "Контент", note: "SEO / BIM / Engine", - icons: ["camera", "plan", "play", "stop", "image", "video", "file", "folder", "clipboard", "settings"], + icons: ["camera", "plan", "play", "stop", "image", "video", "file", "folder", "clipboard", "settings", "terminal"], }, ]; @@ -279,6 +279,7 @@ const iconLabels: Record = { shield: "Доступ", sliders: "Параметры", stop: "Остановить", + terminal: "Консоль команд", trash: "Удалить", upload: "Загрузить", users: "Участники", @@ -1449,7 +1450,7 @@ export function CatalogApp() { - +
diff --git a/docs/COMPONENTS.md b/docs/COMPONENTS.md index 56d13d8..7793edd 100644 --- a/docs/COMPONENTS.md +++ b/docs/COMPONENTS.md @@ -122,6 +122,8 @@ Window — единая механика открытия modal и правой Содержание, сохранение и запросы принадлежат приложению. +`WindowFooterActions` размещает группу действий справа, в том числе когда это единственная группа в footer. На узком экране действия переносятся внутри окна. Вспомогательный текст footer может оставаться слева. + Modeless Inspector закрывается независимо от результата автосохранения. Приложение сначала закрывает controlled `Window`, затем завершает сохранение асинхронно; сбой сообщает через компактный `ToastStack` с tone `error`, сохраняя draft текущего просмотра. Нельзя удерживать окно открытым, выводить внутри него browser-default `p`/heading или увеличивать текст ошибки до title-размера. Для modeless Inspector доступен `draggable`: окно двигается за header, не блокирует приложение и ограничивается viewport. Modal-окна не становятся draggable автоматически. diff --git a/docs/ICONS.md b/docs/ICONS.md index 87a2f47..e151ca3 100644 --- a/docs/ICONS.md +++ b/docs/ICONS.md @@ -23,7 +23,7 @@ | Редактирование | `save`, `edit`, `trash`, `copy`, `upload`, `download`, `external` | | Состояние и доступ | `check`, `alert`, `activity`, `lock`, `key`, `shield`, `circle`, `eye`, `eye-off` | | Сущности | `profile`, `users`, `building`, `globe`, `database`, `network`, `inbox`, `mail` | -| Контент | `camera`, `plan`, `play`, `stop`, `image`, `video`, `file`, `folder`, `clipboard`, `settings` | +| Контент | `camera`, `plan`, `play`, `stop`, `image`, `video`, `file`, `folder`, `clipboard`, `settings`, `terminal` | Живая таблица с названиями, поверхностями и размерами находится в разделе `Guideline → Иконки`. Машинный список — в `registry/icons.json`. @@ -39,3 +39,9 @@ Кнопка наследует обычные hover, focus, disabled и active-состояния `IconButton`. `play` и `stop` — компактные полнотелые транспортные glyph: залитый треугольник запуска и залитый квадрат остановки/паузы. Видимая текстовая подпись не требуется, но action обязан сохранить доступный `aria-label`. + +`terminal` — контурный знак `>_` для входа в консоль и журнал команд. +Применение подтверждено владельцем Mission Core 28.09.2026 для ARNavi B2. +Это действие использует обычный `IconButton` с доступной подписью; состояния +hover, focus, disabled и pending принадлежат кнопке. `activity` остаётся +обозначением телеметрии и состояния, а не отправки команд. diff --git a/packages/ui-core/styles.css b/packages/ui-core/styles.css index ea81e0c..4615fa1 100644 --- a/packages/ui-core/styles.css +++ b/packages/ui-core/styles.css @@ -2816,6 +2816,8 @@ textarea.nodedc-field__control { .nodedc-window__footer-actions { display: flex; + margin-inline-start: auto; + flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--nodedc-space-2); diff --git a/packages/ui-react/src/Icon.tsx b/packages/ui-react/src/Icon.tsx index 571618a..2b3f557 100644 --- a/packages/ui-react/src/Icon.tsx +++ b/packages/ui-react/src/Icon.tsx @@ -44,6 +44,7 @@ import { ShieldCheck, SlidersHorizontal, Square, + Terminal, Trash2, UploadCloud, UserCircle, @@ -102,6 +103,7 @@ const icons = { shield: ShieldCheck, sliders: SlidersHorizontal, stop: Square, + terminal: Terminal, trash: Trash2, upload: UploadCloud, users: UsersRound, diff --git a/registry/components.json b/registry/components.json index 9e7a7eb..572eb8c 100644 --- a/registry/components.json +++ b/registry/components.json @@ -247,6 +247,7 @@ "summary": "Canonical controlled window for modal and right-side panel presentations.", "behavior": ["portal to body", "focus entry", "modal-only focus trap", "focus restore", "Escape close", "backdrop close policy", "modal-only body scroll lock", "optional bounded dragging for modeless inspectors"], "rules": [ + "WindowFooterActions aligns modal actions to the trailing edge, including a footer with only one action group; actions wrap within narrow windows.", "Open state belongs to the application; focus/layer behavior belongs to the component.", "The same window contract is used by Launcher, CMS and SEO; theme variables supply color differences.", "A right-side inspector is modeless by default: no dimming, no backdrop blur, no backdrop close, no focus trap and no body scroll lock.", @@ -429,6 +430,7 @@ "variants": ["14 px", "16 px", "18 px"], "rules": [ "Use semantic names from registry/icons.json.", + "Use terminal for a command console or command journal entry; activity remains telemetry and health.", "Use layers for visibility controls of map or visual source layers; settings remains general configuration.", "The containing component owns surface, hit target and state; the icon owns only the glyph and uses the canonical 16 px default without an extra CSS scale.", "Do not copy complete Lucide or Font Awesome catalogs into an application." diff --git a/registry/icons.json b/registry/icons.json index 32c5552..9cdc0b4 100644 --- a/registry/icons.json +++ b/registry/icons.json @@ -42,7 +42,7 @@ "id": "content", "label": "Контент", "referenceSources": ["seo", "bim-viewer", "engine"], - "names": ["camera", "plan", "play", "stop", "image", "video", "file", "folder", "clipboard", "settings"] + "names": ["camera", "plan", "play", "stop", "image", "video", "file", "folder", "clipboard", "settings", "terminal"] } ], "rules": [