feat: add admin state and diagnostics (TASK-WP6-05)
Dada P0-A isolated Windows CI / validate-and-package (push) Successful in 12m4s
Dada P0-A isolated Windows CI / validate-and-package (push) Successful in 12m4s
This commit is contained in:
Vendored
+34
@@ -0,0 +1,34 @@
|
||||
export const adminServicesStorageFixture = {
|
||||
generated_at: "2026-08-04T09:30:00.000Z",
|
||||
services: [
|
||||
{ checked_at: "2026-08-04T09:30:00.000Z", configured: true, impact_scope: "authentication" as const, pause_reason: null, service_id: "resend" as const, status: "active" as const },
|
||||
{ checked_at: "2026-08-04T09:30:00.000Z", configured: true, impact_scope: "location" as const, pause_reason: "quota_exhausted", service_id: "amap" as const, status: "paused_quota" as const },
|
||||
{ checked_at: "2026-08-04T09:30:00.000Z", configured: true, impact_scope: "generation" as const, pause_reason: "balance_insufficient", service_id: "ai_gateway" as const, status: "degraded" as const },
|
||||
{ checked_at: "2026-08-04T09:30:00.000Z", configured: true, impact_scope: "generation" as const, pause_reason: "worker_stopped", service_id: "worker" as const, status: "degraded" as const },
|
||||
{ checked_at: "2026-08-04T09:30:00.000Z", configured: true, impact_scope: "api" as const, pause_reason: null, service_id: "api" as const, status: "active" as const },
|
||||
{ checked_at: "2026-08-04T09:30:00.000Z", configured: true, impact_scope: "storage" as const, pause_reason: null, service_id: "asset_root" as const, status: "active" as const },
|
||||
],
|
||||
storage: {
|
||||
capacity_notice_level: "warning" as const,
|
||||
cleanup_pending_count: 2,
|
||||
data_root_ref: "configured_local_data_root" as const,
|
||||
hard_limit_bytes: 5_368_709_120,
|
||||
last_measured_at: "2026-08-04T09:30:00.000Z",
|
||||
managed_content_bytes: 4_563_402_752,
|
||||
remeasurement_required: false,
|
||||
status: "active" as const,
|
||||
storage_backend: "local_filesystem" as const,
|
||||
},
|
||||
};
|
||||
|
||||
export const adminDiagnosticsFixture = {
|
||||
generated_at: "2026-08-04T09:30:00.000Z",
|
||||
diagnostic_text: "Dada P0-A diagnostics\napp_version=0.0.0\napi_status=ready\nworker_status=ready\nstorage_status=active",
|
||||
services: adminServicesStorageFixture,
|
||||
system: {
|
||||
api_status: "ready" as const,
|
||||
app_version: "0.0.0",
|
||||
browser_support: [{ brand: "Google Chrome" as const, major: 128 }],
|
||||
worker_status: "ready" as const,
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user