refactor(servers): unify connection status badges
Some checks failed
Backend Tests / pytest (Python 3.12) (push) Has been cancelled
Deploy to Production / Trigger production update (push) Has been cancelled

Extract ServerStatusBadge so every server list renders the auth-error
state identically instead of repeating the online/offline ternary, and
expose last_error_kind from the cluster topology and user-assignment
endpoints, which build their payloads by hand and so did not inherit it
from the server schema.
This commit is contained in:
markmorado
2026-07-24 05:04:45 +05:00
parent ebc692a324
commit e10f9a2a03
9 changed files with 40 additions and 45 deletions

View File

@@ -89,6 +89,7 @@ def get_cluster_topology(
"ip_address": s.ip_address,
"port": s.port,
"is_online": s.is_online,
"last_error_kind": s.last_error_kind,
"cluster_name": s.cluster_name,
}
if s.cluster_name: