← Back to gallery

T4 — POS Open Orders Restructure LOCAL

2026-05-23 — Gate 1. NIX-OS-81 ("Open Orders" — Notion status: Needs Rework). 9 items distilled from the task's 4 original sub-tasks + 7 Review items (added 2026-05-20). One bundled slice; default proposals confirmed for the 4 open Qs in scoping.

Summary

Status
17/17 local · awaiting Gate 1 approval
Repos
nix-cafe (no migration)
Files
3 modified + 2 new · ~360 LOC net
Source task
NIX-OS-81 "Open Orders"
Scope memo
project_t4_open_orders_restructure_scoping.md

What changed

New files:

Modified — pos-tab-strip.tsx:

Modified — pos-workspace.tsx:

Modified — orders-history-view.tsx:

Narong's annotated screenshot

From NIX-OS-81. Red sweeping curve indicates the panel layout shift (Orders panel on the left, with the Register tab as a sibling toggle). The "All orders" button at the top-right is circled to flag the position change.

Narong's annotated POS Open Orders layout target

Defaults applied (confirmed pre-implementation)

Out of T4 scope

Test results — 17/17 local

Source assertions + helper tsx probe
  1. shortenOrderNumber helper exported ·
  2. shortenOrderNumber tsx probe — 6 cases (BKK1-0003, MULTI-SHOP-0042, 0007, "", null, BKK1-X-0099) ·
  3. T4.1 — All orders rendered first (left of Register + per-order tabs) ·
  4. T4.1 — old ml-auto on All orders removed ·
  5. T4.2 — PosTabStrip exposes onRegister prop ·
  6. T4.2 — workspace wires handleRegister → setMode('tabs') ·
  7. T4.3 — empty-cart hint is (0), not 'empty' ·
  8. T4.4 — tabs have bg-[#FAFAFA] + border (chip look) ·
  9. T4.5 — OrdersHistoryView accepts drafts + onResumeOngoing ·
  10. T4.5 — status filter pills (Active/Ongoing/Paid/All), default Active ·
  11. T4.5 — workspace passes drafts={stripTabs} + onResumeOngoing ·
  12. T4.6 — color-coded chips via chipConfig helper (5 labels) ·
  13. T4.7 — tab strip uses shortenOrderNumber for labels ·
  14. T4.7 — orders-history-view uses shortenOrderNumber in rows + detail header ·
  15. T4.A — DiscardTabModal exists + workspace mounts it ·
  16. T4.A — workspace no longer uses native confirm() for tab discard ·
  17. T4.A — empty drafts close silently; ongoing drafts trigger modal ·

Gate 2 plan

Reply push to proceed to Gate 2, or flag corrections.