Show online/offline status for known devices

Uses the waste-go anchor's new EXT-009 presence_query to check each
known device's reachability without a full connect attempt. Each
pairing already has its own deterministic anchor room, so this is one
short-lived query per device (auto-refreshed every 15s while the
Known Devices tab is open), not a persistent connection held per
pairing while idle.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Fredrik Johansson
2026-07-09 15:06:48 +02:00
parent 6a3ad787d5
commit bd7879ce7b
3 changed files with 80 additions and 2 deletions

View File

@@ -278,6 +278,19 @@
font-weight: 400;
}
.presence-dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
margin-right: 6px;
vertical-align: middle;
}
.presence-online { background: var(--accent); box-shadow: 0 0 4px var(--accent); }
.presence-offline { background: var(--muted); opacity: 0.5; }
.presence-unknown { background: var(--muted); opacity: 0.25; }
.peer-id {
font-family: var(--mono);
font-size: 11px;