feat: call a waiter from a menu tablet at a table (platform-v2 step 5.7b)
- backend: menu tablet device config `table` (ref, validated against active
tables) and `call_waiter`; GET /api/menu-tablet/menu gives the table and
whether it can call; POST /api/menu-tablet/call sends a `table_call` staff
message ("Table 5: the guests call a waiter.", venue language) to the table's
waiters (its open order's, else the zone's), at most once a minute per tablet
(menu_tablet.call_too_soon with the seconds left; menu_tablet.no_table).
- terminal: "Call a waiter" only on a tablet at a table; "A waiter is on the
way to table 5", then a countdown before it can call again; a failed call
says to ask at the counter.
- waiter: the call shows with its own look and "Open the table".
- manager: tables as the choices of a device setting.
- tests: backend +2 (535 → 533 passed total), e2e menu_tablet.mjs +3.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -149,5 +149,9 @@
|
||||
"order_mismatch": "Η λίστα άλλαξε στο μεταξύ. Φορτώστε τη ξανά και δοκιμάστε πάλι.",
|
||||
"weather_offline": "Η υπηρεσία καιρού δεν είναι διαθέσιμη: ο διακομιστής του καταστήματος χρειάζεται internet γι' αυτήν.",
|
||||
"schedule_unknown": "Το πρόγραμμα {{schedule_id}} δεν βρέθηκε."
|
||||
},
|
||||
"menu_tablet": {
|
||||
"no_table": "Αυτό το tablet δεν είναι σε τραπέζι, οπότε δεν καλεί σερβιτόρο.",
|
||||
"call_too_soon": "Μόλις κλήθηκε σερβιτόρος. Δοκιμάστε ξανά σε {{seconds}} δευτερόλεπτα."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -282,7 +282,8 @@
|
||||
"config_groups": {
|
||||
"look": "Εμφάνιση",
|
||||
"menu": "Μενού",
|
||||
"use": "Χρήση"
|
||||
"use": "Χρήση",
|
||||
"table": "Σε τραπέζι"
|
||||
},
|
||||
"config": {
|
||||
"view": {
|
||||
@@ -360,6 +361,15 @@
|
||||
"300": "5 λεπτά",
|
||||
"600": "10 λεπτά"
|
||||
}
|
||||
},
|
||||
"table": {
|
||||
"label": "Τραπέζι",
|
||||
"hint": "Το τραπέζι όπου βρίσκεται το tablet. Μόνο τότε οι πελάτες καλούν σερβιτόρο.",
|
||||
"none": "Όχι σε τραπέζι"
|
||||
},
|
||||
"call_waiter": {
|
||||
"label": "Οι πελάτες καλούν σερβιτόρο",
|
||||
"hint": "Κουμπί που στέλνει μήνυμα στους σερβιτόρους του τραπεζιού (το πολύ μία φορά το λεπτό)."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -503,6 +503,10 @@
|
||||
"noResults": "Δεν βρέθηκε τίποτα για «{{q}}».",
|
||||
"empty": "Το μενού είναι άδειο.",
|
||||
"soldOut": "Εξαντλήθηκε",
|
||||
"close": "Κλείσιμο"
|
||||
"close": "Κλείσιμο",
|
||||
"call": "Κλήση σερβιτόρου",
|
||||
"called": "Ένας σερβιτόρος έρχεται στο τραπέζι {{table}}.",
|
||||
"callAgainIn": "Ξανά σε {{seconds}} δ",
|
||||
"callFailed": "Η κλήση δεν έφτασε: παρακαλούμε ρωτήστε στο ταμείο."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -149,5 +149,9 @@
|
||||
"order_mismatch": "The playlist changed in the meantime. Reload it and try again.",
|
||||
"weather_offline": "The weather service can't be reached: the venue's server needs internet for it.",
|
||||
"schedule_unknown": "Schedule {{schedule_id}} not found."
|
||||
},
|
||||
"menu_tablet": {
|
||||
"no_table": "This tablet isn't at a table, so it can't call a waiter.",
|
||||
"call_too_soon": "A waiter was just called. Try again in {{seconds}} seconds."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -282,7 +282,8 @@
|
||||
"config_groups": {
|
||||
"look": "Look",
|
||||
"menu": "Menu",
|
||||
"use": "Use"
|
||||
"use": "Use",
|
||||
"table": "At a table"
|
||||
},
|
||||
"config": {
|
||||
"view": {
|
||||
@@ -360,6 +361,15 @@
|
||||
"300": "5 min",
|
||||
"600": "10 min"
|
||||
}
|
||||
},
|
||||
"table": {
|
||||
"label": "Table",
|
||||
"hint": "The table this tablet sits on. Only then guests can call a waiter.",
|
||||
"none": "Not at a table"
|
||||
},
|
||||
"call_waiter": {
|
||||
"label": "Guests can call a waiter",
|
||||
"hint": "A button that sends a message to the table's waiters (once a minute at most)."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -503,6 +503,10 @@
|
||||
"noResults": "Nothing found for \"{{q}}\".",
|
||||
"empty": "The menu is empty.",
|
||||
"soldOut": "Sold out",
|
||||
"close": "Close"
|
||||
"close": "Close",
|
||||
"call": "Call a waiter",
|
||||
"called": "A waiter is on the way to table {{table}}.",
|
||||
"callAgainIn": "Again in {{seconds}} s",
|
||||
"callFailed": "The call didn't go through: please ask at the counter."
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user