feat: expose qualityReview via updateInitiativeConfig tRPC mutation

Adds qualityReview: z.boolean().optional() to the updateInitiativeConfig
input schema so the field passes through to the repository layer.
Includes integration tests verifying set-true, set-false, and
omit-preserves-existing round-trip behavior.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lukas May
2026-03-06 21:53:58 +01:00
parent 5137a60e70
commit bb770407db
2 changed files with 98 additions and 0 deletions

View File

@@ -221,6 +221,7 @@ export function initiativeProcedures(publicProcedure: ProcedureBuilder) {
initiativeId: z.string().min(1),
executionMode: z.enum(['yolo', 'review_per_phase']).optional(),
branch: z.string().nullable().optional(),
qualityReview: z.boolean().optional(),
}))
.mutation(async ({ ctx, input }) => {
const repo = requireInitiativeRepository(ctx);