Stats: Label build/version information clearly #37
Loading…
Add table
Add a link
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?
Problem
The Uptime StatCard shows
vc4c2c44as the version (thesubprop). This is a raw git commit hash leaking into the UI. It reads like a broken version string.Root cause
File:
frontend/src/pages/Stats.tsxline ~197:The
health.versionfield from/api/healthcontains a git SHA or short hash, not a semver. Thevprefix makes it look like a version tag when it's actually a commit reference.Implementation
Option A — Label it as "build"
Option B — Backend fix
In
main.py, the/api/healthroute should return a proper version. Check if there's aVERSIONfile,pyproject.toml, or env var. If available, expose it asversionin the health response instead of the git hash.In
config.py, add:In
main.py/api/healthroute, useconfig.APP_VERSION.In the Docker build (CI pipeline), pass
--build-arg APP_VERSION=<tag>and setENV APP_VERSIONin the Dockerfile.Recommended: Option B, fallback to Option A
If CI doesn't inject a version, fall back to "build {hash}" in the frontend.
Acceptance criteria
vc4c2c44-style stringsv1.2.3), a clean build label (build c4c2c44), ordevBrand identity alignment
Trackbox should feel technical and transparent, but raw hashes should be labeled honestly. A git SHA is useful as build provenance, not a user-facing semantic version by itself.
Brand-compliant implementation notes
build c4c2c44for commit hashes,v1.2.3only for actual versions, anddevfor local development.Additional acceptance criteria
v.Migrated from GitHub issue #16: https://github.com/bullitt186/trackbox/issues/16
Original author: @bullitt186
Original created: 2026-06-27T13:24:32Z
Original labels: ux
Stats: Fix version display — shows raw git hash instead of version stringto Stats: Label build/version information clearlyImplemented in commit
bd6b0e7. Changed the Uptime StatCard subtitle fromv${health.version}tobuild ${health.version}. Git SHAs are now labelled as build references rather than semantic versions, which is honest about what the value represents. Self-hosters can still read the exact commit from the UI without confusion.