Versionsnummer in den Einstellungen sichtbar machen #191
Labels
No labels
priority/could
priority/must
priority/should
priority/wont
status/blocked
status/claimed
status/done-migrated
type/bug
type/feature
type/infra
type/tech-debt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
robert/todo#191
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Story: Versionsnummer in den Einstellungen sichtbar machen
As a Nutzer (oder jemand, der beim Debuggen hilft),
I want to in den Einstellungen der Live-Version nachsehen können, welche Version der App gerade läuft,
so that sich leicht prüfen lässt, ob ein erwartetes Feature/Fix schon deployed ist, bzw. welcher Stand bei einem Bug-Report gemeldet werden muss.
Kontext (verifiziert im Code):
AppVersion,BuildVersion,GitVersiono. ä., keine Anzeige in den Settings.Acceptance criteria:
Open questions (escalate to human if unanswered):
0.42.0) gewünscht, die separat hochgezählt werden müsste?Claimed by session "Go [76d2a8]"
Starting work. Open question resolved autonomously (PO): a short Git commit hash plus build timestamp is enough - no separately maintained semantic version (would violate the "set automatically, not maintained by hand" criterion). Plan: CI/Docker pass the commit SHA + build time as build args; backend exposes them via the existing health/version endpoint; frontend bakes its own SHA in at build time; Settings shows both and flags a mismatch.
Done - pushed to master (
8f09e166,0fba8028,5bfeb2bf,3856ddcd, plus a QA memory entry9ff77cc4).Scope
Version <short commit> - Built <local date/time>.App abc1234 - Server def5678) plus a hint that reloading fetches the current app.GetAppVersionQuery(authenticated, like every feature endpoint) returning commit + build time from theAppVersionconfig section.APP_COMMIT/APP_BUILD_TIMEbuild args and bakes them into both the frontend bundle (VITE_APP_*) and the backend env (AppVersion__*) from the same build, so the two halves of one image always agree. CI's docker job passesgithub.shaand the UTC build time. The local review container (docker-compose.dev.yml) accepts the same args via env and reportslocalwhen unset. Plaindotnet run/npm run devreportsdev.Decisions
Tests
GetAppVersionQueryHandlerTests(configured values, unset fallback todev, blank commit treated asdev); full Checkly.Tests suite green (1129).AppVersionInfo.test.tsx(7 tests: match, build time, unparseable build time, mismatch + hint, backend failure, closed dialog makes no call, non-hash label kept); full vitest suite green (1597);npm run buildgreen.Security review: no findings (one informational note, addressed by the comment fix above).