Skip to content

fix(about): show the installed SITNA and OpenLayers versions - #219

Merged
fjlopez merged 2 commits into
devfrom
fix/about-installed-versions
Oct 25, 2026
Merged

fjlopez merged 2 commits into
devfrom
fix/about-installed-versions

Conversation

@fjlopez

@fjlopez fjlopez commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Why

The About window said API SITNA 4.8.0 because that string was typed into the environment files. The installed package is 4.9.1. The window also omitted OpenLayers, which is the map library SITNA uses.

What changed

  • About reads the installed api-sitna and ol versions when the viewer is built.
  • The hardcoded sitnaVersion field is gone from the environment files.
  • The README names API SITNA 4.9.1 and OpenLayers 10.5.0.

Scope

  • Covers the About window, its languages, and the README statement of the current packages.
  • Leaves API SITNA at 4.9.1. Release 4.10.0 does not compile in this app.
  • The Docker template in sitmun-application-stack still contains sitnaVersion. Drop that field when the stack pointer includes this commit. Dropping it earlier hides the row on the current viewer.

Tradeoffs

Reading package.json at build time keeps the window aligned after the next install. Writing 4.9.1 back into the environment files would repeat this bug.

4.10.0 is the newest SITNA release, and it is not in this pull request. Its package is missing four control templates, it no longer brings draggabilly, and its Cesium engine range conflicts with cesium 1.142.

Blast Radius

Anyone who opens About sees the SITNA and OpenLayers versions that this build installed. Map behavior is unchanged. The dependency range stays ^4.8.0, which resolves to 4.9.1.

Verification

  • Menu Jest: the new test failed on API SITNA Version: 4.8.0 while the installed package was 4.9.1, then passed.
  • npm test in the viewer: 123 suites, 1414 tests passed.
  • npm run e2e:viewer: 58 passed, 1 skipped. The skip is the existing expired-cargo case in password-access.spec.ts.
  • Dev server About dialog showed API SITNA 4.9.1 and OpenLayers 10.5.0.

The About dialog still prints a hardcoded SITNA version and has no
OpenLayers row. This fails until those values come from the installed
packages.
The dialog copied sitnaVersion from the environment files, which stayed
at 4.8.0 after api-sitna resolved to 4.9.1. Read both versions from the
installed packages when the viewer is built.

Fixes #218
@fjlopez
fjlopez merged commit 0951f32 into dev Oct 25, 2026
3 checks passed
@fjlopez
fjlopez deleted the fix/about-installed-versions branch October 26, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant