From 8ea08f92dabac9d8d12484698123d7e894d82d5f Mon Sep 17 00:00:00 2001 From: arsam Date: Fri, 18 Sep 2026 23:11:37 +0330 Subject: [PATCH] Import documentation: docs/backend-integration.md Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality. --- docs/backend-integration.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 docs/backend-integration.md diff --git a/docs/backend-integration.md b/docs/backend-integration.md new file mode 100644 index 0000000..8b4b321 --- /dev/null +++ b/docs/backend-integration.md @@ -0,0 +1,12 @@ +# Backend Integration + +The frontend is intentionally backend-ready but backend-free. + +Integration steps: + +1. Implement an HTTP client in `src/api/client.ts`. +2. Replace mock methods in `src/api/services/panel-service.ts` with real service calls. +3. Preserve the response envelope and DTOs in `src/api/contracts`. +4. Map backend validation errors into `ApiError.fields`. +5. Add WebSocket/SSE adapters for jobs, terminal state, notifications, metrics, and logs. +6. Keep destructive actions behind typed confirmation, reason capture, two-factor confirmation, and audit-preview flows.