feat(ui): show date-based version in footer #29
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/version-footer"
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?
Summary
Displays a date-based version string in the app footer, derived from git commit metadata at build time (not wall-clock build time).
Version format:
YYYY.M.D+<shortsha>from the last commit, e.g.v2026.8.12+efc2ac5.Changes
justfile: newversionvariable computed viagit log -1 --format='%cs %h'(reformatted to dotted date, falls back todevwhen git metadata is unavailable); passed to the Angular build through the existing--definemechanism asAPP_VERSION, and to the Go binary via-ldflags -X main.Version.frontend/angular.json: defaultAPP_VERSIONdefine of"dev"song serve/ tests work without the flag.frontend/src/app/app.ts/app.html/app.css: footer rendersv{{ version }}with light, high-contrast styling; degrades gracefully tovdevwhen the define is absent.frontend/src/app/app.spec.ts: new test asserting the footer version shape.main.go: logs the version at startup.Verification
just buildsucceeds;2026.8.12+efc2ac5confirmed present in the built JS bundle and the Go binary.gofmt/prettierclean (just format).ng build --configuration development, no define flag) falls back todev.