refactor: rename frontend API files to kebab-case

Renamed:
- git_repositories.ts → git-repositories.ts
- ssh_keys.ts → ssh-keys.ts
- tool_types.ts → tool-types.ts
- tool_types.test.ts → tool-types.test.ts

Updated all imports across components, pages, and hooks.

Quality gates: verified no remaining old imports.
This commit is contained in:
2026-06-04 12:33:10 +02:00
parent 7fe2790199
commit 020f832eed
23 changed files with 30 additions and 30 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ import {
} from "../api/config_profiles";
import { listProjects } from "../api/projects";
import type { ProjectWithRepos } from "../types";
import { listToolTypes, type ToolType } from "../api/tool_types";
import { listToolTypes, type ToolType } from "../api/tool-types";
import { GitMountEditor } from "../components/git-mount-editor";
type Status = "loading" | "ready" | "error";
+2 -2
View File
@@ -26,11 +26,11 @@ vi.mock("../api/projects", () => ({
listProjects: (...args: unknown[]) => mockProjects(...args)
}));
vi.mock("../api/git_repositories", () => ({
vi.mock("../api/git-repositories", () => ({
listRepositories: (...args: unknown[]) => mockRepos(...args)
}));
vi.mock("../api/tool_types", () => ({
vi.mock("../api/tool-types", () => ({
listToolTypes: vi.fn().mockResolvedValue([])
}));
+1 -1
View File
@@ -1,7 +1,7 @@
import { useEffect, useState } from "react";
import { useNavigate, useParams } from "react-router-dom";
import { getCommitDetail, getRepositoryHistory, type CommitDetail, type CommitHistoryResponse } from "../api/git_repositories";
import { getCommitDetail, getRepositoryHistory, type CommitDetail, type CommitHistoryResponse } from "../api/git-repositories";
import { ErrorState, LoadingState } from "../components/data-states";
import { Icon } from "../components/icon";
import { useAsyncData } from "../hooks/use-async-data";
+2 -2
View File
@@ -4,8 +4,8 @@ import { useNavigate, useParams } from "react-router-dom";
import {
deleteRepository,
listRepositories,
} from "../api/git_repositories";
import type { GitRepository } from "../api/git_repositories";
} from "../api/git-repositories";
import type { GitRepository } from "../api/git-repositories";
import { EmptyState, ErrorState, LoadingState } from "../components/data-states";
import { Icon } from "../components/icon";
import { RepositoryCreateDialog } from "../components/repository-create-dialog";
+3 -3
View File
@@ -11,14 +11,14 @@ import {
listRepositories,
type GitRepository,
type GitStatus,
} from "../api/git_repositories";
} from "../api/git-repositories";
import { CommitPanel } from "../components/commit-panel";
import { FileEditor } from "../components/file-editor";
import { GitToolbar } from "../components/git-toolbar";
import { InstanceList } from "../components/instance-list";
import { WorkspaceHeader } from "../components/workspace-header";
import { listToolTypes } from "../api/tool_types";
import type { ToolType } from "../api/tool_types";
import { listToolTypes } from "../api/tool-types";
import type { ToolType } from "../api/tool-types";
type MobileTab = "files" | "editor" | "git" | "terminal";
+1 -1
View File
@@ -1,6 +1,6 @@
import { useState } from "react";
import { useNavigate } from "react-router-dom";
import { createSSHKey, deleteSSHKey, listSSHKeys, signPayload, verifySignature, type SSHKey } from "../api/ssh_keys";
import { createSSHKey, deleteSSHKey, listSSHKeys, signPayload, verifySignature, type SSHKey } from "../api/ssh-keys";
import { EmptyState, ErrorState, LoadingState } from "../components/data-states";
import { Icon } from "../components/icon";
import { useAsyncData } from "../hooks/use-async-data";
+1 -1
View File
@@ -16,7 +16,7 @@ import {
type ReadinessProbe,
type ToolType,
type UpdateToolTypeRequest,
} from "../api/tool_types";
} from "../api/tool-types";
import {
createToolDefinition,
getToolDefinition,