feat(supply-chain): keep the customer's arrangement (#1052) #1056

Merged
sharang merged 1 commits from feat/supply-chain-layout into main 2026-11-19 09:23:28 +00:00
1 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 3b1952f5ec feat(supply-chain): keep the customer's arrangement (#1052)
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 5m18s
CI / Check (pull_request) Successful in 23m0s
The Lieferkette page (#1050) keeps where the customer put each box, per
workspace:

- `GET /api/v1/supply-chain/layout`: the placed boxes by node key (empty
  before the first save);
- `PUT`: replaces the whole arrangement (the last save wins), each key
  trimmed and kept once with its last position; 422 for more than 5000
  boxes, an empty or overlong key, or a box beyond 100000 px;
- `DELETE`: resets to the computed columns.

One document in the tenant database (`supply_chain_layout`), so export and
erasure cover it; positions are a list, not a map by key, as a supplier name
may hold a dot. Saving and resetting are writes, so read-only roles are
refused by the role gate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
2026-11-19 09:59:55 +01:00