feat(dashboard): the Lieferkette page (#1053) #1057

Merged
sharang merged 1 commits from feat/supply-chain-page into main 2026-11-19 09:46:09 +00:00
Owner

Closes #1053 (epic #1050). Stacked on #1056, which is stacked on #1055. Each will be retargeted to main in turn.

Built from the approved mockup: https://claude.ai/artifact/RL3hc9N828qSZPvgQ6sz3B, board "Prüfwerk: Lieferkette".

What it adds

  • Navigation: a "Lieferkette" entry (/supply-chain) right after Übersicht.
  • The graph:
    • Columns for suppliers, components, assemblies and products.
    • Curved edges. A supplier's edge carries the delivery: the upload link with its version and age ("1.4.0 vor 5 Tagen"), or "Upload-Link aktiv" before anything has arrived; an upload; or no SBOM yet.
    • Every box shows its open CVEs. In-house components have a violet tile, and products have a picture slot.
  • Default layout:
    • A supplier sits beside its components, and a project beside its parts.
    • Components are ordered by where their projects land, in two barycentric passes, so fewer edges cross.
    • The gap between suppliers and components (≥ 170 px) leaves room for the labels; the overlap reported on the mockup is fixed.
  • Arranging:
    • Boxes are dragged with the pointer, or moved 20 px with the arrow keys.
    • The arrangement is saved on release through #1056 and kept per workspace.
    • "Anordnung zurücksetzen" brings back the columns. Read-only roles can't move boxes.
  • Selecting: a click highlights everything upstream and downstream of the box. The panel shows the box, its CVEs, what it is made of or part of, and a link to the target or product.
  • Phone: the graph scrolls inside its box. .main-content now has min-width: 0: as a flex item it used to grow to its widest content and widen the whole page. The targets page was checked and is unchanged at phone width.
  • Docs: docs/guide/lieferkette.md, with a sidebar entry.

Compared with the mockup, screen by screen (local run)

I ran it locally with a fake registry serving the mockup's hierarchy: two products, two assemblies, six components and four suppliers.

  • Matches: the columns, edges and chips, the CVE states, the highlighting of the selected path, the drag, the reset, and the panel.
  • Deliberately not built yet:
    • The side panel's picture, description and documents slots (#1054, later). Only the product's picture slot shows, as on the board.
    • The first-component board's ghost boxes. With no component at all, a short empty state links to "Komponente hinzufügen".
    • The nav entry is always shown after Übersicht. It does not move to the top once a product exists.
    • Releases between workspaces (#1028) as a delivery kind. They come with that work.

Checked

  • Interaction: a drag moves a box by exactly the pointer distance and the position survives a reload; two arrow presses move a box 40 px; reset restores the default after a reload.
  • Themes and width: dark mode, and the phone width (390 px: the page fits, the graph scrolls in its box).
  • Tests: unit tests for the default layout (every box in its column, no overlap in a column, a supplier beside its component, label room, an assembly's parts adjacent), selection (upstream and downstream only) and CVE states. All 207 dashboard tests pass, and clippy is clean on the server and web builds.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9

Closes #1053 (epic #1050). **Stacked on #1056, which is stacked on #1055.** Each will be retargeted to `main` in turn. Built from the approved mockup: https://claude.ai/artifact/RL3hc9N828qSZPvgQ6sz3B, board "Prüfwerk: Lieferkette". ## What it adds - **Navigation:** a "Lieferkette" entry (`/supply-chain`) right after Übersicht. - **The graph:** - Columns for suppliers, components, assemblies and products. - Curved edges. A supplier's edge carries the delivery: the upload link with its version and age ("1.4.0 vor 5 Tagen"), or "Upload-Link aktiv" before anything has arrived; an upload; or no SBOM yet. - Every box shows its open CVEs. In-house components have a violet tile, and products have a picture slot. - **Default layout:** - A supplier sits beside its components, and a project beside its parts. - Components are ordered by where their projects land, in two barycentric passes, so fewer edges cross. - The gap between suppliers and components (≥ 170 px) leaves room for the labels; the overlap reported on the mockup is fixed. - **Arranging:** - Boxes are dragged with the pointer, or moved 20 px with the arrow keys. - The arrangement is saved on release through #1056 and kept per workspace. - "Anordnung zurücksetzen" brings back the columns. Read-only roles can't move boxes. - **Selecting:** a click highlights everything upstream and downstream of the box. The panel shows the box, its CVEs, what it is made of or part of, and a link to the target or product. - **Phone:** the graph scrolls inside its box. `.main-content` now has `min-width: 0`: as a flex item it used to grow to its widest content and widen the whole page. The targets page was checked and is unchanged at phone width. - **Docs:** `docs/guide/lieferkette.md`, with a sidebar entry. ## Compared with the mockup, screen by screen (local run) I ran it locally with a fake registry serving the mockup's hierarchy: two products, two assemblies, six components and four suppliers. - **Matches:** the columns, edges and chips, the CVE states, the highlighting of the selected path, the drag, the reset, and the panel. - **Deliberately not built yet:** - The side panel's picture, description and documents slots (#1054, later). Only the product's picture slot shows, as on the board. - The first-component board's ghost boxes. With no component at all, a short empty state links to "Komponente hinzufügen". - The nav entry is always shown after Übersicht. It does not move to the top once a product exists. - Releases between workspaces (#1028) as a delivery kind. They come with that work. ## Checked - **Interaction:** a drag moves a box by exactly the pointer distance and the position survives a reload; two arrow presses move a box 40 px; reset restores the default after a reload. - **Themes and width:** dark mode, and the phone width (390 px: the page fits, the graph scrolls in its box). - **Tests:** unit tests for the default layout (every box in its column, no overlap in a column, a supplier beside its component, label room, an assembly's parts adjacent), selection (upstream and downstream only) and CVE states. All 207 dashboard tests pass, and clippy is clean on the server and web builds. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang changed target branch from feat/supply-chain-layout to main 2026-11-19 09:23:27 +00:00
sharang added 1 commit 2026-11-19 09:23:30 +00:00
feat(dashboard): the Lieferkette page (#1053)
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 5m9s
CI / Check (pull_request) Successful in 21m47s
bb0a1d8aea
The supply chain as a graph the customer arranges (#1050), from the
approved mockup:

- a "Lieferkette" entry after the overview; columns for suppliers,
  components, assemblies and products, curved edges with the delivery on a
  supplier's (upload link with version and age, upload, no SBOM yet), the
  open CVEs on every box, in-house components marked violet, products with
  a picture slot;
- the default layout keeps a supplier beside its components and a project
  beside its parts, orders components by where their projects land (two
  barycentre passes) and leaves room for the labels between columns;
- boxes drag with the pointer or move with the arrow keys (20 px); the
  arrangement is saved on release and kept per workspace; "Anordnung
  zurücksetzen" goes back to the columns; read-only roles cannot move;
- a click highlights everything upstream and downstream; the panel shows
  the box, its CVEs, what it is made of or part of, and a link to the
  target or product;
- the graph scrolls inside its box on a phone (`.main-content` now has
  `min-width: 0`, so wide content no longer widens the page);
- docs: guide/lieferkette.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang force-pushed feat/supply-chain-page from 5eba32a19a to bb0a1d8aea 2026-11-19 09:23:30 +00:00 Compare
sharang merged commit d979fc1644 into main 2026-11-19 09:46:09 +00:00
sharang deleted branch feat/supply-chain-page 2026-11-19 09:46:09 +00:00
Sign in to join this conversation.