logs: update to status

This commit is contained in:
2025-10-22 17:41:48 -04:00
committed by sbcrumb
parent ec36ce7b0e
commit 1ceccfe31d
2 changed files with 83 additions and 27 deletions
+6 -16
View File
@@ -118,8 +118,8 @@ async function loadDashboard() {
updateDashboardStats();
updateDashboardCharts();
// Note: Scan status tracking not implemented yet
// Real-time scan status would require core container modifications
// Check if there's an ongoing scan when dashboard loads
await checkScanStatus();
} catch (error) {
console.error('Failed to load dashboard:', error);
}
@@ -1443,13 +1443,8 @@ async function handleManualScan(event) {
showToast(`✅ Manual scan initiated: ${result.message}`, 'success');
// Show scan status banner temporarily
updateScanStatus('Manual scan started - check core container logs for progress', true);
// Hide banner after 10 seconds since we don't have real-time tracking yet
setTimeout(() => {
updateScanStatus('Scan status tracking not available - check core container logs', false);
}, 10000);
// Start polling for scan status with log-based detection
startScanStatusPolling();
} catch (error) {
console.error('Manual scan failed:', error);
@@ -1491,13 +1486,8 @@ async function handleCustomScan(event) {
showToast(`✅ Custom scan initiated: ${result.message}`, 'success');
// Show scan status banner temporarily
updateScanStatus('Custom directory scan started - check core container logs for progress', true);
// Hide banner after 10 seconds since we don't have real-time tracking yet
setTimeout(() => {
updateScanStatus('Scan status tracking not available - check core container logs', false);
}, 10000);
// Start polling for scan status with log-based detection
startScanStatusPolling();
} catch (error) {
console.error('Custom scan failed:', error);