diff --git a/docs/releases/console-3.1.36.md b/docs/releases/console-3.1.36.md
new file mode 100644
index 0000000..1c9746b
--- /dev/null
+++ b/docs/releases/console-3.1.36.md
@@ -0,0 +1,14 @@
+# Console 3.1.36 — compact Health service profiles
+
+- Recompose standard Health service cards around one shared compact summary
+ for ID, state and status, with details, tests, flags, actions and release
+ controls arranged in responsive information columns.
+- Give the IT-Screen profile two desktop grid columns and three internal zones
+ for registration, client update and system-module information. The existing
+ update actions and status semantics remain owned by the shared release UI.
+- Keep specialized Display, access-point and reverse-tunnel layouts intact.
+ Standard cards collapse to two and then one internal column as space narrows.
+- Browser verification at 360, 768, 1024, 1440 and 1920 px confirmed the
+ 1/2/2/3/3 outer grid, no horizontal overflow and readable responsive
+ composition. At 1920 px the IT-Screen card height decreased from 921 px to
+ 482 px, a reduction of 439 px (47.7%).
diff --git a/stage-releases.json b/stage-releases.json
index 55b4117..e744fe9 100644
--- a/stage-releases.json
+++ b/stage-releases.json
@@ -14,7 +14,7 @@
"version": "1.0.1"
},
"stage_ui": {
- "version": "3.1.35"
+ "version": "3.1.36"
},
"stage_avahi": {
"version": "1.0.0"
diff --git a/stage_ui/console_core/backend/app.py b/stage_ui/console_core/backend/app.py
index 89f509b..77c5c8a 100644
--- a/stage_ui/console_core/backend/app.py
+++ b/stage_ui/console_core/backend/app.py
@@ -61,7 +61,7 @@ APP_DIR = "/opt/iomatex-console"
PUBLIC_DIR = os.path.join(APP_DIR, "public")
PROVIDERS_DIR = os.path.join(APP_DIR, "providers.d")
CONFIG_PATH = "/etc/iomatex/console.json"
-UI_VERSION = "V 3.1.35"
+UI_VERSION = "V 3.1.36"
STORAGE_HEALTH_COMMAND = "/usr/local/sbin/iomatex-storage-health"
ZONEINFO_ROOT = "/usr/share/zoneinfo"
diff --git a/stage_ui/console_core/backend/test_health_layout_ui.js b/stage_ui/console_core/backend/test_health_layout_ui.js
index f11a5f3..ada671c 100644
--- a/stage_ui/console_core/backend/test_health_layout_ui.js
+++ b/stage_ui/console_core/backend/test_health_layout_ui.js
@@ -6,9 +6,16 @@ const js = fs.readFileSync(path.join(__dirname, '../frontend/console.js'), 'utf8
const css = fs.readFileSync(path.join(__dirname, '../frontend/console.css'), 'utf8');
assert.match(js, /class="cards healthServiceGrid"/);
+assert.equal((js.match(/serviceCard serviceProfileCard/g) || []).length, 2);
+assert.match(js, /function renderServiceSummary\(card\)/);
+assert.match(js, /serviceCard serviceProfileCard itscreenServiceCard/);
+assert.match(js, /if \(card\.id === "itscreen"\) return content/);
assert.match(css, /\.shell\{max-width:1600px/);
assert.match(css, /\.healthServiceGrid\{\s*grid-template-columns:repeat\(3,minmax\(0,1fr\)\)/);
assert.match(css, /@media \(max-width:1100px\)[\s\S]*?\.healthServiceGrid\{grid-template-columns:repeat\(2,minmax\(0,1fr\)\)\}/);
assert.match(css, /@media \(max-width:720px\)[\s\S]*?\.healthServiceGrid\{grid-template-columns:1fr\}/);
+assert.match(css, /\.healthServiceGrid \.serviceProfileCard\{[\s\S]*?grid-template-columns:repeat\(2,minmax\(0,1fr\)\)/);
+assert.match(css, /\.healthServiceGrid \.itscreenServiceCard\{[\s\S]*?grid-column:span 2;[\s\S]*?grid-template-columns:repeat\(3,minmax\(0,1fr\)\)/);
+assert.match(css, /@media \(max-width:940px\)[\s\S]*?\.healthServiceGrid \.serviceProfileCard\{grid-template-columns:1fr\}/);
console.log('Health layout owner: 1600px shell and 3/2/1 service columns passed');
diff --git a/stage_ui/console_core/frontend/console.css b/stage_ui/console_core/frontend/console.css
index 6203833..24c53a5 100644
--- a/stage_ui/console_core/frontend/console.css
+++ b/stage_ui/console_core/frontend/console.css
@@ -391,6 +391,38 @@ h1{margin:0;font-size:34px;line-height:1.02;font-weight:650;letter-spacing:-.03e
.cards > .card{height:100%}
.cardTop{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.serviceCard{display:flex;flex-direction:column}
+.healthServiceGrid .serviceProfileCard{
+ display:grid;
+ grid-template-columns:repeat(2,minmax(0,1fr));
+ column-gap:20px;
+ align-content:start;
+}
+.healthServiceGrid .itscreenServiceCard{
+ grid-column:span 2;
+ grid-template-columns:repeat(3,minmax(0,1fr));
+}
+.healthServiceGrid .serviceProfileCard > .cardTop,
+.healthServiceGrid .serviceProfileCard > .serviceSummary,
+.healthServiceGrid .serviceProfileCard > .banner,
+.healthServiceGrid .serviceProfileCard > .emptyInline,
+.healthServiceGrid .serviceProfileCard > .serviceAlertSection{
+ grid-column:1 / -1;
+}
+.serviceSummary{
+ display:grid;
+ grid-template-columns:repeat(3,minmax(0,1fr));
+ gap:10px;
+ margin-top:14px;
+ padding:10px 12px;
+ border:1px solid var(--line);
+ border-radius:12px;
+ background:var(--surface-soft);
+}
+.serviceSummaryItem{display:grid;gap:3px;min-width:0}
+.serviceSummaryItem .key{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.06em}
+.serviceSummaryValue{min-width:0;overflow-wrap:anywhere;font-size:13px}
+.healthServiceGrid .serviceProfileCard > .list{min-width:0;align-self:start}
+.serviceProfileAside{min-width:0}
.card h2{margin:0;font-size:19px}
.cardSubtitle{margin:6px 0 0;color:var(--muted);font-size:13px}
.badge{
@@ -1638,6 +1670,9 @@ html[dir="rtl"] .timezoneOption{text-align:right}
.identityPanel{min-width:0}
.gboxHero{grid-template-columns:1fr}
.itscreenCards{grid-template-columns:repeat(2,minmax(0,1fr))}
+ .healthServiceGrid .serviceProfileCard{grid-template-columns:1fr}
+ .healthServiceGrid .itscreenServiceCard{grid-template-columns:repeat(2,minmax(0,1fr))}
+ .serviceSummary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
.brand{flex-direction:column;align-items:flex-start}
@@ -1649,6 +1684,7 @@ html[dir="rtl"] .timezoneOption{text-align:right}
.tunnelSummaryGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.brandDevice{width:min(70vw, 260px);max-height:180px}
.wideCard,.displayCard,.accessPointCard{grid-column:auto}
+ .healthServiceGrid .itscreenServiceCard{grid-column:auto;grid-template-columns:1fr}
.audioDeviceGrid{grid-template-columns:1fr}
.displayDetailsRow{grid-template-columns:1fr;align-items:start}
.displayModePanel{
diff --git a/stage_ui/console_core/frontend/console.js b/stage_ui/console_core/frontend/console.js
index 2c98323..66ae0b9 100644
--- a/stage_ui/console_core/frontend/console.js
+++ b/stage_ui/console_core/frontend/console.js
@@ -49,7 +49,7 @@
{ mode: "test_by", label: "test.it-screen.by", host: "rest.test.it-screen.by" },
{ mode: "custom", label: "Custom", host: "" }
];
- const UI_VERSION = "V 3.1.35";
+ const UI_VERSION = "V 3.1.36";
const ITSCREEN_LOG_INITIAL_LINES = 50;
const ITSCREEN_LOG_BUFFER_LIMIT = 300;
const ITSCREEN_LOG_BATCH_MS = 250;
@@ -1828,6 +1828,20 @@
]);
}
+ function renderServiceSummary(card) {
+ const items = [
+ { label: t("ID"), value: card.id },
+ { label: t("State"), value: displayValue(card.state, "-") },
+ { label: t("Status"), value: displayValue(card.status_text, "-") }
+ ];
+ return `
${items.map(item => `
+
+ ${esc(item.label)}
+ ${esc(item.value)}
+
+ `).join("")}
`;
+ }
+
function renderItscreenServiceCard(card) {
const payload = itscreenRegistration();
const tone = statusTone(card);
@@ -1837,18 +1851,14 @@
const registrationRequired = !!(state.itscreen.registrationLoadedAt && payload && !payload.registered && !state.itscreen.error);
return `
-
+
${renderPanelTitle(t(card.title), `service:${card.id}`, card.subtitle ? translateUiText(card.subtitle) : "")}
${esc(translateStatusValue(card.status_text || card.state || "Unknown"))}
-
+ ${renderServiceSummary(card)}
${state.itscreen.error ? `${esc(state.itscreen.error)}${itscreenResponseDetails() ? `: ${esc(itscreenResponseDetails())}` : ""}
` : ""}
${!state.itscreen.registrationLoadedAt && !state.itscreen.error ? `${esc(t("Loading It-screen status..."))}
` : `
@@ -1861,17 +1871,24 @@
${esc(t("Client update"))}
${renderClientUpdate()}
-
-
${esc(t("Flags"))}
-
- ${boolPill("Installed", !!card.installed)}
- ${boolPill("Configured", !!card.configured)}
- ${boolPill("Active", !!card.active)}
+
+
+
${esc(t("Flags"))}
+
+ ${boolPill("Installed", !!card.installed)}
+ ${boolPill("Configured", !!card.configured)}
+ ${boolPill("Active", !!card.active)}
+
+ ${renderStageVersion(card, false, {
+ section: t("Client update system module"),
+ button: t("System module"),
+ hint: t("Technical module that checks, verifies and safely installs client releases.")
+ })}
${renderServiceActions(card)}
- ${warnings.length ? `
${esc(t("Warnings"))}
${warnings.map((x) => `- ${esc(translateUiText(x))}
`).join("")}
` : ""}
- ${errors.length ? `
${esc(t("Errors"))}
${errors.map((x) => `- ${esc(translateUiText(x))}
`).join("")}
` : ""}
+ ${warnings.length ? `
${esc(t("Warnings"))}
${warnings.map((x) => `- ${esc(translateUiText(x))}
`).join("")}
` : ""}
+ ${errors.length ? `
${esc(t("Errors"))}
${errors.map((x) => `- ${esc(translateUiText(x))}
`).join("")}
` : ""}
`;
}
@@ -2473,7 +2490,7 @@
const versionLabel = labels.button || t("Version");
const sectionLabel = labels.section || t("Stage version");
const versionButton = `
`;
- return `
+ return `
${compact ? renderPanelTitle(t(card.title), `service:${card.id}`, "", versionButton) : `
${esc(sectionLabel)}
${renderServiceActions(card)}
- ${warnings.length ? `
${esc(t("Warnings"))}
${warnings.map((x) => `- ${esc(translateUiText(x))}
`).join("")}
` : ""}
- ${errors.length ? `
${esc(t("Errors"))}
${errors.map((x) => `- ${esc(translateUiText(x))}
`).join("")}
` : ""}
+ ${warnings.length ? `
${esc(t("Warnings"))}
${warnings.map((x) => `- ${esc(translateUiText(x))}
`).join("")}
` : ""}
+ ${errors.length ? `
${esc(t("Errors"))}
${errors.map((x) => `- ${esc(translateUiText(x))}
`).join("")}
` : ""}
`;
}
diff --git a/stage_ui/console_core/frontend/index.html b/stage_ui/console_core/frontend/index.html
index 3354a5d..47d17b8 100644
--- a/stage_ui/console_core/frontend/index.html
+++ b/stage_ui/console_core/frontend/index.html
@@ -23,7 +23,7 @@
} catch (error) {}
})();
-
+
@@ -109,7 +109,7 @@
-
-
+
+