feat(dashboard): fold the Lieferkette's components in no product (#1050) #1060

Merged
sharang merged 1 commits from feat/supply-chain-fold into main 2026-11-19 10:57:56 +00:00
Owner

Part of #1050. Stacked on #1059, which will merge first.

Why

Stage has 32 components in its workspace, 26 of them in no product, and the Lieferkette's components column ran about 3,700 px down the page.

What it does

  • The fold: once the workspace has a product, its components in no product fold into one box at the end of the components column ("26 Prüfobjekte ohne Produkt"). Suppliers that supply only those components fold with them.
  • Unfolding: a click unfolds them into the graph, and the box moves to the end and reads "einklappen". aria-expanded says which state it's in.
  • No product: nothing folds, because nothing would be left to show.
  • The arrangement keeps only the boxes someone placed. Every other box takes its computed place on each render, so unfolding, or a new box, never freezes the columns around it. "Anordnung zurücksetzen" clears what was placed. The saved format (#1056) is unchanged; the page simply saves fewer boxes.
  • Docs: guide/lieferkette, section "Prüfobjekte ohne Produkt".

Checked

  • Locally: three components in products plus six loose ones, one of them from a supplier that supplies nothing else.
    • Folded: 7 boxes on a 486 px canvas. The loose components and their supplier are folded in.
    • Unfolded: 14 boxes on a 1,170 px canvas, with the fold box at the end.
  • Tests:
    • unit tests: what folds, including a supplier with one loose and one placed component staying, and the edges dropped; nothing folds without a product;
    • all 212 dashboard tests pass, and clippy is clean on both builds.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9

Part of #1050. **Stacked on #1059**, which will merge first. ## Why Stage has 32 components in its workspace, 26 of them in no product, and the Lieferkette's components column ran about 3,700 px down the page. ## What it does - **The fold:** once the workspace has a product, its components in no product fold into one box at the end of the components column ("26 Prüfobjekte ohne Produkt"). Suppliers that supply only those components fold with them. - **Unfolding:** a click unfolds them into the graph, and the box moves to the end and reads "einklappen". `aria-expanded` says which state it's in. - **No product:** nothing folds, because nothing would be left to show. - **The arrangement keeps only the boxes someone placed.** Every other box takes its computed place on each render, so unfolding, or a new box, never freezes the columns around it. "Anordnung zurücksetzen" clears what was placed. The saved format (#1056) is unchanged; the page simply saves fewer boxes. - **Docs:** `guide/lieferkette`, section "Prüfobjekte ohne Produkt". ## Checked - **Locally:** three components in products plus six loose ones, one of them from a supplier that supplies nothing else. - Folded: 7 boxes on a 486 px canvas. The loose components and their supplier are folded in. - Unfolded: 14 boxes on a 1,170 px canvas, with the fold box at the end. - **Tests:** - unit tests: what folds, including a supplier with one loose and one placed component staying, and the edges dropped; nothing folds without a product; - all 212 dashboard tests pass, and clippy is clean on both builds. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang changed target branch from feat/supply-chain-docs to main 2026-11-19 10:35:22 +00:00
sharang added 1 commit 2026-11-19 10:35:25 +00:00
feat(dashboard): fold the Lieferkette's components in no product (#1050)
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 5m43s
CI / Check (pull_request) Successful in 21m41s
cc1f13485c
On stage the workspace has 32 components, 26 of them in no product, and the
components' column ran 3700 px down the page. Once a workspace has a
product, its components in no product, and the suppliers that supply only
those, now fold into one box at the end of the components ("26 Prüfobjekte
ohne Produkt"); a click unfolds them into the graph and folds them back.
Nothing folds without a product.

The arrangement now keeps only the boxes someone placed; every other box
takes its computed place each time, so unfolding (or a new box) never
freezes the columns around it. Reset clears what was placed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang force-pushed feat/supply-chain-fold from 63bb93d689 to cc1f13485c 2026-11-19 10:35:25 +00:00 Compare
sharang merged commit f06a347dd7 into main 2026-11-19 10:57:56 +00:00
sharang deleted branch feat/supply-chain-fold 2026-11-19 10:57:56 +00:00
Sign in to join this conversation.