refactor(servers): unify connection status badges
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user