From b1a9f436c40e588311d040169577da614b7ee1ef Mon Sep 17 00:00:00 2001 From: curo1305 Date: Tue, 23 Jun 2026 00:30:01 +0200 Subject: [PATCH] fix(13): WR-06 read result.status (not result.state) in testConnection to reflect actual server field name --- frontend/src/stores/cloudConnections.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)