← All tests

Order Management + Food App type STAGING

Narong (board item n2, Next-Phase POS) — a manager Order Management view, plus a new Food App order type. Verified with a real order rung end-to-end on demo.staging. Gate-2 4/4 + staging smoke 5/5.

Two parts: A a new Order Management page — orders grouped by branch, filterable by date, each showing ticket # · type · total items · status · live elapsed time · details · B Food App added as a real 3rd order type alongside Dine-In / Takeaway (a shared lib/dine-type helper now drives the pay dialog, the orders API, the receipt, and the kitchen ticket).

No migration — dine_type is a free-form column.

B — Food App is a first-class order type in the POS

The pay dialog's order-type row is now data-driven from DINE_TYPES — three choices. A cashier taps 📱 Food App and completes the sale like any other.

rang a real order on demo.staging → cafe.orders:
order POS1000000001-0001 · dine_type=food_app · state=paid · $2.50 · 1 item
Pay dialog with Food App selected
Pay dialog — Dine-In / Takeaway / Food App, with Food App selected.

A — Order Management, grouped by branch

The same order then appears on the new Order Management page, under its branch, showing everything Narong asked for at a glance:

Order Management page
Order Management — the Food App order under its branch with ticket #, items, status, elapsed.

A — Status & view details

Tapping Details opens the order: its type, status, time, line items and totals.

Order details modal
Per-order details — line items + totals, reusing the existing order-detail endpoint.

nix-cafe 8ae70a2 (staging a4b4b66, nix-cafe-staging Worker 669e3cd7). No migration, no backend change. Parked on staging for the scheduled prod promote.