diff --git a/docs/FRONTEND_ARCHITECTURE_PLAN.md b/docs/FRONTEND_ARCHITECTURE_PLAN.md index 1cdff0b6..de35f6db 100644 --- a/docs/FRONTEND_ARCHITECTURE_PLAN.md +++ b/docs/FRONTEND_ARCHITECTURE_PLAN.md @@ -103,7 +103,7 @@ boundaries exist. ### Phase 6 — Cleanup & Hardening -- [ ] Delete the legacy `src/lib/api.ts` compatibility facade once all imports use `src/shared/api` +- [x] Delete the legacy `src/lib/api.ts` compatibility facade once all imports use `src/shared/api` - [ ] Collapse copied endpoint logic into the shared API modules and remove duplicate request construction - [ ] Audit query invalidation keys and replace ad hoc cache-key arrays with query-key factories - [ ] Add tests around `ApiClient`, query-key factories, and table-model behavior diff --git a/packages/web/src/features/tables/components/fk-drawer-content.tsx b/packages/web/src/features/tables/components/fk-drawer-content.tsx index bb8deeab..62f20b47 100644 --- a/packages/web/src/features/tables/components/fk-drawer-content.tsx +++ b/packages/web/src/features/tables/components/fk-drawer-content.tsx @@ -13,7 +13,7 @@ import type { ColumnDef } from "@tanstack/react-table"; import { ExternalLink } from "lucide-react"; import { useMemo } from "react"; import { useTableCols } from "@/features/schema"; -import { api } from "@/lib/api"; +import { api } from "@/shared/api/client"; import { useDatabaseStore } from "@/stores/database.store"; import type { TableRecord } from "@/types/table.type"; import { CellCopyButton } from "./cell-copy-button"; diff --git a/packages/web/src/lib/api.ts b/packages/web/src/lib/api.ts deleted file mode 100644 index 97bac95f..00000000 --- a/packages/web/src/lib/api.ts +++ /dev/null @@ -1,9 +0,0 @@ -export { - ApiClient, - api, - apiClient, - getBaseUrl, - getDbType, - rootApi, - setDbType, -} from "@/shared/api/client";