From 7cbe4e4b7b8e38f15782e2c48501f30ed4244d30 Mon Sep 17 00:00:00 2001 From: Bailey Taylor Date: Wed, 8 Oct 2025 10:40:24 +0800 Subject: [PATCH] New Github API support for verifying CVE counts. --- src/components/admin/AdminControlsPanel.tsx | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/components/admin/AdminControlsPanel.tsx b/src/components/admin/AdminControlsPanel.tsx index 06b7ab3..5bf934c 100644 --- a/src/components/admin/AdminControlsPanel.tsx +++ b/src/components/admin/AdminControlsPanel.tsx @@ -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)'} + +