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": {
+84 -1
View File
@@ -272,12 +272,95 @@
},
"menu_tablet": {
"name": "Menu tablet",
"description": "A self-service catalogue on a tablet (coming soon).",
"description": "The venue's menu on a tablet: a quick price check for staff and a menu for guests.",
"limits": {
"devices": "Menu tablets"
},
"permissions": {
"manage": "Set up menu tablets"
},
"config_groups": {
"look": "Look",
"menu": "Menu",
"use": "Use"
},
"config": {
"view": {
"label": "View",
"hint": "Compact: a dense list. Expanded: with a small photo and the description. Full: big cards.",
"choices": {
"compact": "Compact",
"expanded": "Expanded",
"full": "Full"
}
},
"photos": {
"label": "Photos"
},
"descriptions": {
"label": "Descriptions"
},
"group": {
"label": "Group by category",
"hint": "Off: one list of every product (A to Z)."
},
"theme": {
"label": "Colours",
"choices": {
"light": "Light",
"dark": "Dark"
}
},
"sales_point": {
"label": "Prices of",
"hint": "Whose prices it shows.",
"choices": {
"in_store": "In the shop",
"in_store_takeaway": "Takeaway at the counter",
"qr_table": "QR menu at the table",
"online_takeaway": "Online, takeaway",
"online_delivery": "Online, delivery",
"online_preorder": "Online, with a booking",
"none": "No prices"
}
},
"sold_out": {
"label": "Sold-out products",
"choices": {
"strike": "Crossed out",
"hide": "Hidden"
}
},
"category": {
"label": "Only this category",
"hint": "With its sub-categories.",
"none": "The whole menu"
},
"search": {
"label": "Search",
"hint": "A search box (handy for a quick price check)."
},
"languages": {
"label": "Languages",
"hint": "The tablet's own texts; product names are as in the menu.",
"choices": {
"both": "Greek and English (the guest picks)",
"el": "Greek",
"en": "English"
}
},
"idle_seconds": {
"label": "Back to the start after",
"hint": "Seconds without a touch.",
"choices": {
"0": "Never",
"30": "30 s",
"60": "1 min",
"120": "2 min",
"300": "5 min",
"600": "10 min"
}
}
}
},
"notes": {