From 6d2aba5f5a53cd66a897c933edba6a397ac1de69 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Tue, 10 Nov 2026 12:18:49 +0100 Subject: [PATCH] docs(dashboard): the overview's CVE trend and targets by project, keyed by project id (#952) Describe the new overview figures, the 30-day chart, the targets by project and the target page's "Wo handeln" table in the guide. Key the overview's project groups by the project's id, so two projects with the same name stay apart. Co-Authored-By: Claude Opus 5.5 --- compliance-dashboard/src/pages/overview.rs | 21 ++++++++------ docs/features/overview.md | 33 ++++++++++++++++------ docs/guide/getting-started-en.md | 7 +++-- docs/guide/getting-started.md | 2 +- docs/guide/repositories.md | 8 ++++++ docs/guide/scanning.md | 4 +-- 6 files changed, 51 insertions(+), 24 deletions(-) diff --git a/compliance-dashboard/src/pages/overview.rs b/compliance-dashboard/src/pages/overview.rs index 3831955..141baee 100644 --- a/compliance-dashboard/src/pages/overview.rs +++ b/compliance-dashboard/src/pages/overview.rs @@ -104,10 +104,10 @@ fn target_lines( lines } -/// The targets of one project, or (`name` `None`) those in none. +/// The targets of one project, or (`project` `None`) those in none. #[derive(Debug, Clone, PartialEq)] struct ProjectGroup { - name: Option, + project: Option, lines: Vec, } @@ -139,7 +139,7 @@ fn group_by_project(lines: &[TargetLine], projects: &[Project]) -> Vec = projects .iter() .map(|p| ProjectGroup { - name: Some(p.name.clone()), + project: Some(p.clone()), lines: lines .iter() .filter(|l| in_project(l, &p.id)) @@ -155,7 +155,7 @@ fn group_by_project(lines: &[TargetLine], projects: &[Project]) -> Vec Element { let only = groups.len() == 1; rsx! { for group in groups { - ProjectSection { key: "{group.name.clone().unwrap_or_default()}", group, only, lang } + ProjectSection { key: "{group.project.as_ref().map(|p| p.id.as_str()).unwrap_or_default()}", group, only, lang } } } } @@ -322,8 +322,8 @@ pub fn OverviewPage() -> Element { /// then named after the targets rather than "Ohne Projekt". #[component] fn ProjectSection(group: ProjectGroup, only: bool, lang: Lang) -> Element { - let name = match (&group.name, only) { - (Some(name), _) => name.clone(), + let name = match (&group.project, only) { + (Some(project), _) => project.name.clone(), (None, true) => overview::TARGETS.get(lang).to_string(), (None, false) => cve_trend::NO_PROJECT.get(lang).to_string(), }; @@ -621,7 +621,10 @@ mod tests { project("p3", "Leer"), ]; let groups = group_by_project(&lines, &projects); - let heads: Vec> = groups.iter().map(|g| g.name.as_deref()).collect(); + let heads: Vec> = groups + .iter() + .map(|g| g.project.as_ref().map(|p| p.name.as_str())) + .collect(); // The empty project is left out; a target in two projects is in both. assert_eq!(heads, [Some("Lok"), Some("Steuerung"), None]); assert_eq!(names(&groups[0]), ["alpha"]); @@ -643,7 +646,7 @@ mod tests { trend, }; let group = ProjectGroup { - name: Some("Lok".into()), + project: Some(project("p1", "Lok")), lines: vec![line("a", 1, 2, vec![1, 3]), line("b", 0, 4, vec![2, 4])], }; assert_eq!(group.trend(), [3, 7]); diff --git a/docs/features/overview.md b/docs/features/overview.md index 427c266..dcdb70b 100644 --- a/docs/features/overview.md +++ b/docs/features/overview.md @@ -9,17 +9,32 @@ Four figures at the top, each a link: | Figure | Description | |--------|-------------| -| **Prüfobjekte** (Targets) | Number of targets; opens the **Prüfobjekte** list | -| **Offene Befunde** (Open findings) | Findings with the status **Offen**, **Bewertet** or **Zu prüfen**, with how many of them are critical (**kritisch**) and high (**hoch**); opens **Befunde** | -| **Komponenten** (Components) | Number of components **in der Stückliste** (in the SBOM); opens **Stückliste** | -| **Bekannte Schwachstellen** (Known vulnerabilities) | Number of **CVE in Komponenten** (CVEs in components); opens **Stückliste** | +| **Kritische CVE mit Fix** (Critical CVEs with a fix) | Open critical CVEs whose advisory names a fixed version, with the change over the last 30 days; opens **Stückliste** | +| **Hohe CVE mit Fix** (High CVEs with a fix) | The same for high CVEs | +| **Kritische Befunde** (Critical findings) | Critical findings with the status **Offen**, **Bewertet** or **Zu prüfen**; opens **Befunde** | +| **Hohe Befunde** (High findings) | The same for high findings | -## CRA-Stand je Prüfobjekt (CRA status by target) +## Offene CVE mit Fix (Open CVEs with a fix) -Each target with a bar for the 40 requirements of CRA Annex I and its last -scan. A click on a target's name opens its CRA status, requirement by -requirement. **Alle Prüfobjekte** opens the full list when there are more -targets than fit. +A bar per day for the last 30 days (UTC): the open critical CVEs with a fix at +the bottom, the high ones on top. Hovering a bar shows its day and counts. + +A CVE counts on a day when, at the end of that day, it had been found, was not +resolved yet (the component removed or updated past the fix), and no VEX +statement **Nicht betroffen** or **Behoben** had settled it. Each CVE counts +once per target (its GHSA and CVE ids, or two copies of a library, are one); +in two targets it counts twice. Today's bar matches the figures. + +## Prüfobjekte nach Projekt (Targets by project) + +The targets grouped by the projects from the portal, a target in several +projects under each, those in none under **Ohne Projekt**. Each project shows +how many targets and open critical and high CVEs with a fix it has, and their +30-day trend. Each target is a card: its open CVEs with a fix and their trend +(opens its **Stückliste**), its bar for the 40 requirements of CRA Annex I +(opens its CRA status), its last scan, and links to its **Befunde** and +**Stückliste**. The target's name opens its page. A project shows its first +six targets; the rest are on **Prüfobjekte**. ## Als Nächstes (Next up) diff --git a/docs/guide/getting-started-en.md b/docs/guide/getting-started-en.md index 2a2cad5..0a45cff 100644 --- a/docs/guide/getting-started-en.md +++ b/docs/guide/getting-started-en.md @@ -22,9 +22,10 @@ in the sidebar switches it to English. ## The Overview -After signing in you land on **Übersicht** (Overview): the number of targets, -open findings (with how many are critical and high), components and known -vulnerabilities; **CRA-Stand je Prüfobjekt** (CRA status by target); and +After signing in you land on **Übersicht** (Overview): the open critical and +high CVEs with a fix and the open critical and high findings; a chart of the +open CVEs with a fix over the last 30 days; **Prüfobjekte nach Projekt** +(Targets by project), a card per target with its CVE trend and CRA bar; and **Als Nächstes** (Next up), the most severe open findings. See [Dashboard Overview](/features/overview). diff --git a/docs/guide/getting-started.md b/docs/guide/getting-started.md index fb266bc..3b97679 100644 --- a/docs/guide/getting-started.md +++ b/docs/guide/getting-started.md @@ -158,7 +158,7 @@ CycloneDX 1.5 oder SPDX 2.3 herunter; dazu wählen Sie zuerst das Prüfobjekt. M Unter **Prüfobjekte** öffnen Sie ein Prüfobjekt mit einem Klick auf seine Zeile und klicken im Abschnitt **CRA-Stand** auf **Stand je Anforderung**. Auch die -Übersicht führt unter **CRA-Stand je Prüfobjekt** dorthin. Der **CRA-Status** zeigt für jede der 40 +Übersicht führt unter **Prüfobjekte nach Projekt** über den CRA-Balken jedes Prüfobjekts dorthin. Der **CRA-Status** zeigt für jede der 40 grundlegenden Anforderungen aus Anhang I des Cyber Resilience Act den Stand dieses Prüfobjekts: diff --git a/docs/guide/repositories.md b/docs/guide/repositories.md index c9f6f00..41d30eb 100644 --- a/docs/guide/repositories.md +++ b/docs/guide/repositories.md @@ -186,6 +186,14 @@ its name, type and artifacts, and the buttons: Below them: +- The target's open critical and high CVEs with a fix and its open critical and + high findings, each with a link to the list behind it, and a chart of the + open CVEs with a fix over the last 30 days (as on the + [overview](/features/overview)). +- **Wo handeln** (Where to act) -- the package updates that close the most open + CVEs with a fix: the package, its current version, the highest version the + advisories name as fixed, and how many CVEs (and critical ones) the update + closes. - **CRA-Stand** -- the target's standing against the CRA; **Stand je Anforderung** opens the status of each requirement. - **Stückliste** -- the number of components and of known vulnerabilities (CVE); diff --git a/docs/guide/scanning.md b/docs/guide/scanning.md index 3270e74..094acd7 100644 --- a/docs/guide/scanning.md +++ b/docs/guide/scanning.md @@ -296,5 +296,5 @@ After a scan completes, you can explore results in several ways: - **Befunde** -- all findings with filters for target, severity, type and status. See [Understanding Findings](/guide/findings). - **Stückliste** -- the components, their licenses and known vulnerabilities. See [SBOM & Licenses](/guide/sbom). -- **Übersicht** -- where each target stands against the CRA, and the most severe open findings. -- The target's page -- its CRA status, SBOM figures, open findings and scan runs. +- **Übersicht** -- the open CVEs with a fix over 30 days, each target by project with its CVE trend and CRA bar, and the most severe open findings. +- The target's page -- its open CVEs with a fix over 30 days and the package updates that close the most (**Wo handeln**), its CRA status, SBOM figures, open findings and scan runs.