Part of #1028. This is what the customer's offer screen needs from the API (mockup RL3h, board "Prüfwerk, Kunde: angebotene Freigaben"). The screen itself follows in a stacked PR.
The version on offer. An open offer now carries offered_label and offered_components: the version that accepting delivers at once. When the supplier hasn't published anything yet, both are null.
They are set from the latest version when the release is created.
Each publication updates them while the offer stays open. That happens after the connection is checked, so an ended connection stops the updates.
Publishing still delivers only to accepted releases.
Why stamp the offer instead of reading the supplier's workspace when listing: listing stays one local query. The sidebar will count open offers on every page.
Doc fix. The delivered hash only stops the same version from being delivered twice. Each publication is its own document, with its own serial number and time, so a new version with unchanged components is still delivered and scanned. The module docs, a field doc and sbom.md said otherwise; they are corrected. The approved board says "keine Prüfung für eine unveränderte" (no scan for an unchanged version); the screen PR won't make that promise.
Tests
Integration: an_open_offer_learns_each_published_version (no version at first, then 1.5.0 announced and not delivered).
An offer created after 1.4.0 names 1.4.0 and its component count.
All 11 tests in connections.rs pass, and clippy 1.94 is clean.
Part of #1028. This is what the customer's offer screen needs from the API (mockup RL3h, board "Prüfwerk, Kunde: angebotene Freigaben"). The screen itself follows in a stacked PR.
**The version on offer.** An open offer now carries `offered_label` and `offered_components`: the version that accepting delivers at once. When the supplier hasn't published anything yet, both are `null`.
- They are set from the latest version when the release is created.
- Each publication updates them while the offer stays open. That happens after the connection is checked, so an ended connection stops the updates.
- Publishing still delivers only to accepted releases.
**Why stamp the offer instead of reading the supplier's workspace when listing:** listing stays one local query. The sidebar will count open offers on every page.
**Doc fix.** The delivered hash only stops the same version from being delivered twice. Each publication is its own document, with its own serial number and time, so a new version with unchanged components is still delivered and scanned. The module docs, a field doc and `sbom.md` said otherwise; they are corrected. The approved board says "keine Prüfung für eine unveränderte" (no scan for an unchanged version); the screen PR won't make that promise.
**Tests**
- Integration: `an_open_offer_learns_each_published_version` (no version at first, then 1.5.0 announced and not delivered).
- An offer created after 1.4.0 names 1.4.0 and its component count.
- All 11 tests in `connections.rs` pass, and clippy 1.94 is clean.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
The customer's offer screen (mockup RL3h, "Prüfwerk, Kunde: angebotene
Freigaben") shows the version on the way and its component count before
accepting. The offer now carries them (offered_label,
offered_components): set from the latest version when the release is
created, and updated by each publication while the offer is open, after
the connection is checked. Listing offers stays one local query, so the
sidebar can count open offers on every page.
Doc fix: the delivered hash prevents delivering the same version twice;
it does not skip a new version with unchanged components (each document
has its own serial number and time).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part of #1028. This is what the customer's offer screen needs from the API (mockup RL3h, board "Prüfwerk, Kunde: angebotene Freigaben"). The screen itself follows in a stacked PR.
The version on offer. An open offer now carries
offered_labelandoffered_components: the version that accepting delivers at once. When the supplier hasn't published anything yet, both arenull.Why stamp the offer instead of reading the supplier's workspace when listing: listing stays one local query. The sidebar will count open offers on every page.
Doc fix. The delivered hash only stops the same version from being delivered twice. Each publication is its own document, with its own serial number and time, so a new version with unchanged components is still delivered and scanned. The module docs, a field doc and
sbom.mdsaid otherwise; they are corrected. The approved board says "keine Prüfung für eine unveränderte" (no scan for an unchanged version); the screen PR won't make that promise.Tests
an_open_offer_learns_each_published_version(no version at first, then 1.5.0 announced and not delivered).connections.rspass, and clippy 1.94 is clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9