feat(wifi): enhanced status bar with open count and scan indicator

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
James Smith
2026-03-26 22:11:48 +00:00
parent 837090d150
commit 36399cf4aa
3 changed files with 34 additions and 30 deletions

View File

@@ -190,7 +190,8 @@ const WiFiMode = (function() {
scanModeDeep: document.getElementById('wifiScanModeDeep'),
// Status bar
scanStatus: document.getElementById('wifiScanStatus'),
scanIndicator: document.getElementById('wifiScanIndicator'),
openCount: document.getElementById('wifiOpenCount'),
networkCount: document.getElementById('wifiNetworkCount'),
clientCount: document.getElementById('wifiClientCount'),
hiddenCount: document.getElementById('wifiHiddenCount'),
@@ -210,12 +211,6 @@ const WiFiMode = (function() {
zoneNear: document.getElementById('wifiZoneNear'),
zoneFar: document.getElementById('wifiZoneFar'),
// Security counts
wpa3Count: document.getElementById('wpa3Count'),
wpa2Count: document.getElementById('wpa2Count'),
wepCount: document.getElementById('wepCount'),
openCount: document.getElementById('openCount'),
// Detail drawer
detailDrawer: document.getElementById('wifiDetailDrawer'),
detailEssid: document.getElementById('wifiDetailEssid'),
@@ -669,12 +664,12 @@ const WiFiMode = (function() {
}
// Update status
if (elements.scanStatus) {
elements.scanStatus.textContent = scanning
? `Scanning (${scanMode === 'quick' ? 'Quick' : 'Deep'})...`
: 'Idle';
elements.scanStatus.className = scanning ? 'status-scanning' : 'status-idle';
}
const dot = elements.scanIndicator?.querySelector('.wifi-scan-dot');
const text = elements.scanIndicator?.querySelector('.wifi-scan-text');
if (dot) dot.style.display = scanning ? 'inline-block' : 'none';
if (text) text.textContent = scanning
? `SCANNING (${scanMode === 'quick' ? 'Quick' : 'Deep'})`
: 'IDLE';
}
async function checkScanStatus() {
@@ -1497,9 +1492,6 @@ const WiFiMode = (function() {
else if (sec === 'open' || sec === '') securityCounts.open++;
});
if (elements.wpa3Count) elements.wpa3Count.textContent = securityCounts.wpa3;
if (elements.wpa2Count) elements.wpa2Count.textContent = securityCounts.wpa2;
if (elements.wepCount) elements.wepCount.textContent = securityCounts.wep;
if (elements.openCount) elements.openCount.textContent = securityCounts.open;
// Update zone summary