Fix MachineResponse: expose last_seen_at/created_at, clean status string

The status field was being decorated with "(last seen ...)" suffix
which broke frontend statusVariant() matching and prevented the
LastSeen column from showing the separate timestamp.

Changes:
- machineToResp() now returns clean status ("online"/"offline")
- MachineResponse includes last_seen_at and created_at as separate fields
- Fix whitespace typo in WakeCheckIntervalSeconds field
This commit is contained in:
2026-07-10 11:05:27 -04:00
parent 7a2a7a4935
commit bf9bcccde2
4 changed files with 12 additions and 9 deletions
+2
View File
@@ -28,6 +28,8 @@ type MachineResponse struct {
FingerprintConfirmed bool `json:"fingerprint_confirmed"`
HostKeyFingerprint *string `json:"host_key_fingerprint"`
Status string `json:"status"`
LastSeenAt *string `json:"last_seen_at"`
CreatedAt string `json:"created_at"`
}
type TestConnectionResponse struct {