Skip to content

Add deployed-version info: VERSION_D at /static/VERSION_D (#813) - #1477

Open
Kasinhou wants to merge 3 commits into
customer/TULfrom
deployed-version-info/TUL
Open

Add deployed-version info: VERSION_D at /static/VERSION_D (#813)#1477
Kasinhou wants to merge 3 commits into
customer/TULfrom
deployed-version-info/TUL

Conversation

@Kasinhou

Copy link
Copy Markdown

What & why (issue #813)

Every customer should be able to see which commit is currently deployed (served at /static/VERSION_D, as on dtq-dev). This branch had none of the mechanism, so the full feature is ported from dtq-dev.

Changes

  • scripts/sourceversion.py — generates src/static-files/VERSION_D.html (git hash, commit date, build-run + release links) at Docker build time.
  • .github/workflows/docker.yml — new Add version step runs the script before the image build.
  • src/app/static-page/* + src/app/shared/html-content.service.ts — static-page module that renders /static/<name> from static-files/<name>.html.
  • src/app/shared/utils/clarin-safehtml.pipe.tsdsSafeHtml pipe (required by the template) registered in SharedModule.
  • angular.json — register src/static-files build asset.
  • src/app/app-routing.module.ts — register the /static route.
  • en/cs i18n — static-page.404.* strings.

Verification

  • ng build compiles; dist/browser/static-files/VERSION_D.html is produced.
  • /static/VERSION_D renders the deployed-commit info.

🤖 Generated with Claude Code

Matus Kasak and others added 3 commits August 20, 2026 15:25
…_D (#813)

Port the deployed-commit info feature from dtq-dev so this instance can show
which commit is currently deployed:
- scripts/sourceversion.py generates src/static-files/VERSION_D.html (git hash,
  commit date, build-run link) at Docker build time.
- .github/workflows/docker.yml runs the version script before the image build.
- Static-page module + HtmlContentService serve /static/<name> from static-files/.
- ClarinSafeHtmlPipe (dsSafeHtml) ported and registered in SharedModule (needed
  by the static-page template).
- angular.json registers src/static-files as a build asset.
- app-routing.module.ts registers the /static route.
- en/cs i18n: static-page.404.* strings.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…813)

TUL/jcu had no src/static-files directory. The CI 'Add version' step redirects
into src/static-files/VERSION_D.html and angular.json ships src/static-files as
a build asset, both of which require the directory to exist. Commit a placeholder
(overwritten at build time) to guarantee it.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Only the deployed-version info page should be served, not a full LINDAT-style
static-page set. Restrict the angular.json asset to VERSION_D.html so nothing
else under src/static-files becomes web-accessible.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Kasinhou Kasinhou self-assigned this Aug 21, 2026
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