feat(ui): add command terminal icon and align window footer actions
This commit is contained in:
@@ -227,7 +227,7 @@ const iconGroups: Array<{ title: string; note: string; icons: IconName[] }> = [
|
|||||||
{
|
{
|
||||||
title: "Контент",
|
title: "Контент",
|
||||||
note: "SEO / BIM / Engine",
|
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: "Доступ",
|
shield: "Доступ",
|
||||||
sliders: "Параметры",
|
sliders: "Параметры",
|
||||||
stop: "Остановить",
|
stop: "Остановить",
|
||||||
|
terminal: "Консоль команд",
|
||||||
trash: "Удалить",
|
trash: "Удалить",
|
||||||
upload: "Загрузить",
|
upload: "Загрузить",
|
||||||
users: "Участники",
|
users: "Участники",
|
||||||
@@ -1449,7 +1450,7 @@ export function CatalogApp() {
|
|||||||
<Preview title="Главная и окружение" note="единые компоненты · сохранение в памяти каталога">
|
<Preview title="Главная и окружение" note="единые компоненты · сохранение в памяти каталога">
|
||||||
<EnvironmentCatalogDemo />
|
<EnvironmentCatalogDemo />
|
||||||
</Preview>
|
</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">
|
<div className="catalog-window-actions-demo">
|
||||||
<Button shape="pill" icon={<Icon name="refresh" />}>Обновить источник</Button>
|
<Button shape="pill" icon={<Icon name="refresh" />}>Обновить источник</Button>
|
||||||
<IconButton label="Добавить"><Icon name="plus" /></IconButton>
|
<IconButton label="Добавить"><Icon name="plus" /></IconButton>
|
||||||
|
|||||||
@@ -122,6 +122,8 @@ Window — единая механика открытия modal и правой
|
|||||||
|
|
||||||
Содержание, сохранение и запросы принадлежат приложению.
|
Содержание, сохранение и запросы принадлежат приложению.
|
||||||
|
|
||||||
|
`WindowFooterActions` размещает группу действий справа, в том числе когда это единственная группа в footer. На узком экране действия переносятся внутри окна. Вспомогательный текст footer может оставаться слева.
|
||||||
|
|
||||||
Modeless Inspector закрывается независимо от результата автосохранения. Приложение сначала закрывает controlled `Window`, затем завершает сохранение асинхронно; сбой сообщает через компактный `ToastStack` с tone `error`, сохраняя draft текущего просмотра. Нельзя удерживать окно открытым, выводить внутри него browser-default `p`/heading или увеличивать текст ошибки до title-размера.
|
Modeless Inspector закрывается независимо от результата автосохранения. Приложение сначала закрывает controlled `Window`, затем завершает сохранение асинхронно; сбой сообщает через компактный `ToastStack` с tone `error`, сохраняя draft текущего просмотра. Нельзя удерживать окно открытым, выводить внутри него browser-default `p`/heading или увеличивать текст ошибки до title-размера.
|
||||||
|
|
||||||
Для modeless Inspector доступен `draggable`: окно двигается за header, не блокирует приложение и ограничивается viewport. Modal-окна не становятся draggable автоматически.
|
Для modeless Inspector доступен `draggable`: окно двигается за header, не блокирует приложение и ограничивается viewport. Modal-окна не становятся draggable автоматически.
|
||||||
|
|||||||
+7
-1
@@ -23,7 +23,7 @@
|
|||||||
| Редактирование | `save`, `edit`, `trash`, `copy`, `upload`, `download`, `external` |
|
| Редактирование | `save`, `edit`, `trash`, `copy`, `upload`, `download`, `external` |
|
||||||
| Состояние и доступ | `check`, `alert`, `activity`, `lock`, `key`, `shield`, `circle`, `eye`, `eye-off` |
|
| Состояние и доступ | `check`, `alert`, `activity`, `lock`, `key`, `shield`, `circle`, `eye`, `eye-off` |
|
||||||
| Сущности | `profile`, `users`, `building`, `globe`, `database`, `network`, `inbox`, `mail` |
|
| Сущности | `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`.
|
Живая таблица с названиями, поверхностями и размерами находится в разделе `Guideline → Иконки`. Машинный список — в `registry/icons.json`.
|
||||||
|
|
||||||
@@ -39,3 +39,9 @@
|
|||||||
Кнопка наследует обычные hover, focus, disabled и active-состояния `IconButton`.
|
Кнопка наследует обычные hover, focus, disabled и active-состояния `IconButton`.
|
||||||
|
|
||||||
`play` и `stop` — компактные полнотелые транспортные glyph: залитый треугольник запуска и залитый квадрат остановки/паузы. Видимая текстовая подпись не требуется, но action обязан сохранить доступный `aria-label`.
|
`play` и `stop` — компактные полнотелые транспортные glyph: залитый треугольник запуска и залитый квадрат остановки/паузы. Видимая текстовая подпись не требуется, но action обязан сохранить доступный `aria-label`.
|
||||||
|
|
||||||
|
`terminal` — контурный знак `>_` для входа в консоль и журнал команд.
|
||||||
|
Применение подтверждено владельцем Mission Core 28.09.2026 для ARNavi B2.
|
||||||
|
Это действие использует обычный `IconButton` с доступной подписью; состояния
|
||||||
|
hover, focus, disabled и pending принадлежат кнопке. `activity` остаётся
|
||||||
|
обозначением телеметрии и состояния, а не отправки команд.
|
||||||
|
|||||||
@@ -2816,6 +2816,8 @@ textarea.nodedc-field__control {
|
|||||||
|
|
||||||
.nodedc-window__footer-actions {
|
.nodedc-window__footer-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
margin-inline-start: auto;
|
||||||
|
flex-wrap: wrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
gap: var(--nodedc-space-2);
|
gap: var(--nodedc-space-2);
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ import {
|
|||||||
ShieldCheck,
|
ShieldCheck,
|
||||||
SlidersHorizontal,
|
SlidersHorizontal,
|
||||||
Square,
|
Square,
|
||||||
|
Terminal,
|
||||||
Trash2,
|
Trash2,
|
||||||
UploadCloud,
|
UploadCloud,
|
||||||
UserCircle,
|
UserCircle,
|
||||||
@@ -102,6 +103,7 @@ const icons = {
|
|||||||
shield: ShieldCheck,
|
shield: ShieldCheck,
|
||||||
sliders: SlidersHorizontal,
|
sliders: SlidersHorizontal,
|
||||||
stop: Square,
|
stop: Square,
|
||||||
|
terminal: Terminal,
|
||||||
trash: Trash2,
|
trash: Trash2,
|
||||||
upload: UploadCloud,
|
upload: UploadCloud,
|
||||||
users: UsersRound,
|
users: UsersRound,
|
||||||
|
|||||||
@@ -247,6 +247,7 @@
|
|||||||
"summary": "Canonical controlled window for modal and right-side panel presentations.",
|
"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"],
|
"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": [
|
"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.",
|
"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.",
|
"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.",
|
"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"],
|
"variants": ["14 px", "16 px", "18 px"],
|
||||||
"rules": [
|
"rules": [
|
||||||
"Use semantic names from registry/icons.json.",
|
"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.",
|
"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.",
|
"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."
|
"Do not copy complete Lucide or Font Awesome catalogs into an application."
|
||||||
|
|||||||
+1
-1
@@ -42,7 +42,7 @@
|
|||||||
"id": "content",
|
"id": "content",
|
||||||
"label": "Контент",
|
"label": "Контент",
|
||||||
"referenceSources": ["seo", "bim-viewer", "engine"],
|
"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": [
|
"rules": [
|
||||||
|
|||||||
Reference in New Issue
Block a user