feat(waiter): a table's earlier orders (platform-v2 step 4.7)
- GET /api/tables/{id}/history: the table's closed / cancelled orders, newest first,
for the waiters of its zone (ordering.orders.open), never older than the history
module's history_days (free tier 31, D-6), module.disabled when history is off;
each order with times, total (cancelled items left out), people and items.
- Waiter: a History tab on the table (and "This table's earlier orders" on a free
table); orders expand to their items; the last answer is kept on the phone and
shown offline, marked as saved; the plan's day limit is shown.
- Tests: test_table_history.py (4), waiter e2e +2.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -769,5 +769,15 @@
|
||||
"tables_other": "Tables: {{tables}}",
|
||||
"more_one": "+{{count}} more message",
|
||||
"more_other": "+{{count}} more messages"
|
||||
},
|
||||
"history": {
|
||||
"tab": "History",
|
||||
"earlier": "This table's earlier orders",
|
||||
"failed": "Couldn't load the history",
|
||||
"cached": "Saved on this phone at {{time}} (offline)",
|
||||
"none": "No earlier orders",
|
||||
"cancelled": "CANCELLED",
|
||||
"limit_one": "Your plan shows the last {{count}} day",
|
||||
"limit_other": "Your plan shows the last {{count}} days"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user