feat(menu-app): the QR menu on the customer apps' look, two languages, allergens (platform-v2 step 6.5)
- connect_frontend/menu-app rebuilt like the order app: the same tokens (index.css, tailwind.config.js), texts in i18n.js (en, el; the old 'ot_lang' choice carries over), pure logic in src/logic.js with tests (menuFor in the guest's language, QR prices, search in either language, cart, order body, refusals). MenuPage (menu, search, dish sheet, cart, checkout at the table) and ConfirmPage; App.jsx, components/primitives and OrderConfirm removed; react-hot-toast dropped. - Allergens on every dish (contains on the card; contains / may contain on the dish sheet) and in the order app's cards too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -6,14 +6,14 @@
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview"
|
||||
"preview": "vite preview",
|
||||
"test": "node --test \"tests/*.test.mjs\""
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^1.7.9",
|
||||
"lucide-react": "^1.14.0",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
"react-hot-toast": "^2.4.1",
|
||||
"react-router-dom": "^6.28.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
Reference in New Issue
Block a user