mirror of
https://github.com/csunny/DB-GPT.git
synced 2026-07-17 01:58:47 +00:00
Pre-existing integration gaps surfaced when running the dev server: 1. use-connector-api.ts used bare fetch() instead of ctx-axios, so all /api/v2/serve/connectors/* requests hit the Next.js dev server (3000) instead of the backend (5670) and returned the Next 404 HTML page. Migrate every helper to axios via @/utils/ctx-axios. 2. useConfirmPolling.ts had the same bare-fetch problem; HITL confirm polling and resolve calls would never reach the backend. 3. Backend ConnectorResponse exposes connector_id while the frontend ConnectorInstance type uses id, leaving every c.id undefined. Add a normalizeConnector boundary in use-connector-api.ts so the rest of the frontend can keep using id. 4. /construct/connectors had no entry in the side-bar settings menu — users had to type the URL by hand. Add an "ApiOutlined / 连接器管理" item next to prompts in the management group. 5. Add the new `connectors` translation key to zh/en common.ts so the sidebar label resolves and TS strict-key check passes.