From 65fa365d063a022811a41eb4220f1386c11f820c Mon Sep 17 00:00:00 2001 From: Nawaz Dhandala Date: Thu, 8 Jan 2026 14:25:17 +0000 Subject: [PATCH] Refactor comments in OpenCodeAgent and AIAgentDataAPI for clarity; remove unused sections in NavBarMenu and NavBarMenuItem --- AIAgent/CodeAgents/OpenCodeAgent.ts | 6 ++++-- Common/Server/API/AIAgentDataAPI.ts | 6 ++++-- Common/UI/Components/Navbar/NavBarMenu.tsx | 1 - Common/UI/Components/Navbar/NavBarMenuItem.tsx | 14 +------------- 4 files changed, 9 insertions(+), 18 deletions(-) diff --git a/AIAgent/CodeAgents/OpenCodeAgent.ts b/AIAgent/CodeAgents/OpenCodeAgent.ts index c4a4e6443a..92d0bfa0e2 100644 --- a/AIAgent/CodeAgents/OpenCodeAgent.ts +++ b/AIAgent/CodeAgents/OpenCodeAgent.ts @@ -364,8 +364,10 @@ export default class OpenCodeAgent implements CodeAgent { } } - // Use CLI mode flags to ensure output goes to stdout/stderr instead of TUI - // Pass prompt via stdin using "-" to avoid command line argument issues with long prompts + /* + * Use CLI mode flags to ensure output goes to stdout/stderr instead of TUI + * Pass prompt via stdin using "-" to avoid command line argument issues with long prompts + */ const args: Array = [ "run", "--print-logs", diff --git a/Common/Server/API/AIAgentDataAPI.ts b/Common/Server/API/AIAgentDataAPI.ts index eed9cb753c..9f8107ae70 100644 --- a/Common/Server/API/AIAgentDataAPI.ts +++ b/Common/Server/API/AIAgentDataAPI.ts @@ -458,8 +458,10 @@ export default class AIAgentDataAPI { ); } - // Generate GitHub installation access token with write permissions - // Required for AI Agent to push branches and create pull requests + /* + * Generate GitHub installation access token with write permissions + * Required for AI Agent to push branches and create pull requests + */ const tokenData: GitHubInstallationToken = await GitHubUtil.getInstallationAccessToken( codeRepository.gitHubAppInstallationId, diff --git a/Common/UI/Components/Navbar/NavBarMenu.tsx b/Common/UI/Components/Navbar/NavBarMenu.tsx index e16bb34675..476d8d2dff 100644 --- a/Common/UI/Components/Navbar/NavBarMenu.tsx +++ b/Common/UI/Components/Navbar/NavBarMenu.tsx @@ -11,7 +11,6 @@ export interface MenuSection { export interface ComponentProps { children: ReactElement | Array; - sections?: MenuSection[]; footer?: { title: string; description: string; diff --git a/Common/UI/Components/Navbar/NavBarMenuItem.tsx b/Common/UI/Components/Navbar/NavBarMenuItem.tsx index 684f8e3eaf..a1b96b3503 100644 --- a/Common/UI/Components/Navbar/NavBarMenuItem.tsx +++ b/Common/UI/Components/Navbar/NavBarMenuItem.tsx @@ -22,7 +22,7 @@ const NavBarMenuItem: FunctionComponent = ( // Map color names to their respective Tailwind classes const colorClasses: Record< string, - { Please makbg: string; ring: string; hoverBg: string; hoverRing: string } + { bg: string; ring: string; hoverBg: string; hoverRing: string } > = { purple: { bg: "bg-purple-50", @@ -72,18 +72,6 @@ const NavBarMenuItem: FunctionComponent = ( hoverBg: "hover:bg-indigo-50", hoverRing: "group-hover:ring-indigo-300", }, - stone: { - bg: "bg-stone-50", - ring: "ring-stone-200", - hoverBg: "hover:bg-stone-50", - hoverRing: "group-hover:ring-stone-300", - }, - sky: { - bg: "bg-sky-50", - ring: "ring-sky-200", - hoverBg: "hover:bg-sky-50", - hoverRing: "group-hover:ring-sky-300", - }, rose: { bg: "bg-rose-50", ring: "ring-rose-200",