fix: correct relative imports after component reorganization

Fixed import paths for 43 components moved into features/ directories.
Key fixes:
- api/, types/, hooks/, state/, utils/ imports need ../../../ from features/*/
- components/ imports need ../../ from features/*/
- Cross-feature imports use relative paths (e.g., ../tool/tools-bottom-sheet)
- app-shell.tsx updated to import from features/ subdirectories

Frontend typecheck now passes except for one pre-existing error:
xterm-addon-webgl missing type declarations.

Quality gates: ruff passed on backend, py_compile passed on all backend files.
This commit is contained in:
2026-06-04 12:46:45 +02:00
parent 2680a8c44a
commit 8c7affc933
39 changed files with 117 additions and 117 deletions
@@ -1,6 +1,6 @@
import React, { useState } from "react";
import { Icon } from "./icon";
import { Icon } from "../../icon";
interface CommitDialogProps {
isOpen: boolean;
@@ -1,6 +1,6 @@
import { useState } from "react";
import { commitChanges } from "../api/git-repositories";
import { commitChanges } from "../../../api/git-repositories";
interface CommitPanelProps {
projectId: string;
@@ -1,12 +1,12 @@
import React, { useCallback, useEffect, useState } from "react";
import { useSearchParams } from "react-router-dom";
import { apiClient } from "../api/client";
import { useAuth } from "../state/auth";
import { CodeEditor } from "../components/code-editor";
import { CommitDialog } from "../components/features/git/commit-dialog";
import { Icon } from "../components/icon";
import { SyntaxHighlighter } from "../components/syntax-highlighter";
import { detectLanguage } from "../utils/language";
import { apiClient } from "../../../api/client";
import { useAuth } from "../../../state/auth";
import { CodeEditor } from "../../code-editor";
import { CommitDialog } from "./commit-dialog";
import { Icon } from "../../icon";
import { SyntaxHighlighter } from "../../syntax-highlighter";
import { detectLanguage } from "../../../utils/language";
interface FileEditorProps {
projectId: string;
@@ -1,7 +1,7 @@
import { useState, useEffect } from "react";
import { Icon } from "./icon";
import { validateGitUrl } from "../api/config_profiles";
import type { GitMount, GitMountMapping } from "../api/config_profiles";
import { Icon } from "../../icon";
import { validateGitUrl } from "../../../api/config_profiles";
import type { GitMount, GitMountMapping } from "../../../api/config_profiles";
interface GitMountEditorProps {
mounts: GitMount[];
@@ -8,8 +8,8 @@ import {
pullRepository,
pushRepository,
type GitStatus,
} from "../api/git-repositories";
import { Icon } from "./icon";
} from "../../../api/git-repositories";
import { Icon } from "../../icon";
import { MergeDialog } from "./merge-dialog";
interface GitToolbarProps {
@@ -1,7 +1,7 @@
import { useState } from "react";
import { mergeBranches } from "../api/git-repositories";
import { Icon } from "./icon";
import { mergeBranches } from "../../../api/git-repositories";
import { Icon } from "../../icon";
interface MergeDialogProps {
projectId: string;