You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: MAC-stable device identity + label as primary display name (#115)
* feat: MAC-stable device identity + label as primary display name
Backend:
- upsert_device() now matches by MAC first; if MAC seen at a new IP,
updates ip_address while preserving label/trusted/device_type
- Adds ix_devices_mac_address index (model + idempotent migration)
- RiskOut gains label: str | None populated from r.device.label
- device_appeared event detail now includes 'label' (parity with
device_disappeared which already had it)
- 3 new tests: create new, MAC-first IP update, no-MAC IP fallback
Frontend:
- Risk interface gains label: string | null
- RisksPage: risk cards + device filter use label ?? hostname ?? ip
- DeviceDetailPage: page title uses label ?? hostname ?? ip_address;
subtitle shows the next level down (hostname or IP as context)
Closes#111
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: noqa N806 + import order in MAC upsert tests
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments