f8a7a174
feat(graph): wire the proposals read to service.ListProposals (Phase 3)
The Proposals port declared a proposal listing and left Options.Proposals nil, so the `proposals` query failed loudly with "service/ exposes no proposal listing yet". Phase 3 supplies it: an adapter maps service.Proposal onto graph.Proposal at the edge — the two structs are identical, but service/ must not import graph/, so the rename lives here beside web.NewReader's equivalent — and cmd wires graph.NewProposals(svc) into the schema. The `proposals` field now answers from service/.
Eugene Blikh <bigbes@gmail.com> — 2026-07-23 05:18:21 UTC
Commit f8a7a1743ad9704ff46f9e9319f8cc22b75bbdef —
view raw patch
Parent(s):
65eac3cf
| File | Status | + | − |
|---|---|---|---|
cmd/specsrht/main.go
|
M | +4 | -3 |
graph/proposals.go
|
A | +63 | |
graph/proposals_test.go
|
A | +87 |