diff --git a/.gitea/workflows/frontend.yml b/.gitea/workflows/frontend.yml
index f4d0d43..e590804 100644
--- a/.gitea/workflows/frontend.yml
+++ b/.gitea/workflows/frontend.yml
@@ -51,6 +51,8 @@ jobs:
run: |
docker buildx build \
--platform linux/arm64 \
+ --build-arg VITE_APP_VERSION=$(git describe --tags) \
+ --build-arg VITE_APP_GITSHA=$(git rev-parse --short HEAD) \
-t gitea.lan/jacobh2/babymonitor-frontend:${{ env.VERSION }} \
./frontend \
--push
diff --git a/frontend/Dockerfile b/frontend/Dockerfile
index 1ccdcdc..5cf23b7 100644
--- a/frontend/Dockerfile
+++ b/frontend/Dockerfile
@@ -1,5 +1,9 @@
FROM node:22-alpine AS build
+ARG VITE_APP_VERSION=unknown
+ARG VITE_APP_GITSHA=unknown
+ENV VITE_APP_VERSION=$VITE_APP_VERSION
+ENV VITE_APP_GITSHA=$VITE_APP_GITSHA
WORKDIR /app
# Copy package files first to leverage Docker cache
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
index 6b8dbd9..7660ac6 100644
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@ -4,6 +4,8 @@ import TrackerPage from './components/tracker/TrackerPage';
import StatsPage from './components/stats/StatsPage';
import Navbar from './components/Navbar';
import Playground from './components/Playground';
+import Footer from './components/Footer';
+
function App() {
return (
@@ -17,6 +19,7 @@ function App() {
} />
+
);
diff --git a/todo.md b/todo.md
index bbce8fb..adcfa37 100644
--- a/todo.md
+++ b/todo.md
@@ -19,9 +19,9 @@ exitcode '1': failure
```
- [ ] Editing a sleep session in "sleep sessions", when I click the edit button the times show up as UTC but should show as my local timezone
-- [ ] We should drop the "notes" column from the sleep_session table
+- [/] We should drop the "notes" column from the sleep_session table
- [x] Switch over to oh-my-opencode and try it out
-- [/] Adda footer at the bottom of the app that shows the version (aka git tag) of the app
+- [x] Adda footer at the bottom of the app that shows the version (aka git tag) of the app
- [-] Fix race condition of gitea workflows
If both workflows run at the same time, a race condition occurs: