feat(dashboard): components by update impact and ecosystem as clickable charts (#957)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 4m18s
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 17m52s

The SBOM page's component tab opens, for one target, with two bar charts
(one hue, no legend; "Tabelle" shows the same numbers as tables):

- "Welches Update entfernt die meisten CVEs": per CVE group of #949 with
  a fix, "openssl 3.0.11 -> 3.0.15" and "-3 CVEs", ranked by the CVEs the
  update fixes, then by the worst severity; top 10, then "Alle anzeigen".
  A bar opens that component's group card in place (breadcrumb
  "Komponenten > openssl 3.0.11", "Zurueck zum Diagramm"). The card is
  #949's own; only its visibility changes.
- "Komponenten nach Oekosystem": per package manager the components and
  how many have a known vulnerability. A bar filters the component table
  below to it and puts it in the URL: the new additive route
  /sbom/ecosystem/:ecosystem?target=<id> renders the same page. The
  package-manager select now shows the active filter.

Agent: GET /api/v1/targets/{id}/sbom-ecosystems counts the target's SBOM
components per package manager in one aggregation (tenant database, org
role gate as every route). The ranking and the filterable managers live
in compliance-core (sbom_ecosystems), shared with /sbom/filters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-11-10 12:39:14 +01:00
1 parent bc5a5eed69
commit bdd41025dc
17 files changed
+1130 -6

No files matched your search

+20
View File
@@ -123,6 +123,26 @@ complete scan.
Open **Stückliste** in the sidebar. The **Pakete** (Packages) tab lists the
components of all targets, 50 per page.
### Charts for one target
With one target picked, two bar charts open the tab ("Diagramm"; "Tabelle"
shows the same numbers as tables):
- **Welches Update entfernt die meisten CVEs** -- per component with open CVEs,
the update to the highest fixed version (`openssl 3.0.11 → 3.0.15`) and how
many CVEs it removes (`−3 CVEs`), the top 10 until **Alle anzeigen**. A bar
opens that component's CVE group (see [VEX](#vex-the-status-of-each-vulnerability)),
with **Nicht betroffen (alle N)** and its CVEs.
- **Komponenten nach Ökosystem** -- per package manager, the components and how
many have a known vulnerability. A bar filters the table below to it; the
URL (`/sbom/ecosystem/npm?target=<id>`) keeps the filter.
**← Zurück zum Diagramm** returns to the charts.
API: `GET /api/v1/targets/{id}/sbom-ecosystems` lists `package_manager`,
`components` and `with_cve` per ecosystem, the largest first; the updates come
from `GET /api/v1/targets/{id}/cve-groups`.
### Filtering
- **Alle Prüfobjekte** -- one target, or all