refactor: rename files to PascalCase components and kebab-case APIs (Task 4.4)

- Rename all component files to PascalCase matching exported names
- Move components into feature directories (git/, session/, project/, terminal/, workspace/, ui/, layout/)
- Rename all page files to PascalCase with Page suffix
- Rename all API files to kebab-case
- Update all imports across codebase with corrected relative depths
- Preserve git history via git mv

Quality gates: tsc (pass), eslint (pass), 66/74 tests pass (8 pre-existing failures)
Refs: repo-restructure Task 4.4
This commit is contained in:
Developer
2026-06-02 22:58:10 +00:00
parent 3f5159fb8a
commit e434c439c9
66 changed files with 627 additions and 359 deletions
+8 -2
View File
@@ -12,7 +12,9 @@ import type { Session } from "../types/session";
export function useDashboardActions(onRefresh: () => Promise<void>) {
const navigate = useNavigate();
const [saveState, setSaveState] = useState<"idle" | "saving" | "error">("idle");
const [saveState, setSaveState] = useState<"idle" | "saving" | "error">(
"idle",
);
const [actionBusy, setActionBusy] = useState<string | null>(null);
const handleCreate = useCallback(
@@ -60,7 +62,11 @@ export function useDashboardActions(onRefresh: () => Promise<void>) {
async (session: Session) => {
setActionBusy(session.id);
try {
await stopInstance(session.project_id, session.repository_id, session.id);
await stopInstance(
session.project_id,
session.repository_id,
session.id,
);
await onRefresh();
} finally {
setActionBusy(null);