Skip to content

Show application version in footer with runtime fallback#553

Open
rogene-bcgov with Copilot wants to merge 3 commits into
masterfrom
copilot/add-app-version-footer
Open

Show application version in footer with runtime fallback#553
rogene-bcgov with Copilot wants to merge 3 commits into
masterfrom
copilot/add-app-version-footer

Conversation

Copilot AI commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

The app footer did not expose a deploy/version identifier, and in environments where APP_VERSION was unset the footer area appeared blank. This change surfaces the deployed version in the global footer and keeps it visible even when the preferred runtime value is missing.

  • Runtime version wiring

    • Export RUNTIME_APP_VERSION from the client runtime config.
    • Populate window.RUNTIME_APP_VERSION from APP_VERSION in the nginx startup script, alongside the existing OpenShift runtime values.
  • Footer version display

    • Render the version in the global footer used across the app shell.
    • Prefer APP_VERSION, fall back to OPENSHIFT_BUILD_COMMIT, then to a static placeholder so the footer never disappears.
  • Fallback behavior

    • Handles current deployment states where the image/build metadata may not yet be passed through as APP_VERSION.
    • Makes the deployed artifact identifiable from the UI without requiring access to the version page.
const displayVersion =
  Constants.RUNTIME_APP_VERSION ||
  Constants.RUNTIME_OPENSHIFT_BUILD_COMMIT ||
  'Version unavailable';

Thanks for the PR!

After merge, new images are deployed and promoted to DEV:

Copilot AI changed the title [WIP] Enhance application footer to display app version number Add app version number in application footer Jun 25, 2026
Copilot AI requested a review from rogene-bcgov June 25, 2026 20:42
@rogene-bcgov
rogene-bcgov marked this pull request as ready for review June 25, 2026 20:43
Copilot AI changed the title Add app version number in application footer Show application version in footer with runtime fallback Jun 25, 2026
@sonarqubecloud

Copy link
Copy Markdown

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.

2 participants