feat(ui): add command terminal icon and align window footer actions

This commit is contained in:
Codex
2026-09-28 18:43:06 +03:00
parent 9aa6f949b0
commit 1b63366d2e
7 changed files with 19 additions and 4 deletions
+3 -2
View File
@@ -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<IconName, string> = {
shield: "Доступ",
sliders: "Параметры",
stop: "Остановить",
terminal: "Консоль команд",
trash: "Удалить",
upload: "Загрузить",
users: "Участники",
@@ -1449,7 +1450,7 @@ export function CatalogApp() {
<Preview title="Главная и окружение" note="единые компоненты · сохранение в памяти каталога">
<EnvironmentCatalogDemo />
</Preview>
<Preview title="Оконные действия" note="круг `46 px`" className="catalog-preview--compact">
<Preview title="Оконные действия" note="круг `46 px` · действия footer справа" className="catalog-preview--compact">
<div className="catalog-window-actions-demo">
<Button shape="pill" icon={<Icon name="refresh" />}>Обновить источник</Button>
<IconButton label="Добавить"><Icon name="plus" /></IconButton>
+2
View File
@@ -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 автоматически.
+7 -1
View File
@@ -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` остаётся
обозначением телеметрии и состояния, а не отправки команд.
+2
View File
@@ -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);
+2
View File
@@ -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,
+2
View File
@@ -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."
+1 -1
View File
@@ -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": [