feat(backend): the menu tablet's menu (platform-v2 step 5.7a)

GET /api/menu-tablet/menu for a paired menu tablet: categories in the
catalogue's order (sub-categories after their parent, one category and its
sub-categories when the tablet is set so), each with its products in its own
order (a product in several categories shows in each), the products once with
name, description, tags, photo, the price of the tablet's sales point (or none)
and availability; sold-out hidden when set; the venue's name and the tablet's
settings. Device config: view, photos, descriptions, group, theme, prices of,
sold out, category, search, languages, idle reset (texts in both languages).
Menu changes send menu_tablet.changed to every tablet (main.py, with signage).
tests: test_menu_tablet.py (4); 531 passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 23:44:42 +02:00
co-authored by Claude Opus 5.5
parent 6c982e3139
commit 2a6640fe5c
6 changed files with 397 additions and 6 deletions
+84 -1
View File
@@ -272,12 +272,95 @@
},
"menu_tablet": {
"name": "Tablet μενού",
"description": "Κατάλογος αυτοεξυπηρέτησης σε tablet (έρχεται σύντομα).",
"description": "Το μενού του καταστήματος σε tablet: γρήγορος έλεγχος τιμών για το προσωπικό και μενού για τους πελάτες.",
"limits": {
"devices": "Tablet μενού"
},
"permissions": {
"manage": "Ρύθμιση των tablet μενού"
},
"config_groups": {
"look": "Εμφάνιση",
"menu": "Μενού",
"use": "Χρήση"
},
"config": {
"view": {
"label": "Προβολή",
"hint": "Συμπαγής: πυκνή λίστα. Αναλυτική: με μικρή φωτογραφία και περιγραφή. Πλήρης: μεγάλες κάρτες.",
"choices": {
"compact": "Συμπαγής",
"expanded": "Αναλυτική",
"full": "Πλήρης"
}
},
"photos": {
"label": "Φωτογραφίες"
},
"descriptions": {
"label": "Περιγραφές"
},
"group": {
"label": "Ομαδοποίηση ανά κατηγορία",
"hint": "Όχι: μία λίστα με όλα τα προϊόντα (αλφαβητικά)."
},
"theme": {
"label": "Χρώματα",
"choices": {
"light": "Ανοιχτά",
"dark": "Σκούρα"
}
},
"sales_point": {
"label": "Τιμές για",
"hint": "Ποιες τιμές δείχνει.",
"choices": {
"in_store": "Στο κατάστημα",
"in_store_takeaway": "Πακέτο στο ταμείο",
"qr_table": "QR μενού στο τραπέζι",
"online_takeaway": "Online, παραλαβή",
"online_delivery": "Online, διανομή",
"online_preorder": "Online, με κράτηση",
"none": "Χωρίς τιμές"
}
},
"sold_out": {
"label": "Εξαντλημένα",
"choices": {
"strike": "Διαγραμμένα",
"hide": "Κρυμμένα"
}
},
"category": {
"label": "Μόνο αυτή η κατηγορία",
"hint": "Με τις υποκατηγορίες της.",
"none": "Όλο το μενού"
},
"search": {
"label": "Αναζήτηση",
"hint": "Πεδίο αναζήτησης (βολικό για γρήγορο έλεγχο τιμής)."
},
"languages": {
"label": "Γλώσσες",
"hint": "Τα κείμενα του tablet· τα ονόματα των προϊόντων είναι όπως στο μενού.",
"choices": {
"both": "Ελληνικά και Αγγλικά (διαλέγει ο πελάτης)",
"el": "Ελληνικά",
"en": "Αγγλικά"
}
},
"idle_seconds": {
"label": "Επιστροφή στην αρχή μετά από",
"hint": "Δευτερόλεπτα χωρίς άγγιγμα.",
"choices": {
"0": "Ποτέ",
"30": "30 δ",
"60": "1 λεπτό",
"120": "2 λεπτά",
"300": "5 λεπτά",
"600": "10 λεπτά"
}
}
}
},
"notes": {