Use shared app version in Health registration card
This commit is contained in:
parent
749d1a86f2
commit
079a55ba12
|
|
@ -0,0 +1,8 @@
|
||||||
|
# Console 3.1.15
|
||||||
|
|
||||||
|
Release date: 2026-10-06.
|
||||||
|
|
||||||
|
- Fix App version in the Health IT-Screen App card: it still read the empty health-provider version instead of the shared service/registration version accessor used by the It-Screen tab. Both views now use the same owner.
|
||||||
|
- Show the existing loading placeholder until the first registration response arrives, instead of rendering empty registration fields as Not specified.
|
||||||
|
|
||||||
|
Validation: shared-source regression check and browser verification through the login form on Health, without navigating away or reloading. No extra requests or polling added.
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
"version": "1.0.0"
|
"version": "1.0.0"
|
||||||
},
|
},
|
||||||
"stage_ui": {
|
"stage_ui": {
|
||||||
"version": "3.1.14"
|
"version": "3.1.15"
|
||||||
},
|
},
|
||||||
"stage_avahi": {
|
"stage_avahi": {
|
||||||
"version": "1.0.0"
|
"version": "1.0.0"
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ APP_DIR = "/opt/iomatex-console"
|
||||||
PUBLIC_DIR = os.path.join(APP_DIR, "public")
|
PUBLIC_DIR = os.path.join(APP_DIR, "public")
|
||||||
PROVIDERS_DIR = os.path.join(APP_DIR, "providers.d")
|
PROVIDERS_DIR = os.path.join(APP_DIR, "providers.d")
|
||||||
CONFIG_PATH = "/etc/iomatex/console.json"
|
CONFIG_PATH = "/etc/iomatex/console.json"
|
||||||
UI_VERSION = "V 3.1.14"
|
UI_VERSION = "V 3.1.15"
|
||||||
STORAGE_HEALTH_COMMAND = "/usr/local/sbin/iomatex-storage-health"
|
STORAGE_HEALTH_COMMAND = "/usr/local/sbin/iomatex-storage-health"
|
||||||
ZONEINFO_ROOT = "/usr/share/zoneinfo"
|
ZONEINFO_ROOT = "/usr/share/zoneinfo"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
const {chromium}=require('playwright');
|
||||||
|
(async()=>{const b=await chromium.launch();const c=await b.newContext();const p=await c.newPage();if(process.env.LOCAL_JS)await p.route('**/console.js*',r=>r.fulfill({path:'/repo/stage_ui/console_core/frontend/console.js'}));await p.goto('http://192.168.0.109',{waitUntil:'domcontentloaded'});await p.locator('#authPassword').fill(process.env.EDGE_PASSWORD);await p.locator('.authSubmitBtn').click();await p.locator('.authScreen').waitFor({state:'detached',timeout:60000});const card=p.locator('article').filter({has:p.getByRole('heading',{name:'IT-Screen App',exact:true})});await card.getByText('v. 4.410.142',{exact:true}).waitFor({timeout:30000});if(await p.locator('.tabBtn.is-active').getAttribute('data-tab')!=='health')throw Error('Wrong tab');console.log('Health first login: App version 4.410.142, no reload or tab switch');await c.request.post('http://192.168.0.109/api/auth/logout',{data:{}});await b.close()})().catch(e=>{console.error(e);process.exit(1)});
|
||||||
|
|
@ -21,3 +21,6 @@ assert.equal(ctx.itscreenService().version, '4.410.143');
|
||||||
state.itscreen.data = {};
|
state.itscreen.data = {};
|
||||||
assert.equal(ctx.itscreenService().version, '');
|
assert.equal(ctx.itscreenService().version, '');
|
||||||
console.log('App version survives response ordering and tab status refresh; installed version takes precedence');
|
console.log('App version survives response ordering and tab status refresh; installed version takes precedence');
|
||||||
|
|
||||||
|
assert.match(source, /renderItscreenInfoRows\(payload \|\| \{\}, itscreenService\(\)\.version\)/);
|
||||||
|
assert.doesNotMatch(source, /renderItscreenInfoRows\(payload \|\| \{\}, card && card\.version\)/);
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
{ mode: "test_by", label: "test.it-screen.by", host: "rest.test.it-screen.by" },
|
{ mode: "test_by", label: "test.it-screen.by", host: "rest.test.it-screen.by" },
|
||||||
{ mode: "custom", label: "Custom", host: "" }
|
{ mode: "custom", label: "Custom", host: "" }
|
||||||
];
|
];
|
||||||
const UI_VERSION = "V 3.1.14";
|
const UI_VERSION = "V 3.1.15";
|
||||||
const ITSCREEN_LOG_INITIAL_LINES = 50;
|
const ITSCREEN_LOG_INITIAL_LINES = 50;
|
||||||
const ITSCREEN_LOG_BUFFER_LIMIT = 300;
|
const ITSCREEN_LOG_BUFFER_LIMIT = 300;
|
||||||
const ITSCREEN_LOG_BATCH_MS = 250;
|
const ITSCREEN_LOG_BATCH_MS = 250;
|
||||||
|
|
@ -1834,11 +1834,11 @@
|
||||||
<div class="key">${esc(t("Status"))}</div><div>${esc(displayValue(card.status_text, "-"))}</div>
|
<div class="key">${esc(t("Status"))}</div><div>${esc(displayValue(card.status_text, "-"))}</div>
|
||||||
</div>
|
</div>
|
||||||
${state.itscreen.error ? `<div class="banner error">${esc(state.itscreen.error)}${itscreenResponseDetails() ? `: ${esc(itscreenResponseDetails())}` : ""}</div>` : ""}
|
${state.itscreen.error ? `<div class="banner error">${esc(state.itscreen.error)}${itscreenResponseDetails() ? `: ${esc(itscreenResponseDetails())}` : ""}</div>` : ""}
|
||||||
${state.itscreen.loading && !payload ? `<div class="emptyInline">${esc(t("Loading It-screen status..."))}</div>` : `
|
${!state.itscreen.registrationLoadedAt && !state.itscreen.error ? `<div class="emptyInline">${esc(t("Loading It-screen status..."))}</div>` : `
|
||||||
<div class="list">
|
<div class="list">
|
||||||
<div class="listTitle">${esc(t("Registration"))}</div>
|
<div class="listTitle">${esc(t("Registration"))}</div>
|
||||||
${registrationIncomplete ? `<div class="banner warn">${esc(t("Registration is incomplete. The server did not confirm the device login, so no verified server record is available."))}</div>` : (registrationRequired ? `<div class="banner warn">${esc(t("Registration required. Device is not bound to cloud."))}</div>` : "")}
|
${registrationIncomplete ? `<div class="banner warn">${esc(t("Registration is incomplete. The server did not confirm the device login, so no verified server record is available."))}</div>` : (registrationRequired ? `<div class="banner warn">${esc(t("Registration required. Device is not bound to cloud."))}</div>` : "")}
|
||||||
<div class="meta compactMeta ${registrationRequired ? "registrationWarnGrid" : ""}">${renderItscreenInfoRows(payload || {}, card && card.version)}</div>
|
<div class="meta compactMeta ${registrationRequired ? "registrationWarnGrid" : ""}">${renderItscreenInfoRows(payload || {}, itscreenService().version)}</div>
|
||||||
</div>
|
</div>
|
||||||
`}
|
`}
|
||||||
<div class="list">
|
<div class="list">
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
<link rel="stylesheet" href="/console.css?v=3.1.14&rev=camera-snapshot-1">
|
<link rel="stylesheet" href="/console.css?v=3.1.15&rev=camera-snapshot-1">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main class="shell">
|
<main class="shell">
|
||||||
|
|
@ -109,7 +109,7 @@
|
||||||
</main>
|
</main>
|
||||||
<div id="menuBackdrop" class="menuBackdrop" hidden></div>
|
<div id="menuBackdrop" class="menuBackdrop" hidden></div>
|
||||||
<div id="toastStack" class="toastStack" aria-live="polite" aria-atomic="true"></div>
|
<div id="toastStack" class="toastStack" aria-live="polite" aria-atomic="true"></div>
|
||||||
<script src="/console.i18n.js?v=3.1.14&rev=camera-snapshot-1"></script>
|
<script src="/console.i18n.js?v=3.1.15&rev=camera-snapshot-1"></script>
|
||||||
<script src="/console.js?v=3.1.14&rev=camera-snapshot-1"></script>
|
<script src="/console.js?v=3.1.15&rev=camera-snapshot-1"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"version": "3.1.14"
|
"version": "3.1.15"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue