fix: Resolve CI typecheck failures and improve type safety

Fixes CI pipeline failures caused by missing Prisma Client generation and TypeScript type safety issues. Added Prisma generation step to CI pipeline, installed missing type dependencies, and resolved 40+ exactOptionalPropertyTypes violations across service layer.

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
This commit is contained in:
2026-01-30 20:39:03 -06:00
co-authored by Claude Sonnet 4.5
parent 82b36e1d66
commit c221b63d14
19 changed files with 256 additions and 115 deletions
+10 -2
View File
@@ -105,7 +105,7 @@ export class LayoutsService {
workspaceId,
userId,
isDefault: createLayoutDto.isDefault ?? false,
layout: createLayoutDto.layout as unknown as Prisma.JsonValue,
layout: createLayoutDto.layout as unknown as Prisma.InputJsonValue,
},
});
});
@@ -141,13 +141,21 @@ export class LayoutsService {
});
}
// Build update data, handling layout field separately
const updateData: Prisma.UserLayoutUpdateInput = {};
if (updateLayoutDto.name !== undefined) updateData.name = updateLayoutDto.name;
if (updateLayoutDto.isDefault !== undefined) updateData.isDefault = updateLayoutDto.isDefault;
if (updateLayoutDto.layout !== undefined) {
updateData.layout = updateLayoutDto.layout as unknown as Prisma.InputJsonValue;
}
return tx.userLayout.update({
where: {
id,
workspaceId,
userId,
},
data: updateLayoutDto,
data: updateData,
});
});
}