feat: version display in web UI footer #11

Merged
gelu merged 5 commits from main into staging 2026-05-22 17:50:15 +00:00
Owner

Summary

  • Adds GET /version endpoint to the web container — returns the version baked into the image at build time
  • CI computes 1.0.<git-commit-count> and embeds it via --build-arg APP_VERSION during the web Docker build
  • Both index.html and cv-matcher/index.html footers show the version via a JS fetch (small, monospace, muted)
  • Removes APP_VERSION from docker-compose.yml (was incorrectly overriding the baked-in image value with unknown)

Test plan

🤖 Generated with Claude Code

## Summary - Adds `GET /version` endpoint to the web container — returns the version baked into the image at build time - CI computes `1.0.<git-commit-count>` and embeds it via `--build-arg APP_VERSION` during the web Docker build - Both `index.html` and `cv-matcher/index.html` footers show the version via a JS fetch (small, monospace, muted) - Removes `APP_VERSION` from docker-compose.yml (was incorrectly overriding the baked-in image value with `unknown`) ## Test plan - [ ] After merge and CI build, visit https://myai.easysoft.ro — version badge appears in footer (e.g. `v1.0.114`) - [ ] Visit https://myai.easysoft.ro/cv-matcher/ — same badge in footer - [ ] Visit https://myai.easysoft.ro/version — returns `{"version":"1.0.114"}` - [ ] Subsequent merges auto-increment the patch number 🤖 Generated with [Claude Code](https://claude.com/claude-code)
gelu added 2 commits 2026-05-22 17:21:49 +00:00
Exposes GET /version endpoint in the web container (reads APP_VERSION env var).
CI computes the version as 1.0.<git-commit-count> and passes it via --build-arg at build time.
Both index.html and cv-matcher/index.html show the version in the footer via a JS fetch.
docker-compose passes APP_VERSION through to the running container.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Setting APP_VERSION in docker-compose with a :-unknown fallback would override
the version baked into the image at build time. The CI already embeds it via
--build-arg APP_VERSION=1.0.<commit-count>, so compose should stay silent.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
gelu added 1 commit 2026-05-22 17:25:11 +00:00
Uses GetApplicationVersion(Assembly.GetExecutingAssembly()) — the same
timestamp-based version already logged at startup and baked into the
assembly via the csproj <Version> property. Removes the minimal-API
/version endpoint from web/Program.cs and reverts the web Dockerfile
APP_VERSION build-arg (no longer needed).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
gelu added 1 commit 2026-05-22 17:47:50 +00:00
Every public action now has <summary>, <param>, and <returns> XML docs
plus matching SwaggerOperation/SwaggerResponse attributes with typed response
descriptions. Class-level summaries added to CvController, JobSearchController,
and RagController. Explanatory inline comments removed from FileDownloadController
per project conventions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
claude approved these changes 2026-05-22 17:49:00 +00:00
gelu added 1 commit 2026-05-22 17:49:46 +00:00
gelu merged commit c553757db0 into staging 2026-05-22 17:50:15 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: AI/myAi#11