From 86ea97b4141e5ec9527b4db1094abf60506d1984 Mon Sep 17 00:00:00 2001 From: tajniak81 <13187254+tajniak81@users.noreply.github.com> Date: Tue, 1 Sep 2026 11:22:02 +0200 Subject: [PATCH] Online said out loud, not left as the absence of "Offline" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Settings listed a charger's reachability with one badge, drawn only when the cloud said online:false. A reachable charger got nothing — the same nothing a charger the cloud declined to report on gets — so the account's two chargers read as one offline and one unremarkable. Online now has a badge of its own, and the silent case stays silent: not saying is not the same as saying no. The Charging page said nothing at all, having only the record, which knows what a charger is and not whether it is answering. So it asks: each connected service's charger list is read into a live map keyed by the provider's own id, and the information card carries the badge and, when the service reports one, the operating state. Asking costs a round trip per service, so it happens when the home tab is first opened — the moment the question is being asked — and after that only when the user presses Refresh or imports a charger. A service that will not answer leaves its chargers unbadged rather than offline. Co-Authored-By: Claude Opus 5 --- Web App/web/src/i18n/da.json | 7 +- Web App/web/src/i18n/en.json | 7 +- Web App/web/src/i18n/pl.json | 7 +- Web App/web/src/views/Charging.vue | 103 ++++++++++++++++++++++++++--- Web App/web/src/views/Settings.vue | 8 ++- 5 files changed, 119 insertions(+), 13 deletions(-) diff --git a/Web App/web/src/i18n/da.json b/Web App/web/src/i18n/da.json index 9339a41..1de0b5a 100644 --- a/Web App/web/src/i18n/da.json +++ b/Web App/web/src/i18n/da.json @@ -105,7 +105,11 @@ "power": "Effekt", "connector": "Stik", "providerId": "Id hos tjenesten", - "added": "Tilføjet" + "state": "Tilstand", + "added": "Tilføjet", + "online": "Online", + "offline": "Offline", + "refresh": "Opdater" } }, @@ -324,6 +328,7 @@ "chargersLoading": "Indlæser…", "chargersEmpty": "Der blev ikke fundet nogen EV-lader på denne konto.", "chargerUnnamed": "Lader uden navn", + "chargerOnline": "Online", "chargerOffline": "Offline", "chargerUse": "Brug denne", "states": { diff --git a/Web App/web/src/i18n/en.json b/Web App/web/src/i18n/en.json index b389f6f..9cdf5fb 100644 --- a/Web App/web/src/i18n/en.json +++ b/Web App/web/src/i18n/en.json @@ -91,7 +91,11 @@ "power": "Power", "connector": "Connector", "providerId": "Service id", - "added": "Added" + "state": "State", + "added": "Added", + "online": "Online", + "offline": "Offline", + "refresh": "Refresh" }, "stations": { "heading": "Nearby", @@ -323,6 +327,7 @@ "chargersLoading": "Loading…", "chargersEmpty": "No EV charger was found on this account.", "chargerUnnamed": "Unnamed charger", + "chargerOnline": "Online", "chargerOffline": "Offline", "chargerUse": "Use this one", "states": { diff --git a/Web App/web/src/i18n/pl.json b/Web App/web/src/i18n/pl.json index 317c669..326cc7f 100644 --- a/Web App/web/src/i18n/pl.json +++ b/Web App/web/src/i18n/pl.json @@ -107,7 +107,11 @@ "power": "Moc", "connector": "Złącze", "providerId": "Identyfikator w usłudze", - "added": "Dodano" + "state": "Stan", + "added": "Dodano", + "online": "Online", + "offline": "Offline", + "refresh": "Odśwież" } }, @@ -328,6 +332,7 @@ "chargersLoading": "Wczytywanie…", "chargersEmpty": "Na tym koncie nie znaleziono żadnej ładowarki EV.", "chargerUnnamed": "Ładowarka bez nazwy", + "chargerOnline": "Online", "chargerOffline": "Offline", "chargerUse": "Użyj tej", "states": { diff --git a/Web App/web/src/views/Charging.vue b/Web App/web/src/views/Charging.vue index c96ee70..d40f98e 100644 --- a/Web App/web/src/views/Charging.vue +++ b/Web App/web/src/views/Charging.vue @@ -1,5 +1,5 @@