Skip to content

Itemised order confirmation via OrderReadPort (ADR 0026) - #5

Merged
DanMat merged 2 commits into
mainfrom
feat/itemised-order-confirmation
Sep 3, 2026
Merged

Itemised order confirmation via OrderReadPort (ADR 0026)#5
DanMat merged 2 commits into
mainfrom
feat/itemised-order-confirmation

Conversation

@DanMat

@DanMat DanMat commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

The /order confirmation (already IDOR-gated by the nb_order cookie) now shows what was bought, not just the reference.

  • StorefrontCart::orderSection reads Commerce's public-safe OrderReadPort and resolves each line's SKU to a display name via CatalogReadPort (active → name; inactive/deleted → the SKU itself).
  • Null-safe: no OrderReadPort (Commerce absent) → today's ref-only view, never a 500. The page stays private (no-store); the IDOR gate is unchanged.
  • Default shop-order template renders the itemised list + total, escaped.

Reviewed via both skills, security-green. Tests: itemised summary + name resolution + inactive-SKU fallback; ref-only fallback without Commerce. (CI pulls commerce dev-main, which now has OrderReadPort.)

🤖 Generated with Claude Code

DanMat and others added 2 commits September 3, 2026 13:35
The /order page (already IDOR-gated by the nb_order cookie) now shows what was
bought, not just the reference. StorefrontCart reads Commerce's public-safe
OrderReadPort and resolves each line's SKU to a display name via CatalogReadPort
(active → name, else the SKU itself). Null-safe: no OrderReadPort (Commerce
absent) → today's ref-only view, never a 500. The page stays private (no-store).

Reviewed via both skills, security-green. Tests: itemised summary with name
resolution + inactive-SKU fallback; ref-only fallback without Commerce.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…null string)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@DanMat
DanMat merged commit c756d2f into main Sep 3, 2026
2 checks passed
@DanMat
DanMat deleted the feat/itemised-order-confirmation branch September 3, 2026 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant