chore/display-version #56

Merged
nrupard merged 3 commits from chore/display-version into main 2026-05-08 02:59:32 +02:00
Owner
No description provided.
Every binary now reports its application version (workspace package version), git hash, git describe output, and UTC build date so operators can confirm exactly what is running.

- Adds a build.rs to the server and desktop crates that emits GIT_HASH, GIT_VERSION, and BUILD_DATE as compile-time env vars. Each value falls back from build env -> git command -> "unknown", so production builds (Docker context excludes .git) can inject values via build args while local builds discover them automatically.
- Server: --version / -V prints the banner and exits; startup logs the same fields; new public /version endpoint returns the values as JSON; the login and register pages show "vX.Y.Z (<hash>)" with the build date as a tooltip.
- Desktop: --version / -V prints the banner and exits; startup logs to stderr; window title now embeds version + short hash.
- dev/cargo, dev/cargo-desktop, and dev/server-up forward GIT_HASH, GIT_VERSION, and BUILD_DATE into the rust container (the slim image has no git on its own). Justfile docker recipes and compose.dev.yml plumb the same args through to the multi-stage Dockerfile, which propagates them as ENV in the builder stage so the build script sees them.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds an "About" section to /settings listing the application version, git describe output, commit hash, and build date so authenticated users can see exactly what they are connected to without needing to hit /version directly.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds a small version chip to the right side of the /admin nav bar so admins can confirm the running build at a glance from any admin page. The chip shows "vX.Y.Z (<short-hash>)" and uses the git describe output and build date as a tooltip.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
nrupard deleted branch chore/display-version 2026-05-08 02:59:32 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/lets-chat!56
No description provided.