← Back to gallery

U7.2 — Session time range on Daily Sales Report PDF PROD

2026-05-27 Gate 2 ship. Third follow-up touch to the closing-session PDF today (after U7 + U7.1). Narong: "under As of Date, can we include From Time → To Time?". The "As of MM/DD/YYYY" boxed cell now has a second smaller line below showing the session's open/close window — HH:MM → HH:MM for closed sessions, HH:MM → (open) for X (mid-session) reports.

Summary

Status
12/12 prod · 51/51 regression · 63/63 total · awaiting Gate 2 approval
Commit
nix-cafe 36b4520
Files
2 nix-cafe files modified · ~40 LOC net · no migration · no backend · no schema
Source
Narong's Telegram 2026-05-27 after U7.1 ship.

What shipped

Files shipped

12/12 prod checks

Find a closed lumiere session w/ orders + its branch (Z test) — session b967eb21, shop "Lumière BKK1"
SSO-login lumiere owner
Z test: fetch closing-session PDF (200 / application/pdf / closing-session- filename / %PDF magic)
Closed session PDF: title 'Daily Sales Report Z' + section headings
U7.1: PDF header shows shop name + tenant name (branch labeled)
U7.2: PDF As of cell shows session time range — at least 2 HH:MM endpoints extracted from PDF text for the closed session
U7.1: Content-Disposition filename includes shop code prefix (-bkk1-)
Closed session PDF: legacy 'Order#' / 'Methods' table headers gone
Counts in PDF body match raw SQL: Number of transactions: 1 + Transactions Refunded: 0
Find an open lumiere session for the X test
X test: open-session PDF has title 'Daily Sales Report X' AND U7.2: shows "(open)" upper bound
No 5xx HTTP responses during the suite

Real rendered PDFs from prod (with U7.2 time range)

Fetched live from lumiere-coffee.nixtech.app. The "As of" cell in the top-right corner of each PDF now shows two lines: date primary, session time range smaller below.

Closed session — HH:MM → HH:MM

PDF preview not supported. Download.

Open session — HH:MM → (open)

PDF preview not supported. Download.

Regression sweep 51/51

51/51 regression checks green — no regressions from this push.
test-phase1-prod.mjs11/11
test-phase2-sso-outdoor-prod.mjs6/6
test-m1-prod.mjs10/10
test-r7-prod.mjs14/14
test-r8-prod.mjs4/4
test-phase2-cafe-multishop-prod.mjs (solo)6/6

narongix chain ran sequentially and was first-attempt green this time (no r7 flake retry needed — clean first run). phase2-cafe-multishop ran solo per feedback_phase2_cafe_multishop_solo_retry — first-attempt green (10th validation today).

Mid-Gate-2 note: deploy-race retest pattern

First prod test attempt ran ~75s after push and failed with "expected at least 2 HH:MM time stamps; found 1" + "'(open)' upper bound missing" — the new U7.2 features were missing from the rendered PDF. wrangler deployments list confirmed the CF Workers Build hadn't landed yet (last deploy was U7.1 at 06:24 UTC; my U7.2 push was 06:51 UTC). Used a backgrounded until [ ... ]; do sleep 15; done loop polling wrangler deployments list for the new timestamp prefix, then auto-reran the test. Deploy landed within ~30s of the loop starting and the retest came back 12/12. Clean recovery path — no manual intervention.