fix(cms): use Mission Core neutral form groups without black inserts
DC CMS qualification / qualify (push) Successful in 1m49s

This commit is contained in:
DCCONSTRUCTIONS
2026-11-05 16:04:35 +03:00
parent 164499f0bb
commit b208b83d4f
18 changed files with 41 additions and 43 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
File diff suppressed because one or more lines are too long
+9 -11
View File
@@ -91,27 +91,25 @@ Verified: dark/light, accent change and reload persistence, reset to white,
nested palette Escape, 390px modal, plus/template picker, pointer drag/reorder
(discarded), switching independent sites, and the shared component/type checks.
Form groups, collection entries and JSON disclosures consume `GlassSurface tone="soft"`
with its shared padding/radius/material. The former app-local translucent
item background accumulated across nested cards and converged with TextField
fill; using the canonical opaque nested surface preserves visible field zones
in both themes without adding borders or changing input tokens.
Form groups outside collections use the same nested surface so light-theme
white inputs remain separated from white outer panels; collections already
provide that surface and do not receive a second wrapper or double padding.
Forms follow the running Mission Core environment settings: SettingsCard owns
the group and fields sit directly in its transparent layout grid. A standalone
collection entry or native JSON disclosure adopts GlassSurface tone="group",
which uses the same neutral material. The content overview is layout rather
than another surrounding card. Native details, drag nodes and input bindings
stay intact; no CMS-specific colors or component overrides are added.
## Mission Core foundation — 2026-11-05
Pinned Design Guideline: `3750a9420058fb76880cd73bb9f2d106d7cd10d5`.
Pinned Design Guideline: `189bb7037740f577cc65e72f2b7c07651201ef19`.
CMS applies `missionDarkTheme` / `missionLightTheme` at documentElement, so menus
and settings portals share the same profile. The library owns all palette values;
reset clears a custom accent and returns to the preset. Existing explicit user
accent preferences remain supported. The static HTML declares Mission/flat before
JavaScript to avoid a flash of the legacy appearance.
Nested forms use the same SettingsCard → GlassSurface soft → field composition
as the living catalog. Media-stage and dropdown materials now reference shared
Forms use the same SettingsCard → fields and optional GlassSurface group
collection composition as the living catalog. Media-stage and dropdown materials now reference shared
tokens. No business module, site data, deployment settings or server API changed.
Validation: deterministic generated build, multisite and release-contract tests;
+1 -1
View File
@@ -36,7 +36,7 @@ const actions = h("div", { className: "cms-editor-actions" }, h(StatusBadge, { i
const content = h(ApplicationPanel, { eyebrow: h("span", { id: "editor-heading" }, "\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0441\u0430\u0439\u0442\u0430"), title: "\u041A\u043E\u043D\u0442\u0435\u043D\u0442", description: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0430\u0437\u0434\u0435\u043B", headerTools: actions, expanded: true, onClose: noop }, h("div", { className: "cms-editor", dangerouslySetInnerHTML: { __html: await read("editor.html") } }));
const shell = html(h(ApplicationShell, { id: "cms-shell", header, stage: h("div", { className: "cms-stage" }, h("p", null, "\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0441\u0430\u0439\u0442\u0430\u043C\u0438 NODE.DC"), btn("open-navigation", "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0440\u0430\u0437\u0434\u0435\u043B\u044B")), navigation: nav, content, navigationOpen: true, contentOpen: true, contentExpanded: true }));
const icons = ["close", "plus", "chevron-up", "chevron-down", "copy", "clipboard", "trash", "eye", "eye-off", "layers", "panel", "file", "settings", "folder", "image", "video", "refresh", "move", "edit"];
const templates = Object.entries({ nestedSurface: h(GlassSurface, {tone:"soft", padding:"md", materialRim:false}, h("span")), dragHandle: h(DragHandle, {label:"Перетащить блок"}), button: h(Button, null, "\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435"), iconButton: h(IconButton, { label: "\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435" }, icon("plus")), field: h(FieldFrame, { label: "\u041F\u043E\u043B\u0435" }, h("span", { "data-slot": "control" })), text: h(TextField, { id: "template-field", label: "\u041F\u043E\u043B\u0435" }), card: h(SettingsCard, { eyebrow: "\u0420\u0430\u0437\u0434\u0435\u043B", title: "\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435", description: "\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435" }, h("div", { "data-slot": "body" })), media: h(MediaSourceField, { label: "\u041C\u0435\u0434\u0438\u0430", source: "file", url: "", onSourceChange: noop, onUrlChange: noop, onFileChange: noop }), ...Object.fromEntries(icons.map((name) => ["icon-" + name, icon(name)])) }).map(([name, node]) => `<template id="ds-${name}">${html(node)}</template>`).join("\n");
const templates = Object.entries({ nestedSurface: h(GlassSurface, {tone:"group", padding:"md", materialRim:false}, h("span")), dragHandle: h(DragHandle, {label:"Перетащить блок"}), button: h(Button, null, "\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435"), iconButton: h(IconButton, { label: "\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435" }, icon("plus")), field: h(FieldFrame, { label: "\u041F\u043E\u043B\u0435" }, h("span", { "data-slot": "control" })), text: h(TextField, { id: "template-field", label: "\u041F\u043E\u043B\u0435" }), card: h(SettingsCard, { eyebrow: "\u0420\u0430\u0437\u0434\u0435\u043B", title: "\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435", description: "\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435" }, h("div", { "data-slot": "body" })), media: h(MediaSourceField, { label: "\u041C\u0435\u0434\u0438\u0430", source: "file", url: "", onSourceChange: noop, onUrlChange: noop, onFileChange: noop }), ...Object.fromEntries(icons.map((name) => ["icon-" + name, icon(name)])) }).map(([name, node]) => `<template id="ds-${name}">${html(node)}</template>`).join("\n");
const page = `<!doctype html>
<html lang="ru" data-nodedc-ui="true" data-nodedc-theme="dark" data-nodedc-appearance="mission" data-nodedc-edges="flat"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="design-system-commit" content="${lock.sourceCommit}"><title>NODE.DC \u2014 CMS</title><link rel="stylesheet" href="./admin.css"></head><body>${shell}
${await read("modals.html")}
+5 -5
View File
@@ -1,11 +1,11 @@
{
"repository": "https://git.dcserve.ru/SILVER/NODEDC_DESIGN_GUIDELINE.git",
"sourceCommit": "3750a9420058fb76880cd73bb9f2d106d7cd10d5",
"sourceCommit": "189bb7037740f577cc65e72f2b7c07651201ef19",
"distribution": "immutable npm pack artifacts; no copied component sources",
"packages": {
"nodedc-tokens-0.6.0-mission.1.tgz": "2ed76a0e68edacac0ad6c105e8f382730f4bc87ae437728f02b17fe71c63354a",
"nodedc-ui-core-0.7.0-mission.1.tgz": "e533d936aaf46cfd0f0cc7681de2df6db47434c5cf922d456b9dc2a4d37431e8",
"nodedc-ui-dom-0.7.0-mission.1.tgz": "7865b0fabe13e08196e9edecf02bf74443385986b4aa636cb422b2f7a4bc7228",
"nodedc-ui-react-0.7.0-mission.1.tgz": "75663592cfc1cb4fab77454801a6d9e053a8f4a30b52c5ad24e6b100c231fc6c"
"nodedc-tokens-0.6.0-mission.2.tgz": "11386a46868f8e7dafa2743770d15dc201e1df46d036921f03475c15a7351b9c",
"nodedc-ui-core-0.7.0-mission.2.tgz": "6360deed064a7c3c5af9538fac38a31f9937d4521153705375c431e7afd56fe8",
"nodedc-ui-dom-0.7.0-mission.2.tgz": "0884b595d78909047e79a266eaa8e0bcc5461f38e4c8e81076272107bb8c4a75",
"nodedc-ui-react-0.7.0-mission.2.tgz": "cecf33a767e4c998e8c5cbcc70b20936844460424790d0a81aefa847c45f662e"
}
}
+12 -12
View File
@@ -6,10 +6,10 @@
"": {
"name": "dc-cms-ui-build",
"dependencies": {
"@nodedc/tokens": "file:vendor/nodedc-tokens-0.6.0-mission.1.tgz",
"@nodedc/ui-core": "file:vendor/nodedc-ui-core-0.7.0-mission.1.tgz",
"@nodedc/ui-dom": "file:vendor/nodedc-ui-dom-0.7.0-mission.1.tgz",
"@nodedc/ui-react": "file:vendor/nodedc-ui-react-0.7.0-mission.1.tgz",
"@nodedc/tokens": "file:vendor/nodedc-tokens-0.6.0-mission.2.tgz",
"@nodedc/ui-core": "file:vendor/nodedc-ui-core-0.7.0-mission.2.tgz",
"@nodedc/ui-dom": "file:vendor/nodedc-ui-dom-0.7.0-mission.2.tgz",
"@nodedc/ui-react": "file:vendor/nodedc-ui-react-0.7.0-mission.2.tgz",
"esbuild": "0.28.1",
"react": "19.2.7",
"react-dom": "19.2.7"
@@ -486,29 +486,29 @@
},
"node_modules/@nodedc/tokens": {
"version": "0.6.0",
"resolved": "file:vendor/nodedc-tokens-0.6.0-mission.1.tgz",
"integrity": "sha512-8hoq5hjMTvcCZMFRnKHD9/DYIJ4MaywBn69y7dgJI1Kwtuj2AtoxI9fRN8JTZ6hBiRv0lvmi23ogmzLkF4EWLg=="
"resolved": "file:vendor/nodedc-tokens-0.6.0-mission.2.tgz",
"integrity": "sha512-rLi+Ft8rewkfSPycnDXwHePv4cDvX91ALLmauHNrxmkmBqQWdqpEsTmnm7stLkASoEfavKVcuCdNNjMiTL9POA=="
},
"node_modules/@nodedc/ui-core": {
"version": "0.7.0",
"resolved": "file:vendor/nodedc-ui-core-0.7.0-mission.1.tgz",
"integrity": "sha512-C3/orF7aUvrFq5fAOxrWd8a+uxLvpj9QppDf1kJyERsDTScHRwWIaMDhBzxytQc5rV4lZ/Ovp5wYTMC9PyhMWQ==",
"resolved": "file:vendor/nodedc-ui-core-0.7.0-mission.2.tgz",
"integrity": "sha512-CzCdx1sUngTqhZLX4AUHh754csEiqiOp9le4hhrGI6s4ovFXd+RF4WH2vbkkanQifRJlpTl29Zfu4J40x2a6bA==",
"dependencies": {
"@nodedc/tokens": "0.6.0"
}
},
"node_modules/@nodedc/ui-dom": {
"version": "0.7.0",
"resolved": "file:vendor/nodedc-ui-dom-0.7.0-mission.1.tgz",
"integrity": "sha512-s744E1rpjhVVwGqvEzZCwewkk67hetrOz5exSfXILMKKwnz0hhFoXyhUfZhAEvO8aCiWeBr4sH56P/lCck1bIA==",
"resolved": "file:vendor/nodedc-ui-dom-0.7.0-mission.2.tgz",
"integrity": "sha512-Cs2lKY7bvmiFOZ7X1FplqBeVqTq+1uWORUQIC+LIRDsdB84gZ2VpPqgB0yE/QsaW8FXKk9BmbfgzNVsYh2NVWw==",
"dependencies": {
"@nodedc/ui-core": "0.7.0"
}
},
"node_modules/@nodedc/ui-react": {
"version": "0.7.0",
"resolved": "file:vendor/nodedc-ui-react-0.7.0-mission.1.tgz",
"integrity": "sha512-aJ/5dq7Yoghk9GP3+uJRxPnCQHTdhU8lgE0p/+/8OZiE+5GnT71ElFZyCwtTgFcysunM4xcnVThzfY2UXkEOmw==",
"resolved": "file:vendor/nodedc-ui-react-0.7.0-mission.2.tgz",
"integrity": "sha512-br7JmWo1NHnUrSdW1rApJU4HSBx2evVTjeTqKWZJMRlmasfhGg+OPx/mNgjEksYfNzMchfUj0NZNQwaf+7Uv4w==",
"dependencies": {
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
+4 -4
View File
@@ -7,10 +7,10 @@
"check": "node build.mjs --check"
},
"dependencies": {
"@nodedc/tokens": "file:vendor/nodedc-tokens-0.6.0-mission.1.tgz",
"@nodedc/ui-core": "file:vendor/nodedc-ui-core-0.7.0-mission.1.tgz",
"@nodedc/ui-dom": "file:vendor/nodedc-ui-dom-0.7.0-mission.1.tgz",
"@nodedc/ui-react": "file:vendor/nodedc-ui-react-0.7.0-mission.1.tgz",
"@nodedc/tokens": "file:vendor/nodedc-tokens-0.6.0-mission.2.tgz",
"@nodedc/ui-core": "file:vendor/nodedc-ui-core-0.7.0-mission.2.tgz",
"@nodedc/ui-dom": "file:vendor/nodedc-ui-dom-0.7.0-mission.2.tgz",
"@nodedc/ui-react": "file:vendor/nodedc-ui-react-0.7.0-mission.2.tgz",
"react": "19.2.7",
"react-dom": "19.2.7",
"esbuild": "0.28.1"
+1
View File
@@ -62,6 +62,7 @@ p {
min-width: 0;
}
.cms-editor,
.cms-content-section,
.block-form,
.knowledge-editor,
.project-settings-editor,
+5 -6
View File
@@ -135,12 +135,10 @@ function fields() {
for (const input of all("input:not([type=hidden]):not([type=checkbox]):not([type=file]):not([type=range]),textarea")) if (!input.closest(".cms-ui-island")) addClass(input, "nodedc-field__control");
}
function cards() {
// Use the library's opaque nested surface: translucent local layers made
// collection backgrounds converge with the field material at greater depth.
for (const region of all(".collection-item-card,.json-details,.field-grid,.group-grid")) {
// As in Mission Core, fields sit directly in SettingsCard. Only independent
// collection entries and disclosures own another shared neutral group.
for (const region of all(".collection-item-card,.json-details")) {
if (region.dataset.dsSurface) continue;
// A collection already owns this surface; avoid stacking or double padding.
if (region.matches(".field-grid,.group-grid") && (region.closest(".collection-item-card") || region.querySelector(".collection-field"))) continue;
const surface = clone("nestedSurface");
for (const attribute of surface.attributes) {
if (attribute.name === "class") addClass(region, attribute.value);
@@ -151,7 +149,8 @@ function cards() {
for (const card of all(".settings-card,.content-group,.content-panel")) {
if (card.dataset.dsCard) continue;
card.dataset.dsCard = "true";
addClass(card, "nodedc-settings-card");
// The content overview is layout, not a third card around semantic groups.
addClass(card, card.querySelector(":scope > #content-fields") ? "cms-content-section" : "nodedc-settings-card");
const oldHead = $(":scope > .card-head,:scope > .group-head,:scope > .panel-head,:scope > .publish-progress-head", card);
const template = clone("card"), head = $(".nodedc-settings-card__head", template), titles = $(".nodedc-settings-card__titles", template), body = $(".nodedc-settings-card__body", template);
head.replaceChildren(titles);
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.