feat(dashboard): a machine's page, its parts, CVEs and history (#1026) #1038

Merged
sharang merged 1 commits from feat/machine-page into main 2026-11-17 12:21:07 +00:00
Owner

Part of #1026. It's the dashboard for the approved machine mockup (https://claude.ai/artifact/XsQesAfoWPYF77y6xTzkhF).

It's stacked on #1037 (the endpoints it reads), so its base is feat/machine-overview. I'll retarget it to main when #1037 merges.

What

A product project's page, /projects/{id}, opens from the project's name on the overview. It has three tabs (?tab=parts|cves|history):

  1. Bestandteile
    • Tiles: open CVEs by severity, those not yet assessed (and how many of those the supplier states something on), the components (and how many sit in more than one part), and the suppliers' advisories with their last read.
    • The parts table: name and type, origin ("Eigenentwicklung", or "Zulieferer" with its name), the supplier's product and version, open CVEs, last scan, and a link to the part.
    • Documents: the machine SBOM to download (#1036).
  2. Schwachstellen
    • The open CVEs by component across the parts, the most severe first, filterable by origin (all, in-house, supplier).
    • Each group shows its CVE count, how many parts it's in, the update that fixes it, and "Produkt des Zulieferers" where it applies.
    • One row per part: status and who stated it, what the supplier says, and "Im Bestandteil bewerten", which opens the part's CVE view, since you assess per part.
    • The first two groups are open; the rest open on a click.
  3. Verlauf
    • The parts' scans, newest first, with the CVEs each brought (+n) and took (−n), and a link to the part's history.
    • A supplier part's updated product reads "Neue Version des Zulieferers: Drive Control 4.2.1 → 4.3.0", with the components added and removed.

The VEX panel's status and supplier helpers are now crate-visible and reused here. Docs: docs/guide/sbom.md.

Compared with the mockup

I ran the agent and dashboard locally with a made-up machine of four parts (two bought in), alerts, an advisory status and scans, one of them a supplier version change. All three tabs match the mockup. Where they differ:

  • Documents: they show the SBOM only. VEX, CSAF and the evidence pack wait for #1015, as decided, and a note says each part has its own until then.
  • No "Bestandteil hinzugefügt" row: assigning a target to a project keeps no history.
  • No SBOM file name in the Verlauf.
  • Open CVEs: the tile and tab count each part's open CVEs, so a CVE in two parts counts twice, matching the two decisions it needs. That's the fix in #1037. Without it, the tile showed fewer open CVEs than unassessed ones.
  • Times: "vor 7 Std." rather than "heute, 03:31", as on the targets list.
  • Machine name: without a registry (local dev) the machine is named by its id; with the registry it's the project's name.

Checks

  • clippy, server and web (--all-targets -D warnings), both clean.
  • cargo test -p compliance-dashboard passes. New tests: the supplier-version wording of a Verlauf row (only for a part bought in), and the count badges.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9

Part of #1026. It's the dashboard for the approved machine mockup (https://claude.ai/artifact/XsQesAfoWPYF77y6xTzkhF). It's stacked on #1037 (the endpoints it reads), so its base is `feat/machine-overview`. I'll retarget it to main when #1037 merges. ## What A product project's page, `/projects/{id}`, opens from the project's name on the overview. It has three tabs (`?tab=parts|cves|history`): 1. **Bestandteile** - Tiles: open CVEs by severity, those not yet assessed (and how many of those the supplier states something on), the components (and how many sit in more than one part), and the suppliers' advisories with their last read. - The parts table: name and type, origin ("Eigenentwicklung", or "Zulieferer" with its name), the supplier's product and version, open CVEs, last scan, and a link to the part. - Documents: the machine SBOM to download (#1036). 2. **Schwachstellen** - The open CVEs by component across the parts, the most severe first, filterable by origin (all, in-house, supplier). - Each group shows its CVE count, how many parts it's in, the update that fixes it, and "Produkt des Zulieferers" where it applies. - One row per part: status and who stated it, what the supplier says, and "Im Bestandteil bewerten", which opens the part's CVE view, since you assess per part. - The first two groups are open; the rest open on a click. 3. **Verlauf** - The parts' scans, newest first, with the CVEs each brought (+n) and took (−n), and a link to the part's history. - A supplier part's updated product reads "Neue Version des Zulieferers: Drive Control 4.2.1 → 4.3.0", with the components added and removed. The VEX panel's status and supplier helpers are now crate-visible and reused here. Docs: `docs/guide/sbom.md`. ## Compared with the mockup I ran the agent and dashboard locally with a made-up machine of four parts (two bought in), alerts, an advisory status and scans, one of them a supplier version change. All three tabs match the mockup. Where they differ: - **Documents:** they show the SBOM only. VEX, CSAF and the evidence pack wait for #1015, as decided, and a note says each part has its own until then. - **No "Bestandteil hinzugefügt" row:** assigning a target to a project keeps no history. - **No SBOM file name** in the Verlauf. - **Open CVEs:** the tile and tab count each part's open CVEs, so a CVE in two parts counts twice, matching the two decisions it needs. That's the fix in #1037. Without it, the tile showed fewer open CVEs than unassessed ones. - **Times:** "vor 7 Std." rather than "heute, 03:31", as on the targets list. - **Machine name:** without a registry (local dev) the machine is named by its id; with the registry it's the project's name. ## Checks - clippy, server and web (`--all-targets -D warnings`), both clean. - `cargo test -p compliance-dashboard` passes. New tests: the supplier-version wording of a Verlauf row (only for a part bought in), and the count badges. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang changed target branch from feat/machine-overview to main 2026-11-17 11:57:03 +00:00
sharang added 1 commit 2026-11-17 11:57:15 +00:00
feat(dashboard): a machine's page, its parts, CVEs and history (#1026)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
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 / Agent integration (pull_request) Successful in 5m15s
CI / Check (pull_request) Successful in 22m0s
3a149892a9
The approved machine mockup: a product project's page (/projects/{id},
linked from its name on the overview) with three tabs. Bestandteile: the
open and unassessed CVEs, the components and the suppliers' advisories,
each part with its origin, version, open CVEs and last scan, and the
machine SBOM to download. Schwachstellen: the open CVEs by component
across the parts, filtered by origin, each row a part with its status,
the supplier's statement and a link to assess it there. Verlauf: the
parts' scans, a supplier's new version named as such.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang force-pushed feat/machine-page from f6bddd6b44 to 3a149892a9 2026-11-17 11:57:15 +00:00 Compare
sharang merged commit eff6f92a33 into main 2026-11-17 12:21:07 +00:00
sharang deleted branch feat/machine-page 2026-11-17 12:21:08 +00:00
Sign in to join this conversation.