From b9ac4491530a220fb2742a498810b81aec6877ff Mon Sep 17 00:00:00 2001 From: "Dennis (via Claude+Gemma)" Date: Sat, 23 May 2026 06:38:32 +0200 Subject: [PATCH] feat(app-version-display): Version-Badge im Footer (aus package.json) [tsc:fail] --- .phase12-state.json | 5 +- GENERATION_LOG.md | 19 +++++++ apps/web/src/App.tsx | 71 ++++++++++++------------ apps/web/src/components/VersionBadge.tsx | 22 ++++++++ 4 files changed, 79 insertions(+), 38 deletions(-) create mode 100644 apps/web/src/components/VersionBadge.tsx diff --git a/.phase12-state.json b/.phase12-state.json index ddb0b52..8cb819a 100644 --- a/.phase12-state.json +++ b/.phase12-state.json @@ -1,9 +1,10 @@ { "completed_features": [], - "current_feature": "user-avatars", + "current_feature": "app-version-display", "started_at": "2026-05-23T06:33:48.406343", "attempted_features": [ "invoicing-stub", - "time-rounding-rules" + "time-rounding-rules", + "user-avatars" ] } \ No newline at end of file diff --git a/GENERATION_LOG.md b/GENERATION_LOG.md index 6358375..531a0dc 100644 --- a/GENERATION_LOG.md +++ b/GENERATION_LOG.md @@ -1497,3 +1497,22 @@ src/index.ts(27,25): error TS2769: No overload matches this call. Overload 2 of 3, '(plugin: FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error. Argument of type 'Promise' is not assignable to parameter of type 'FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'. Type 'Promise' provides no match for the signature '(instance: FastifyInstance, FastifyBaseLogger, FastifyTy +- `06:37:40` **INFO** Committed feature user-avatars +- `06:37:40` **INFO** Pushed: rc=0 + +## Phase-3 Feature: app-version-display (2026-05-23 06:37:40) + +- `06:37:40` **INFO** Description: Version-Badge im Footer (aus package.json) +- `06:37:40` **INFO** Generating apps/web/src/components/VersionBadge.tsx (VersionBadge-Component. Liest Version aus import.meta.env.VITE_APP_VER…) +- `06:37:45` **INFO** wrote 497 chars in 4.9s (attempt 1) +- `06:37:45` **INFO** Generating apps/web/src/App.tsx (ERWEITERT — füge im Footer-Bereich des Root-Routes. F…) +- `06:38:30` **INFO** wrote 5466 chars in 45.0s (attempt 1) +- `06:38:30` **INFO** Running tsc --noEmit on api… +- `06:38:32` **WARN** tsc errors: +src/index.ts(27,25): error TS2769: No overload matches this call. + Overload 1 of 3, '(plugin: FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error. + Argument of type 'Promise' is not assignable to parameter of type 'FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'. + Type 'Promise' provides no match for the signature '(instance: FastifyInstance, FastifyBaseLogger, FastifyTypeProvider>, opts: { ...; }, done: (err?: Error | undefined) => void): void'. + Overload 2 of 3, '(plugin: FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error. + Argument of type 'Promise' is not assignable to parameter of type 'FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'. + Type 'Promise' provides no match for the signature '(instance: FastifyInstance, FastifyBaseLogger, FastifyTy diff --git a/apps/web/src/App.tsx b/apps/web/src/App.tsx index f2b347c..81a0464 100644 --- a/apps/web/src/App.tsx +++ b/apps/web/src/App.tsx @@ -21,6 +21,7 @@ import Nav from "./components/Nav" import CommandPalette from "./components/CommandPalette" import KeyboardHelp from "./components/KeyboardHelp" import OnboardingTour from "./components/OnboardingTour" +import VersionBadge from "./components/VersionBadge" import { ToastProvider } from "./components/Toast" import ErrorBoundary from "./components/ErrorBoundary" import { api } from "./lib/api" @@ -28,12 +29,17 @@ import { api } from "./lib/api" const rootRoute = createRootRoute({ component: () => ( -
-