Add DeviceChanged and DeviceBackOnline event types

Record what happened on each known-device sighting instead of only
"seen": a baseline DeviceSeen (history heartbeat, no notification) plus
DeviceChanged and DeviceBackOnline events, each deduplicated
independently so a recent routine sighting no longer suppresses a
genuine change or return notification. The frontend chart now trusts the
event type for its marker and tooltip rather than comparing each event's
snapshot against the device's current state.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
rzuasti
2026-06-07 08:47:56 -04:00
co-authored by Claude Opus 4.8
parent 27cb2e1d62
commit 9efe84c099
6 changed files with 282 additions and 63 deletions
@@ -33,6 +33,8 @@ void main() {
expect(parsed('NewDevice'), DeviceEventType.newDevice);
expect(parsed('DeviceSeen'), DeviceEventType.deviceSeen);
expect(parsed('DeviceChanged'), DeviceEventType.deviceChanged);
expect(parsed('DeviceBackOnline'), DeviceEventType.deviceBackOnline);
expect(parsed('something_unexpected'), DeviceEventType.deviceSeen);
});