Refactor comments in OpenCodeAgent and AIAgentDataAPI for clarity; remove unused sections in NavBarMenu and NavBarMenuItem

This commit is contained in:
Nawaz Dhandala
2026-01-08 14:25:17 +00:00
parent c40e18b2ed
commit 65fa365d06
4 changed files with 9 additions and 18 deletions

View File

@@ -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<string> = [
"run",
"--print-logs",

View File

@@ -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,

View File

@@ -11,7 +11,6 @@ export interface MenuSection {
export interface ComponentProps {
children: ReactElement | Array<ReactElement>;
sections?: MenuSection[];
footer?: {
title: string;
description: string;

View File

@@ -22,7 +22,7 @@ const NavBarMenuItem: FunctionComponent<ComponentProps> = (
// 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<ComponentProps> = (
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",