Skip to content

feat(app): show version in footer and /api/version - #5

Merged
T04435 merged 1 commit into
mainfrom
feat/app-version
Oct 22, 2026
Merged

T04435 merged 1 commit into
mainfrom
feat/app-version

Conversation

@T04435

@T04435 T04435 commented Oct 22, 2026

Copy link
Copy Markdown
Owner

v1.0.2 patch: the running version, and nothing else.

  • Footer: a centred last line with the shared Badge (primary variant, font-mono): v1.0.2 @ <hash>, plus · preview · <branch> or · local ( · dirty) off production. Tag links to the GitHub release, hash to the commit.
  • GET /api/version and a <meta name="app-version"> tag with the same data.
  • package.json version 1.0.2; pnpm check:version-tag checks it against a tag on HEAD.
  • Unit tests for src/lib/version.ts; e2e checks footer, API and meta agree and the badge sits centred at the bottom.

Local gates: lint (0 errors), typecheck, test:coverage (1135 passed), check:fixtures, full offline e2e (711 passed; the one mobile failure in the new spec fixed and rerun 6/6).

Needs Vercel → busk-map → Settings → Environment Variables → "Enable access to System Environment Variables" ticked for the sha/branch to show on Vercel builds.

🤖 Generated with Claude Code

Bake the package.json version, git sha, env, branch and dirty flag in at build
time (next.config env), read them only in src/lib/version.ts, and show them in
the shared footer as a centred VersionBadge on the shared Badge (primary
variant, mono): v1.0.2 @ sha, plus preview or local and the branch or dirty.
GET /api/version returns the same fields plus the deployment id, and the root
layout adds an app-version meta tag.

Adds scripts/check-version-tag.mjs (pnpm check:version-tag), unit tests for the
label formats and the badge, an e2e check that footer and API agree, and sets
package.json version to 1.0.2 for the v1.0.2 release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
busk-map Ready Ready Preview Oct 22, 2026 9:25am UTC

Request Review

@T04435
T04435 merged commit da120f5 into main Oct 22, 2026
9 checks passed
@T04435
T04435 deleted the feat/app-version branch October 23, 2026 14:41

This branch was successfully deployed

1 active deployment
Preview — b025d66b Deployed Oct 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant