refactor(settings): move types.ts to shared folder

- Move types.ts to shared/types.ts
- Update all section files to import from ../shared/types
- Update theme-options.ts to import from ../../shared/types
- All TypeScript diagnostics passing
- Completes settings-view folder restructuring

Final structure:
- api-keys/ (with hooks/, config/)
- appearance/ (with config/)
- cli-status/ (claude, codex)
- feature-defaults/
- keyboard-shortcuts/
- kanban-display/
- danger-zone/
- shared/ (types.ts)
This commit is contained in:
Kacper
2025-12-11 00:35:45 +01:00
parent 45bd2c64b9
commit 2d937bc47f
7 changed files with 6 additions and 6 deletions

View File

@@ -2,7 +2,7 @@ import { Button } from "@/components/ui/button";
import { Label } from "@/components/ui/label";
import { Palette } from "lucide-react";
import { themeOptions } from "./config/theme-options";
import type { Theme, Project } from "../types";
import type { Theme, Project } from "../shared/types";
interface AppearanceSectionProps {
effectiveTheme: Theme;

View File

@@ -13,7 +13,7 @@ import {
Terminal,
Trees,
} from "lucide-react";
import { Theme } from "../types";
import { Theme } from "../../shared/types";
export interface ThemeOption {
value: Theme;

View File

@@ -5,7 +5,7 @@ import {
AlertCircle,
RefreshCw,
} from "lucide-react";
import type { CliStatus } from "../types";
import type { CliStatus } from "../shared/types";
interface CliStatusProps {
status: CliStatus | null;

View File

@@ -5,7 +5,7 @@ import {
AlertCircle,
RefreshCw,
} from "lucide-react";
import type { CliStatus } from "../types";
import type { CliStatus } from "../shared/types";
interface CliStatusProps {
status: CliStatus | null;

View File

@@ -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 "../shared/types";
interface DangerZoneSectionProps {
project: Project | null;

View File

@@ -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 "../shared/types";
interface KanbanDisplaySectionProps {
detailLevel: KanbanDetailLevel;