Import documentation: docs/backend-integration.md
Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality.
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user