mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
Refactor comments in OpenCodeAgent and AIAgentDataAPI for clarity; remove unused sections in NavBarMenu and NavBarMenuItem
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -11,7 +11,6 @@ export interface MenuSection {
|
||||
|
||||
export interface ComponentProps {
|
||||
children: ReactElement | Array<ReactElement>;
|
||||
sections?: MenuSection[];
|
||||
footer?: {
|
||||
title: string;
|
||||
description: string;
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user