diff --git a/frontend/src/stores/cloudConnections.js b/frontend/src/stores/cloudConnections.js index 78a402a..1a4ffd7 100644 --- a/frontend/src/stores/cloudConnections.js +++ b/frontend/src/stores/cloudConnections.js @@ -251,7 +251,9 @@ export const useCloudConnectionsStore = defineStore('cloudConnections', () => { async function testConnection(id) { try { const result = await api.testCloudConnection(id) - const state = result?.state ?? 'unknown' + // WR-06: server returns { status: ... }, not { state: ... }. Translate at the + // store boundary — internal vocabulary uses `state` but the API field is `status`. + const state = result?.status ?? 'unknown' setConnectionHealth(id, { state, ...result }) // Clear pending retest flag for this connection const next = new Set(pendingHealthRetest.value)