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:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user