Link device list and proximity radar selection

Clicking a device in the list or a dot on the radar now highlights
both - the list row gets selected styling and the radar dot shows
an animated pulsing cyan ring for clear visual feedback.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-01-21 20:29:01 +00:00
parent af078aaae0
commit 588556c2a6
2 changed files with 41 additions and 4 deletions

View File

@@ -385,6 +385,11 @@ const BluetoothMode = (function() {
el.classList.remove('selected');
});
}
// Clear radar highlight
if (typeof ProximityRadar !== 'undefined') {
ProximityRadar.clearHighlight();
}
}
/**
@@ -404,6 +409,12 @@ const BluetoothMode = (function() {
if (card) {
card.classList.add('selected');
}
// Also highlight on the radar
const device = devices.get(deviceId);
if (device && typeof ProximityRadar !== 'undefined') {
ProximityRadar.highlightDevice(device.device_key || device.device_id);
}
}
/**