diff --git a/app/src/components/views/settings-view.tsx b/app/src/components/views/settings-view.tsx index 61b7c7db..a61df1ea 100644 --- a/app/src/components/views/settings-view.tsx +++ b/app/src/components/views/settings-view.tsx @@ -33,10 +33,10 @@ import { ApiKeysSection } from "./settings-view/api-keys/api-keys-section"; import { ClaudeCliStatus } from "./settings-view/cli-status/claude-cli-status"; import { CodexCliStatus } from "./settings-view/cli-status/codex-cli-status"; import { AppearanceSection } from "./settings-view/appearance/appearance-section"; -import { KanbanDisplaySection } from "./settings-view/kanban-display-section"; -import { KeyboardShortcutsSection } from "./settings-view/keyboard-shortcuts-section"; -import { FeatureDefaultsSection } from "./settings-view/feature-defaults-section"; -import { DangerZoneSection } from "./settings-view/danger-zone-section"; +import { KanbanDisplaySection } from "./settings-view/kanban-display/kanban-display-section"; +import { KeyboardShortcutsSection } from "./settings-view/keyboard-shortcuts/keyboard-shortcuts-section"; +import { FeatureDefaultsSection } from "./settings-view/feature-defaults/feature-defaults-section"; +import { DangerZoneSection } from "./settings-view/danger-zone/danger-zone-section"; // Navigation items for the side panel const NAV_ITEMS = [ diff --git a/app/src/components/views/settings-view/cli-status-section.tsx b/app/src/components/views/settings-view/cli-status-section.tsx deleted file mode 100644 index 050453b8..00000000 --- a/app/src/components/views/settings-view/cli-status-section.tsx +++ /dev/null @@ -1,304 +0,0 @@ -import { Button } from "@/components/ui/button"; -import { - Terminal, - CheckCircle2, - AlertCircle, - RefreshCw, - Atom, -} from "lucide-react"; -import type { CliStatus } from "./types"; - -interface CliStatusProps { - status: CliStatus | null; - isChecking: boolean; - onRefresh: () => void; -} - -export function ClaudeCliStatus({ - status, - isChecking, - onRefresh, -}: CliStatusProps) { - if (!status) return null; - - return ( -
-
-
-
- -

- Claude Code CLI -

-
- -
-

- Claude Code CLI provides better performance for long-running tasks, - especially with ultrathink. -

-
-
- {status.success && status.status === "installed" ? ( -
-
- -
-

- Claude Code CLI Installed -

-
- {status.method && ( -

- Method: {status.method} -

- )} - {status.version && ( -

- Version:{" "} - {status.version} -

- )} - {status.path && ( -

- Path:{" "} - - {status.path} - -

- )} -
-
-
- {status.recommendation && ( -

- {status.recommendation} -

- )} -
- ) : ( -
-
- -
-

- Claude Code CLI Not Detected -

-

- {status.recommendation || - "Consider installing Claude Code CLI for optimal performance with ultrathink."} -

-
-
- {status.installCommands && ( -
-

- Installation Commands: -

-
- {status.installCommands.npm && ( -
-

npm:

- - {status.installCommands.npm} - -
- )} - {status.installCommands.macos && ( -
-

- macOS/Linux: -

- - {status.installCommands.macos} - -
- )} - {status.installCommands.windows && ( -
-

- Windows (PowerShell): -

- - {status.installCommands.windows} - -
- )} -
-
- )} -
- )} -
-
- ); -} - -export function CodexCliStatus({ - status, - isChecking, - onRefresh, -}: CliStatusProps) { - if (!status) return null; - - return ( -
-
-
-
- -

- OpenAI Codex CLI -

-
- -
-

- Codex CLI enables GPT-5.1 Codex models for autonomous coding tasks. -

-
-
- {status.success && status.status === "installed" ? ( -
-
- -
-

- Codex CLI Installed -

-
- {status.method && ( -

- Method: {status.method} -

- )} - {status.version && ( -

- Version:{" "} - {status.version} -

- )} - {status.path && ( -

- Path:{" "} - - {status.path} - -

- )} -
-
-
- {status.recommendation && ( -

- {status.recommendation} -

- )} -
- ) : status.status === "api_key_only" ? ( -
-
- -
-

- API Key Detected - CLI Not Installed -

-

- {status.recommendation || - "OPENAI_API_KEY found but Codex CLI not installed. Install the CLI for full agentic capabilities."} -

-
-
- {status.installCommands && ( -
-

- Installation Commands: -

-
- {status.installCommands.npm && ( -
-

npm:

- - {status.installCommands.npm} - -
- )} -
-
- )} -
- ) : ( -
-
- -
-

- Codex CLI Not Detected -

-

- {status.recommendation || - "Install OpenAI Codex CLI to use GPT-5.1 Codex models for autonomous coding."} -

-
-
- {status.installCommands && ( -
-

- Installation Commands: -

-
- {status.installCommands.npm && ( -
-

npm:

- - {status.installCommands.npm} - -
- )} - {status.installCommands.macos && ( -
-

- macOS (Homebrew): -

- - {status.installCommands.macos} - -
- )} -
-
- )} -
- )} -
-
- ); -} diff --git a/app/src/components/views/settings-view/danger-zone-section.tsx b/app/src/components/views/settings-view/danger-zone/danger-zone-section.tsx similarity index 97% rename from app/src/components/views/settings-view/danger-zone-section.tsx rename to app/src/components/views/settings-view/danger-zone/danger-zone-section.tsx index f791d763..3efdbaa7 100644 --- a/app/src/components/views/settings-view/danger-zone-section.tsx +++ b/app/src/components/views/settings-view/danger-zone/danger-zone-section.tsx @@ -1,6 +1,6 @@ import { Button } from "@/components/ui/button"; import { Trash2, Folder } from "lucide-react"; -import type { Project } from "./types"; +import type { Project } from "../types"; interface DangerZoneSectionProps { project: Project | null; diff --git a/app/src/components/views/settings-view/feature-defaults-section.tsx b/app/src/components/views/settings-view/feature-defaults/feature-defaults-section.tsx similarity index 100% rename from app/src/components/views/settings-view/feature-defaults-section.tsx rename to app/src/components/views/settings-view/feature-defaults/feature-defaults-section.tsx diff --git a/app/src/components/views/settings-view/kanban-display-section.tsx b/app/src/components/views/settings-view/kanban-display/kanban-display-section.tsx similarity index 98% rename from app/src/components/views/settings-view/kanban-display-section.tsx rename to app/src/components/views/settings-view/kanban-display/kanban-display-section.tsx index 0f22ee3c..55cc0789 100644 --- a/app/src/components/views/settings-view/kanban-display-section.tsx +++ b/app/src/components/views/settings-view/kanban-display/kanban-display-section.tsx @@ -1,7 +1,7 @@ import { Button } from "@/components/ui/button"; import { Label } from "@/components/ui/label"; import { LayoutGrid, Minimize2, Square, Maximize2 } from "lucide-react"; -import type { KanbanDetailLevel } from "./types"; +import type { KanbanDetailLevel } from "../types"; interface KanbanDisplaySectionProps { detailLevel: KanbanDetailLevel; diff --git a/app/src/components/views/settings-view/keyboard-shortcuts-section.tsx b/app/src/components/views/settings-view/keyboard-shortcuts/keyboard-shortcuts-section.tsx similarity index 100% rename from app/src/components/views/settings-view/keyboard-shortcuts-section.tsx rename to app/src/components/views/settings-view/keyboard-shortcuts/keyboard-shortcuts-section.tsx