From 6c8743dcdbb9883f76710af5cc45d15561a53470 Mon Sep 17 00:00:00 2001 From: "Dennis (via Claude+Gemma)" Date: Sat, 23 May 2026 06:31:34 +0200 Subject: [PATCH] feat(router-phase11): routes/index.ts mount reports [tsc:fail] --- .phase11-state.json | 5 +++-- GENERATION_LOG.md | 17 +++++++++++++++++ apps/api/src/routes/index.ts | 2 ++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.phase11-state.json b/.phase11-state.json index a954196..723aa6a 100644 --- a/.phase11-state.json +++ b/.phase11-state.json @@ -1,12 +1,13 @@ { "completed_features": [], - "current_feature": "api-client-phase11", + "current_feature": "router-phase11", "started_at": "2026-05-23T06:21:46.924268", "attempted_features": [ "onboarding-tour", "time-entry-csv-import", "customer-archive", "project-cloning", - "pdf-export-stub" + "pdf-export-stub", + "api-client-phase11" ] } \ No newline at end of file diff --git a/GENERATION_LOG.md b/GENERATION_LOG.md index 5edaa23..57870a4 100644 --- a/GENERATION_LOG.md +++ b/GENERATION_LOG.md @@ -1416,3 +1416,20 @@ 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:31:22` **INFO** Committed feature api-client-phase11 +- `06:31:22` **INFO** Pushed: rc=0 + +## Phase-3 Feature: router-phase11 (2026-05-23 06:31:22) + +- `06:31:22` **INFO** Description: routes/index.ts mount reports +- `06:31:22` **INFO** Generating apps/api/src/routes/index.ts (ERWEITERT — füge reportsRoutes ('/api/reports'). Behalte alles.…) +- `06:31:33` **INFO** wrote 1345 chars in 10.6s (attempt 1) +- `06:31:33` **INFO** Running tsc --noEmit on api… +- `06:31:34` **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/api/src/routes/index.ts b/apps/api/src/routes/index.ts index eca3975..23b0257 100644 --- a/apps/api/src/routes/index.ts +++ b/apps/api/src/routes/index.ts @@ -10,6 +10,7 @@ import auditLogRoutes from "./audit-log" import documentsRoutes from "./documents" import searchRoutes from "./search" import webhookRoutes from "./webhooks" +import reportsRoutes from "./reports" export async function setupRoutes(server: FastifyInstance) { server.register(authRoutes, { prefix: "/api/auth" }) @@ -23,4 +24,5 @@ export async function setupRoutes(server: FastifyInstance) { server.register(documentsRoutes, { prefix: "/api/documents" }) server.register(searchRoutes, { prefix: "/api/search" }) server.register(webhookRoutes, { prefix: "/api/webhooks" }) + server.register(reportsRoutes, { prefix: "/api/reports" }) } \ No newline at end of file