← All tests

NIX-OS-69.1 — Kitchen Display foundation LOCAL

2026-04-24. First sub-phase of NIX-OS-69 (Kitchen Display + Order Status). Lays the foundation: a NIX-owned cafe.kitchen_orders table, a DAO with a state machine (new → preparing → ready → served), a per-shop display secret, and a POS TopBar indicator for the active kitchen queue depth. The visual Kitchen Display route ships in 69.2 — 69.1 proves the plumbing works.

7/7 local Gate 1 checks passed. Migration lands cleanly (table + FK + CHECK + 3 indexes + kitchen_display_secret column on commerce.shops). CHECK rejects bad statuses. Session cascade wipes kitchen rows. Full DAO round-trip exercises createKitchenOrdercountActiveByShoplistActiveByShopadvanceStatus through all three terminal transitions (timestamps stamped on each), and ensureShopKitchenDisplaySecret generates then reuses a 64-char hex token. Fullscreen POS shell + Daily Report routes still 307 — no regression.
Gate 2 (prod) will prove the end-to-end hook. Ring a cart, validate, and inspect cafe.kitchen_orders — expect a row with status='new', a denormalized payload including the cashier-entered product names, the NIX POSID, and the open NIX session FK. POS TopBar badge should tick from 0 to 1 after refresh.

00What's new

01Migration — cafe.kitchen_orders schema✓ columns + FKs + CHECK + 3 indexes

Loading…

02Migration — commerce.shops.kitchen_display_secret✓ added

Loading…

03DAO probe — full round-trip✓ state machine + secret stability

Loading…

04Test runner — all checks✓ 7/7 passed

Loading…