From a3452bda75d090d27209c7518761eba37f776a68 Mon Sep 17 00:00:00 2001 From: "Dennis (via Claude+Gemma)" Date: Sat, 23 May 2026 07:17:23 +0200 Subject: [PATCH] feat(router-phase16): Mount time-entry-templates route [tsc:fail] --- .phase16-state.json | 5 +++-- GENERATION_LOG.md | 17 +++++++++++++++++ apps/api/src/routes/index.ts | 2 ++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.phase16-state.json b/.phase16-state.json index 40ed6fa..ecd72f9 100644 --- a/.phase16-state.json +++ b/.phase16-state.json @@ -1,12 +1,13 @@ { "completed_features": [], - "current_feature": "api-client-phase16", + "current_feature": "router-phase16", "started_at": "2026-05-23T07:08:48.804883", "attempted_features": [ "pinned-customers", "smart-suggestions", "recent-projects-quick-access", "time-entry-templates", - "dark-mode-improvements" + "dark-mode-improvements", + "api-client-phase16" ] } \ No newline at end of file diff --git a/GENERATION_LOG.md b/GENERATION_LOG.md index 97be53c..ad02d00 100644 --- a/GENERATION_LOG.md +++ b/GENERATION_LOG.md @@ -1992,3 +1992,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 +- `07:17:07` **INFO** Committed feature api-client-phase16 +- `07:17:07` **INFO** Pushed: rc=0 + +## Phase-3 Feature: router-phase16 (2026-05-23 07:17:07) + +- `07:17:07` **INFO** Description: Mount time-entry-templates route +- `07:17:07` **INFO** Generating apps/api/src/routes/index.ts (ERWEITERT — füge timeEntryTemplateRoutes ('/api/time-entry-templates')…) +- `07:17:21` **INFO** wrote 1823 chars in 14.3s (attempt 1) +- `07:17:21` **INFO** Running tsc --noEmit on api… +- `07:17:23` **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 1ace7a6..678d561 100644 --- a/apps/api/src/routes/index.ts +++ b/apps/api/src/routes/index.ts @@ -4,6 +4,7 @@ import customerRoutes from "./customers" import projectRoutes from "./projects" import projectTemplateRoutes from "./project-templates" import timeEntryRoutes from "./time-entries" +import timeEntryTemplateRoutes from "./time-entry-templates" import userRoutes from "./users" import settingsRoutes from "./settings" import auditLogRoutes from "./audit-log" @@ -18,6 +19,7 @@ import notificationRoutes from "./notifications" export async function setupRoutes(server: FastifyInstance) { server.register(authRoutes, { prefix: "/api/auth" }) server.register(timeEntryRoutes, { prefix: "/api/time-entries" }) + server.register(timeEntryTemplateRoutes, { prefix: "/api/time-entry-templates" }) server.register(customerRoutes, { prefix: "/api/customers" }) server.register(projectRoutes, { prefix: "/api/projects" }) server.register(projectTemplateRoutes, { prefix: "/api/project-templates" })