Anker health: count the chargers the panel lists, not the ones one endpoint admits to
The probe still asked get_user_bind_and_not_in_station_evchargers and read its userBindEvChargersCount, so it reported "0 EV charger(s) bound to account" for an account whose two chargers the panel was listing directly underneath — the same blind spot the capability was just moved off, left behind in the health check. It now takes the same inventory the chargers capability returns and counts that. Authenticated with nothing on the account is degraded rather than ok, following Greencell's rule: the half we address answers, and the empty half is the account or the country that picks the regional server, so the message says so instead of reporting a healthy connection to nothing. A count reached with some view missing says how many views stayed silent, because the number is then a floor rather than a total. The web panel colours degraded amber, as it already did for Greencell. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
e138fad3f4
commit
a809980d8b
@@ -1474,7 +1474,9 @@ onBeforeUnmount(() => {
|
||||
<p
|
||||
v-if="ankerHealth"
|
||||
class="mt-2 text-sm"
|
||||
:class="ankerHealth.status === 'ok' ? 'text-success' : 'text-danger'"
|
||||
:class="ankerHealth.status === 'ok'
|
||||
? 'text-success'
|
||||
: ankerHealth.status === 'degraded' ? 'text-warning' : 'text-danger'"
|
||||
>
|
||||
{{ ankerHealth.detail || ankerHealth.status }}
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user