From 32d4cd0e4b509f8fc3aa2b5daab41d2f669cc177 Mon Sep 17 00:00:00 2001 From: Claude Fable 5 Date: Wed, 15 Jul 2026 13:18:36 +0200 Subject: [PATCH] Footer: show the Dorfteich version next to the connection status MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Dockerfile has passed the release tag into the web build as VITE_APP_VERSION since the beginning, but nothing consumed it โ€” the footer now renders it right of the live/offline icon; dev builds show the 0.0.0-dev placeholder. Fixes #126 Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01Fb2VzvcoBPHkjh8bZ6PzQn --- apps/web/src/layout/Footer.tsx | 8 +++++++- apps/web/src/styles/base.css | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/apps/web/src/layout/Footer.tsx b/apps/web/src/layout/Footer.tsx index 6c4751a..07bba57 100644 --- a/apps/web/src/layout/Footer.tsx +++ b/apps/web/src/layout/Footer.tsx @@ -3,11 +3,16 @@ import { Link } from 'react-router-dom'; import { usePageActionsSlot } from './page-actions'; +/** The running Dorfteich version โ€” injected at build time (the Dockerfile + * passes the release tag as VITE_APP_VERSION); dev builds show the dev tag. */ +const APP_VERSION: string = (import.meta.env.VITE_APP_VERSION as string) || '0.0.0-dev'; + /** * The app-wide footer (issue #82): legal links on every view โ€” editor, * public pages, and auth screens all render inside AppLayout, so this one * spot covers them all. Since the M10 follow-ups the active page portals - * its connection-status icon into the left half; the legal links sit right. + * its connection-status icon into the left half (with the instance version + * next to it, #126); the legal links sit right. */ export function Footer(): React.JSX.Element { const { t } = useTranslation('legal'); @@ -15,6 +20,7 @@ export function Footer(): React.JSX.Element { return (