feat: show the site version in the footer #10

Merged
rcsheets merged 1 commit from feat/footer-version into main 2026-10-25 01:33:14 +00:00
Owner

Adds the site version to the home-page footer. It sits right-aligned on the same line as the Privacy and Terms links, above the disclaimer:

Privacy · Terms                         brooktrails-web v0.0.31 (1a2b3c4)
  • Read from the existing /build.json. v0.0.31 links to the release tag, 1a2b3c4 links to the commit, and hovering shows the build date.
  • If /build.json is unavailable, as in a local dev build without it, the element stays empty and is hidden.
  • On narrow screens the version wraps below the links and stays right-aligned.
  • The existing build-info HTML comment is unchanged.

Home page only: the other pages do not load main.js.

Verification

Checked in jsdom with a mocked /build.json: correct text, links and tooltip, and an empty element when the file is missing. The layout has not been checked in a real browser.

🤖 Generated with Claude Code

Adds the site version to the home-page footer. It sits right-aligned on the same line as the Privacy and Terms links, above the disclaimer: ``` Privacy · Terms brooktrails-web v0.0.31 (1a2b3c4) ``` - Read from the existing `/build.json`. `v0.0.31` links to the release tag, `1a2b3c4` links to the commit, and hovering shows the build date. - If `/build.json` is unavailable, as in a local `dev` build without it, the element stays empty and is hidden. - On narrow screens the version wraps below the links and stays right-aligned. - The existing build-info HTML comment is unchanged. Home page only: the other pages do not load `main.js`. ## Verification Checked in jsdom with a mocked `/build.json`: correct text, links and tooltip, and an empty element when the file is missing. The layout has not been checked in a real browser. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Right-aligned opposite the Privacy and Terms links, above the
disclaimer. Read from /build.json; the version links to its release
tag and the SHA to its commit, with the build date on hover.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rcsheets deleted branch feat/footer-version 2026-10-25 01:33:14 +00: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
brooktrails/brooktrails-web!10
No description provided.