feat(dashboard): what suppliers offer, the customer's offer screen (#1028) #1069

Merged
sharang merged 1 commits from feat/sbom-offers-ui into main 2026-11-19 22:19:47 +00:00
Owner

Part of #1028. Stacked on #1068, which adds the version an open offer carries. This is the customer's offer screen from mockup RL3h (board "Prüfwerk, Kunde: angebotene Freigaben").

Where:

  • The page is /supplier-offers; its breadcrumb is "Prüfobjekte › Freigaben von Zulieferern".
  • The sidebar counts open offers on "Prüfobjekte".
  • The targets page shows a note, "N Angebote von Zulieferern warten auf Ihre Antwort", that links to the page.

What it shows for an open offer:

  • The supplier and the version on its way, for example "1.4.0, 214 Komp." When the supplier hasn't published a version yet, the box says "noch keine Version" and the line is dashed.
  • Where the SBOM arrives. The board's machine frame now has a machine picker. Inside the frame:
    • "Als neue Komponente" (default). It's named after the product, goes into the chosen machine, and the machine's other parts are shown under it.
    • Bought-in components that no accepted offer already delivers into, those named after this supplier first. Two are shown as buttons; the rest are in an "Andere Komponente …" list.
  • What accepting means:
    • Either "Ein Prüfobjekt mehr", which says "über Ihrem Tarif, wird zusätzlich berechnet" when the plan's included targets are used up, or "Kein neues Prüfobjekt, ersetzt die hochgeladene SBOM".
    • "Jede neue Version kommt von selbst und wird gleich geprüft".
    • "Nur die Stückliste".
  • Answering. Accept and decline. Accepting into an existing component asks once more ("SBOM von … ersetzen und annehmen"). Declining asks once more too, explaining that the supplier sees it and would have to release again.

Below the offer: "Ihre Lieferkette". It lists running and ended deliveries, supplier to component, with the version and when it arrived, or "beendet, 2.0.4 bleibt". Each component links to its target, with the products it's in.

Departures from the approved board (please check)

  1. The machine is a picker, starting at "keinem Produkt zuordnen". The board showed one fixed machine. I didn't want to guess which machine a component belongs in.
  2. The board's "keine für eine unveränderte" is gone. Each publication is its own document, so an unchanged version is still delivered and scanned (corrected in #1068's docs). The tile now reads "und wird gleich geprüft".
  3. The first tile depends on the choice and the plan. It shows "zusätzlich berechnet" when the plan is full; the board always said "zählt wie jedes andere".
  4. States the board doesn't draw:
    • several open offers, picked from a row titled "Offene Angebote";
    • no open offer ("Gerade wartet kein Angebot …"), with only the supply lines below;
    • an offer without a version;
    • more than two bought-in components (the list);
    • the two-step accept and decline.
  5. "Ihre Lieferkette" shows only lines from offers, with a link to the whole Lieferkette. The board drew it as a separate overview. Declined offers are not lines.
  6. The supplier box says "verbundener Zulieferer" with the workspace name, as on the board, and the parcel sits on the line.

Checked locally, with the supplier agent, the customer agent (the dashboard pointed at it) and a fake registry holding the customer's projects:

  • Accepting into an existing component, with the second step: 1.4.0 arrived and the line appeared.
  • Accepting as a new component into Pumpstation PS-200: the target exists, in PS-200, with the supplier recorded.
  • Declining, with the second step.
  • Several open offers, none open, an offer without a version, and more than two bought-in components.
  • Light and dark mode, English, 1440 px, and 390 px (no sideways page scroll).

A bug found that way and fixed: an empty project_ids failed the server function call.

Not exercised:

  • A read-only role (local runs have no Keycloak). The choices are disabled and the answer buttons hidden by use_can_write.
  • The 409 ended for a stale offer in the browser. Its sentence is covered by a unit test.

Tests: unit tests for the choices (free bought-in components, the supplier's own first), the frame geometry, the plan check, the supply lines, the refusals, and the destination round trip. Clippy 1.94 is clean for server and web.

On stage: offers need connections, which come from tenant-registry#138, so this screen stays empty until then.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9

Part of #1028. Stacked on #1068, which adds the version an open offer carries. This is the customer's offer screen from mockup RL3h (board "Prüfwerk, Kunde: angebotene Freigaben"). **Where:** - The page is `/supplier-offers`; its breadcrumb is "Prüfobjekte › Freigaben von Zulieferern". - The sidebar counts open offers on "Prüfobjekte". - The targets page shows a note, "N Angebote von Zulieferern warten auf Ihre Antwort", that links to the page. **What it shows for an open offer:** - **The supplier and the version on its way,** for example "1.4.0, 214 Komp." When the supplier hasn't published a version yet, the box says "noch keine Version" and the line is dashed. - **Where the SBOM arrives.** The board's machine frame now has a machine picker. Inside the frame: - "Als neue Komponente" (default). It's named after the product, goes into the chosen machine, and the machine's other parts are shown under it. - Bought-in components that no accepted offer already delivers into, those named after this supplier first. Two are shown as buttons; the rest are in an "Andere Komponente …" list. - **What accepting means:** - Either "Ein Prüfobjekt mehr", which says "über Ihrem Tarif, wird zusätzlich berechnet" when the plan's included targets are used up, or "Kein neues Prüfobjekt, ersetzt die hochgeladene SBOM". - "Jede neue Version kommt von selbst und wird gleich geprüft". - "Nur die Stückliste". - **Answering.** Accept and decline. Accepting into an existing component asks once more ("SBOM von … ersetzen und annehmen"). Declining asks once more too, explaining that the supplier sees it and would have to release again. **Below the offer: "Ihre Lieferkette".** It lists running and ended deliveries, supplier to component, with the version and when it arrived, or "beendet, 2.0.4 bleibt". Each component links to its target, with the products it's in. **Departures from the approved board (please check)** 1. **The machine is a picker,** starting at "keinem Produkt zuordnen". The board showed one fixed machine. I didn't want to guess which machine a component belongs in. 2. **The board's "keine für eine unveränderte" is gone.** Each publication is its own document, so an unchanged version is still delivered and scanned (corrected in #1068's docs). The tile now reads "und wird gleich geprüft". 3. **The first tile depends on the choice and the plan.** It shows "zusätzlich berechnet" when the plan is full; the board always said "zählt wie jedes andere". 4. **States the board doesn't draw:** - several open offers, picked from a row titled "Offene Angebote"; - no open offer ("Gerade wartet kein Angebot …"), with only the supply lines below; - an offer without a version; - more than two bought-in components (the list); - the two-step accept and decline. 5. **"Ihre Lieferkette" shows only lines from offers, with a link to the whole Lieferkette.** The board drew it as a separate overview. Declined offers are not lines. 6. **The supplier box says "verbundener Zulieferer"** with the workspace name, as on the board, and the parcel sits on the line. **Checked locally,** with the supplier agent, the customer agent (the dashboard pointed at it) and a fake registry holding the customer's projects: - Accepting into an existing component, with the second step: 1.4.0 arrived and the line appeared. - Accepting as a new component into Pumpstation PS-200: the target exists, in PS-200, with the supplier recorded. - Declining, with the second step. - Several open offers, none open, an offer without a version, and more than two bought-in components. - Light and dark mode, English, 1440 px, and 390 px (no sideways page scroll). A bug found that way and fixed: an empty `project_ids` failed the server function call. **Not exercised:** - A read-only role (local runs have no Keycloak). The choices are disabled and the answer buttons hidden by `use_can_write`. - The 409 `ended` for a stale offer in the browser. Its sentence is covered by a unit test. **Tests:** unit tests for the choices (free bought-in components, the supplier's own first), the frame geometry, the plan check, the supply lines, the refusals, and the destination round trip. Clippy 1.94 is clean for server and web. **On stage:** offers need connections, which come from tenant-registry#138, so this screen stays empty until then. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang changed target branch from feat/sbom-offer-latest to main 2026-11-19 21:55:56 +00:00
sharang added 1 commit 2026-11-19 21:56:17 +00:00
feat(dashboard): what suppliers offer, the customer's offer screen (#1028)
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 5m24s
CI / Check (pull_request) Successful in 22m30s
e4675db495
The customer side of mockup RL3h ("Prüfwerk, Kunde: angebotene
Freigaben") at /supplier-offers, counted on "Prüfobjekte" in the sidebar
and announced on the targets page.

- Each open offer: the supplier, the version on the way (or "noch keine
  Version"), and where it arrives: a new component in a chosen machine
  (its parts shown), or a bought-in component no other supplier delivers
  into, the supplier's own first, the rest in a list.
- What accepting means: one more target (billed on top when the plan is
  full) or none, every version arrives and is scanned, only the bill of
  materials. Accepting into an existing component and declining each ask
  once more.
- Several open offers are picked from a row; none open says so.
- "Ihre Lieferkette": the running and ended deliveries, supplier to
  component, with the version and when.
- The refusal-code parser is shared (i18n::agent_code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang force-pushed feat/sbom-offers-ui from 4d35e86875 to e4675db495 2026-11-19 21:56:17 +00:00 Compare
sharang merged commit ae5d8f1ca8 into main 2026-11-19 22:19:47 +00:00
sharang deleted branch feat/sbom-offers-ui 2026-11-19 22:19:47 +00:00
Sign in to join this conversation.