diff --git a/.phase30-state.json b/.phase30-state.json index ba88c02..c4fb984 100644 --- a/.phase30-state.json +++ b/.phase30-state.json @@ -1,5 +1,8 @@ { "completed_features": [], - "current_feature": "404-not-found-page", - "started_at": "2026-05-23T09:23:38.401372" + "current_feature": "api-error-pages", + "started_at": "2026-05-23T09:23:38.401372", + "attempted_features": [ + "404-not-found-page" + ] } \ No newline at end of file diff --git a/GENERATION_LOG.md b/GENERATION_LOG.md index bc9ef47..74475b2 100644 --- a/GENERATION_LOG.md +++ b/GENERATION_LOG.md @@ -3399,3 +3399,23 @@ 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, +- `09:24:53` **INFO** Committed feature 404-not-found-page +- `09:24:53` **INFO** Pushed: rc=0 + +## Phase-3 Feature: api-error-pages (2026-05-23 09:24:53) + +- `09:24:53` **INFO** Description: 500-Error-Page bei API-Down +- `09:24:53` **INFO** Generating apps/web/src/components/ApiErrorBanner.tsx (ApiErrorBanner-Component. useQuery('health', () => api.health(), {refe…) +- `09:24:59` **INFO** wrote 592 chars in 6.0s (attempt 1) +- `09:24:59` **INFO** Generating apps/web/src/App.tsx (ERWEITERT — mount direkt unter Nav (vor Outlet). Be…) +- `09:26:04` **INFO** wrote 7942 chars in 64.4s (attempt 1) +- `09:26:04` **INFO** Running tsc --noEmit on api… +- `09:26:06` **WARN** tsc errors: +src/db/schema.ts(37,14): error TS7022: 'customers' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +src/db/schema.ts(45,59): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. +src/db/schema.ts(49,14): error TS7022: 'projects' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +src/db/schema.ts(53,56): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. +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, diff --git a/apps/web/src/App.tsx b/apps/web/src/App.tsx index 05e0a7e..24e69d1 100644 --- a/apps/web/src/App.tsx +++ b/apps/web/src/App.tsx @@ -34,6 +34,7 @@ import VersionBadge from "./components/VersionBadge" import QuickAdd from "./components/QuickAdd" import IdleDetector from "./components/IdleDetector" import UndoStack from "./components/UndoStack" +import ApiErrorBanner from "./components/ApiErrorBanner" import { ToastProvider } from "./components/Toast" import ErrorBoundary from "./components/ErrorBoundary" import { api } from "./lib/api" @@ -47,6 +48,7 @@ const rootRoute = createRootRoute({