PR Summary #1

Merged
sonderau merged 6 commits from dev into main 2025-10-10 08:49:20 +08:00
Showing only changes of commit 7cbe4e4b7b - Show all commits

View File

@@ -225,6 +225,21 @@
}
};
const runCveVerification = async () => {
try {
setLoading(true);
await api.post('/admin/scripts/verify-cve-count');
setCveVisible(true);
setToastMessage('🔍 CVE verification started - check logs for comparison results');
setToastOpen(true);
} catch (err: any) {
setToastMessage("❌ Failed to start CVE verification: " + (err?.response?.data || err.message));
setToastOpen(true);
} finally {
setLoading(false);
}
};
const openDialog = async () => {
await fetchClients();
setDialogOpen(true);
@@ -269,6 +284,16 @@
{loading ? 'Starting Backfill...' : 'Backfill All CVEs (2002-Present)'}
</Button>
<Button
variant="contained"
color="info"
onClick={runCveVerification}
disabled={loading}
sx={{ mt: 2 }}
>
{loading ? 'Verifying...' : 'Verify CVE Count (GitHub API)'}
</Button>
<Button
variant="contained"
onClick={runVulnCacheRefresh}