diff --git a/docs/releases/console-3.1.15.md b/docs/releases/console-3.1.15.md new file mode 100644 index 0000000..b8bde7f --- /dev/null +++ b/docs/releases/console-3.1.15.md @@ -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. diff --git a/stage-releases.json b/stage-releases.json index 2fe3204..7810f6b 100644 --- a/stage-releases.json +++ b/stage-releases.json @@ -14,7 +14,7 @@ "version": "1.0.0" }, "stage_ui": { - "version": "3.1.14" + "version": "3.1.15" }, "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 1d5b461..b05625a 100644 --- a/stage_ui/console_core/backend/app.py +++ b/stage_ui/console_core/backend/app.py @@ -54,7 +54,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.14" +UI_VERSION = "V 3.1.15" STORAGE_HEALTH_COMMAND = "/usr/local/sbin/iomatex-storage-health" ZONEINFO_ROOT = "/usr/share/zoneinfo" diff --git a/stage_ui/console_core/backend/test_health_version_browser.cjs b/stage_ui/console_core/backend/test_health_version_browser.cjs new file mode 100644 index 0000000..e877dc8 --- /dev/null +++ b/stage_ui/console_core/backend/test_health_version_browser.cjs @@ -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)}); diff --git a/stage_ui/console_core/backend/test_itscreen_version_ui.js b/stage_ui/console_core/backend/test_itscreen_version_ui.js index 1e7f4ab..3dc5173 100644 --- a/stage_ui/console_core/backend/test_itscreen_version_ui.js +++ b/stage_ui/console_core/backend/test_itscreen_version_ui.js @@ -21,3 +21,6 @@ assert.equal(ctx.itscreenService().version, '4.410.143'); state.itscreen.data = {}; assert.equal(ctx.itscreenService().version, ''); 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\)/); diff --git a/stage_ui/console_core/frontend/console.js b/stage_ui/console_core/frontend/console.js index 8f23d9e..46e260c 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.14"; + const UI_VERSION = "V 3.1.15"; const ITSCREEN_LOG_INITIAL_LINES = 50; const ITSCREEN_LOG_BUFFER_LIMIT = 300; const ITSCREEN_LOG_BATCH_MS = 250; @@ -1834,11 +1834,11 @@
${esc(t("Status"))}
${esc(displayValue(card.status_text, "-"))}
${state.itscreen.error ? `` : ""} - ${state.itscreen.loading && !payload ? `
${esc(t("Loading It-screen status..."))}
` : ` + ${!state.itscreen.registrationLoadedAt && !state.itscreen.error ? `
${esc(t("Loading It-screen status..."))}
` : `
${esc(t("Registration"))}
${registrationIncomplete ? `` : (registrationRequired ? `` : "")} -
${renderItscreenInfoRows(payload || {}, card && card.version)}
+
${renderItscreenInfoRows(payload || {}, itscreenService().version)}
`}
diff --git a/stage_ui/console_core/frontend/index.html b/stage_ui/console_core/frontend/index.html index 7a48f3f..4020621 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 @@
- - + + diff --git a/stage_ui/version.json b/stage_ui/version.json index 133f578..1b03147 100644 --- a/stage_ui/version.json +++ b/stage_ui/version.json @@ -1,3 +1,3 @@ { - "version": "3.1.14" + "version": "3.1.15" }