feat(terminal): the menu tablet app (platform-v2 step 5.7a)
terminal/src/apps/menu-tablet: the venue's menu for staff (a quick price
check) and guests. Category chips that jump to their section, or one A–Z
list; compact rows, expanded rows (photo, description) or full cards; tap a
product to see it big (photo, price, description, tags); search that ignores
accents and also finds names typed in Latin letters ("souvl"); sold out
marked; the guest's language for the tablet's texts; back to the start (search
cleared, first language, top) after the set time without a touch; light or
dark; the last menu kept for offline; live on menu_tablet.changed /
device.updated. @xenia/i18n exports ./latin for plain-JS use.
tests: logic (3), e2e menu_tablet.mjs (10 checks, in run-all).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -493,5 +493,16 @@
|
||||
"vegetarian": "Χορτοφαγικό",
|
||||
"vegan": "Vegan"
|
||||
}
|
||||
},
|
||||
"menuTablet": {
|
||||
"title": "Μενού",
|
||||
"search": "Αναζήτηση στο μενού…",
|
||||
"clear": "Καθαρισμός",
|
||||
"language": "Γλώσσα",
|
||||
"categories": "Κατηγορίες",
|
||||
"noResults": "Δεν βρέθηκε τίποτα για «{{q}}».",
|
||||
"empty": "Το μενού είναι άδειο.",
|
||||
"soldOut": "Εξαντλήθηκε",
|
||||
"close": "Κλείσιμο"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -493,5 +493,16 @@
|
||||
"vegetarian": "Vegetarian",
|
||||
"vegan": "Vegan"
|
||||
}
|
||||
},
|
||||
"menuTablet": {
|
||||
"title": "Menu",
|
||||
"search": "Search the menu…",
|
||||
"clear": "Clear",
|
||||
"language": "Language",
|
||||
"categories": "Categories",
|
||||
"noResults": "Nothing found for \"{{q}}\".",
|
||||
"empty": "The menu is empty.",
|
||||
"soldOut": "Sold out",
|
||||
"close": "Close"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
"main": "src/index.js",
|
||||
"exports": {
|
||||
".": "./src/index.js",
|
||||
"./sample": "./sample/Sample.jsx"
|
||||
"./sample": "./sample/Sample.jsx",
|
||||
"./latin": "./src/latin.js"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node --test \"tests/*.test.mjs\"",
|
||||
|
||||
Reference in New Issue
Block a user