From f90fa802789d571136d50df88b360293b59bff74 Mon Sep 17 00:00:00 2001 From: AndyMik90 Date: Mon, 15 Dec 2025 17:40:41 +0100 Subject: [PATCH] auto-claude: subtask-6-1 - TypeScript compilation check - fix GraphitiStep type error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed TypeScript error in GraphitiStep.tsx where setDockerAvailable was receiving `boolean | undefined` instead of the expected `boolean | null`. Changed the ternary expression to explicitly return `true` or `false`. All onboarding wizard components now compile without TypeScript errors. Note: Pre-existing errors in terminal-name-generator.ts, Terminal.tsx, useVirtualizedTree.test.ts, and browser-mock.ts are outside the scope of this feature. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../src/renderer/components/onboarding/GraphitiStep.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto-claude-ui/src/renderer/components/onboarding/GraphitiStep.tsx b/auto-claude-ui/src/renderer/components/onboarding/GraphitiStep.tsx index 1549492c..e7231d5e 100644 --- a/auto-claude-ui/src/renderer/components/onboarding/GraphitiStep.tsx +++ b/auto-claude-ui/src/renderer/components/onboarding/GraphitiStep.tsx @@ -61,7 +61,7 @@ export function GraphitiStep({ onNext, onBack, onSkip }: GraphitiStepProps) { try { // Check infrastructure status via the electronAPI const result = await window.electronAPI.getInfrastructureStatus(); - setDockerAvailable(result?.success && result?.data?.docker?.running); + setDockerAvailable(result?.success && result?.data?.docker?.running ? true : false); } catch { // Infrastructure check may fail, assume unavailable setDockerAvailable(false);