Skip to content

Conversation

@javi11
Copy link
Owner

@javi11 javi11 commented Jan 8, 2026

Summary

  • Add compile-time version variables (__APP_VERSION__, __GIT_COMMIT__, __GITHUB_URL__) via Vite's define option
  • Add TypeScript declarations for the global variables
  • Display version and shortened git commit hash next to the dashboard title

Test plan

  • Run bun run dev in frontend and verify version displays (will show v0.0.0 in dev)
  • Build with GIT_COMMIT=$(git rev-parse HEAD) bun run build and verify commit hash appears
  • Verify TypeScript has no errors related to the new global variables

🤖 Generated with Claude Code

Add compile-time version information to the dashboard header using Vite's
define feature. The version is read from package.json and the git commit
hash is read from the GIT_COMMIT environment variable at build time.

- Add __APP_VERSION__, __GIT_COMMIT__, and __GITHUB_URL__ to vite config
- Add TypeScript declarations for the global variables
- Display version and shortened commit hash next to dashboard title

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@javi11 javi11 added the bug Something isn't working label Jan 8, 2026
@javi11 javi11 merged commit 5a9d0a5 into main Jan 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants