From 03a3f85974fe63320f669c1efb7b1f6c36cd68da Mon Sep 17 00:00:00 2001 From: art Date: Fri, 30 Jan 2026 14:56:10 +0900 Subject: [PATCH] Refactor development mode checks to use DEV_UI_ENABLED constant. Updated conditional logic throughout the App component to improve clarity and maintainability. Removed deprecated demo session button to streamline the UI. --- src/renderer/App.tsx | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/src/renderer/App.tsx b/src/renderer/App.tsx index d189a65..d8b17b8 100644 --- a/src/renderer/App.tsx +++ b/src/renderer/App.tsx @@ -113,7 +113,7 @@ const App = () => { setGitCheckInProgress(true); try { - if (IS_DEV && simulateToolsMissingRef.current) { + if (DEV_UI_ENABLED && simulateToolsMissingRef.current) { const simulated = { git: { ok: false, command: "git", error: "simulated_missing" }, lfs: { ok: false, command: "git lfs", error: "simulated_missing" }, @@ -303,7 +303,7 @@ const App = () => { if (serverRecoveryActive) { setServerRecoveryActive(false); - if (IS_DEV) { + if (DEV_UI_ENABLED) { setDevProceedReady(true); } else { scheduleScreenTransition("login"); @@ -315,7 +315,7 @@ const App = () => { return; } - if (IS_DEV) { + if (DEV_UI_ENABLED) { setDevProceedReady(true); return; } @@ -870,7 +870,9 @@ const App = () => { className="ghost" onClick={() => { setSkipToolsCheck(true); - scheduleScreenTransition(IS_DEV ? "login" : hasSession ? "main" : "login"); + scheduleScreenTransition( + DEV_UI_ENABLED ? "login" : hasSession ? "main" : "login" + ); }} > 나중에 진행 @@ -878,7 +880,7 @@ const App = () => { )} - {IS_DEV && + {DEV_UI_ENABLED && serverHealthy && (skipToolsCheck || Boolean(gitCheckResult?.git.ok && gitCheckResult?.lfs.ok)) && ( @@ -894,7 +896,7 @@ const App = () => { 다음으로 이동 )} - {IS_DEV && ( + {DEV_UI_ENABLED && ( - )}