9.1 KiB
Подключение приложений
Текущее состояние
Первый этап не меняет существующие приложения. Репозиторий фиксирует baseline и создаёт пакетный контракт. Это позволяет продолжать текущую разработку без одномоментной переделки Engine, Ops, BIM, CMS, SEO и Launcher.
Рекомендуемый порядок
1. Catalog validation
Сначала компоненты проверяются как самостоятельная система в dark/light и нескольких accent. До этого они не объявляются заменой production-кода.
2. Launcher/Hub pilot
Первый consumer — Launcher/Hub как основной visual reference. Подключение выполняется по одному вертикальному набору:
- tokens/theme;
- Button/IconButton;
- Dropdown/Select;
- Window/Confirmation;
- AppHeader.
- ApplicationShell/ApplicationPanel;
- useApplicationWorkspace;
- Icon/IconButton.
Локальные реализации удаляются только после функционального и визуального сравнения.
3. CMS и SEO
Используют те же компоненты и механику окон. CMS подключает DOM-layer, SEO — React-layer. Первым общим admin pattern подключается MediaSourceField/createMediaSourceController; storage API остаётся в приложении. Цветовые различия оформляются theme overrides.
4. Engine
Сначала библиотека заменяет компоненты только в уже новом Environment Settings и NDC Agent Inspector. Затем остальные инспекторы переводятся на Inspector/ControlRow постепенно. Legacy UI не переносится в библиотеку и не используется как reference.
5. Task Manager / Ops
Подключение начинается с floating-layer и modal primitives, где уже сформулирован канон. Массовая замена Plane UI не выполняется одним изменением.
6. BIM Viewer
Подключает tokens/styles и @nodedc/ui-dom. React в BIM ради дизайн-системы не добавляется.
Новые приложения
Новый React-проект начинает с ApplicationShell:
- установить опубликованные NODE.DC UI packages;
- выбрать theme и accent;
- передать фиксированный AppHeader, stage, navigation и content;
- управлять shell через
useApplicationWorkspace, а не набор локально связанных boolean; - передавать storage/upload в
MediaSourceFieldкак adapter callback; - использовать Window/Dropdown и канонический Icon вместо локальных реализаций;
- проверять registry перед созданием локального control;
- хранить доменные компоненты у себя.
Нижняя service rail добавляется только продуктам с витриной сервисов. В обычном оконном приложении она отсутствует.
Adoption matrix
| Приложение | Текущий источник | Целевой adapter | Первый набор |
|---|---|---|---|
| Launcher/Hub | React/local shared | React | header, button, dropdown, window |
| SEO | React/local overrides | React | theme, window, field, select |
| CMS | Vanilla DOM | DOM | theme, header, modal, select |
| Engine | React/mixed generations | React | new inspector and environment settings only |
| Ops | React/Plane packages | React | floating behavior and modal primitives |
| BIM Viewer | Vanilla JS | DOM | tokens, glass select, settings surfaces |
Не делать
- не переписывать все приложения одновременно;
- не копировать
packages/ui-react/srcв consumer; - не поддерживать отдельную тему путём fork компонента;
- не использовать legacy Engine inspector как промежуточный канон;
- не удалять production local component до проверки package replacement.
Mission Core and onboard Home (R17)
Mission Core and Mission Core Node consume EnvironmentSettingsWindow,
EnvironmentMediaPlaylistEditor, EnvironmentBackgroundMedia and LandingStage
from @nodedc/ui-react. The former Control Station files are thin API/product
registry adapters or compatibility re-exports. They own no copied form markup or
presentation CSS. Node supplies Home only; Core retains all existing pages and
its wire/storage schema. Both use the existing UserProfileMenu avatar dropdown.
The component contract and catalog example are in ENVIRONMENT_SETTINGS.md.
Mission Core loading (2026-09-08)
Core и Node используют общий sensor-ui/X4 frontend с Button.loading, IconButton.loading и LoadingRegion из Design Guideline. SDK/network semantics остаются в consumer, геометрия ожидания принадлежит DG. Этот локальный кандидат передаётся через source manifest с hashes вместе с Node installer; public npm release не публиковался, исходники компонентов в приложение не копируются.
DC CMS package adoption (2026-11-05)
DC_CMS now consumes the immutable npm distributions of tokens, ui-core, ui-dom
and ui-react, pinned to a canonical source SHA plus package hashes in the
consumer's ui/design-system.lock.json. Its build renders AppHeader,
ApplicationShell, AdminNavigationPanel, ApplicationPanel and control templates
from exports. Select, Switch, RangeControl, ProgressBar, StatusBadge and Dropdown
run directly as controlled React islands. Core CSS and tokens are bundled once.
The thin compatibility adapter is DC_CMS/ui/src/design-system.mjs: it retains
native CMS form/model bindings and listeners, adopts generated field/card/button
anatomy, uses ui-dom modal/workspace controllers and connects MediaSourceField's
DOM contract to the existing CMS file manager. Folder columns, editable block
collections and knowledge content remain domain UI. No package source is copied
or maintained as a local component fork. Remove this adapter as those domain
renderers move to direct component composition. CMS CI rejects stale generated
assets; the existing Git-to-canonical-runner deployment foundation is unchanged.
CMS visual follow-up, 2026-11-05: flat theme edges, neutral white default accent, UserProfileMenu with a session avatar and inbox glyph, FeatureSettingsWindow, ColorField, pill-shaped split Select, and the canonical six-dot DragHandle. UI preferences belong to browser-local storage; site content and deployment credentials stay in the existing CMS model. Immutable npm snapshots retain package semver and are identified by source commit plus archive SHA-256.
CMS uses UserProfileMenu: profile label, menu icon, avatar.
The menu opens settings; the application does not add a fourth action.
Device Core and CMS share the complete UserProfileMenu header, not local copies.
The reference composition is the existing rounded profile group in Launcher/Hub
and Engine (EnginePlatformHeader.tsx / TopBar.tsx); its reusable geometry is
already in AppHeader, HeaderProfileButton, IconButton and HeaderAvatar. The owner
confirmed the order profile → inbox → avatar and settings inside the middle
icon's menu on 2026-11-05. No application CSS overrides are needed.
Device Core retains session identity, profile URL, permissions and logout actions.
2026-11-05 — Mission dark foundation → CMS
Owner selected the running local Mission Core as the canonical dark reference. Source audit: b0332fa, styles/base.css and main.tsx; uncommitted simulation changes excluded. The complete Mission/flat preset now lives in tokens + ui-core, exported for React and DOM consumers. CMS consumes the immutable packages and retains only domain layout/event adapters. Nested forms use SettingsCard and opaque GlassSurface soft; no CMS palette. Mission Core itself remains on its existing local package state; its duplicated base overrides are recorded migration debt, not silently updated.
CMS form composition correction — 2026-11-05
Mission Core environment settings were verified in the running app: SettingsCard uses the neutral group material, its form grid is transparent, fields are opaque. CMS removes the extra field-grid surface and the card around the full list of content cards. Collection entries and native JSON disclosures adopt the shared GlassSurface group material. No local palette, field colors or business logic are introduced. The prior soft-canvas composition is superseded in THEMING and the living catalog; soft itself remains available for recessed non-form areas.