- Management/ProductsTab + ProductFormModal (3.1k lines) → src/pages/products/: category tree, list/grid, toolbar + filters (search folds accents and Latin letters), bulk actions, category dialogs; the editor in editor/ (details, sold at, cost, fiscal; the waiter's choices). Arithmetic in productsLogic.js / editor/formLogic.js (tests/products.test.mjs). - Several categories per product with a main one (D-23): edited in the editor, "also in" on the rows, each category's list ordered on its own (drag or up/down → PUT /reorder with category_id); bulk "move to" / "also list in". The waiter's picker now shows a product in every category. - Allergens: products.allergens (Alembic 0032, core/allergens.py: 14 EU, contains | may_contain, catalog.allergen), in the API, POS menu, menu tablet, catalogue bundles and the cloud snapshot (C-2); @xenia/access allergens.js + <Allergens> shown on the phone, the counter, the tablet. - Bell: only the newest load sets the list (an older answer could hide a live notification). - e2e: manager (two categories, order per category, allergens), terminal / menu tablet / waiter (allergens shown); media saves by test id. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
601 B
JSON
25 lines
601 B
JSON
{
|
|
"name": "@xenia/access",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "Bootstrap provider, module/permission hooks and guards, and the manager-approval dialog (plan step 2.5).",
|
|
"main": "src/index.js",
|
|
"exports": {
|
|
".": "./src/index.js",
|
|
"./salesPoints": "./src/salesPoints.js",
|
|
"./allergens": "./src/allergens.js"
|
|
},
|
|
"dependencies": {
|
|
"@xenia/api": "^0.0.0",
|
|
"@xenia/i18n": "^0.0.0",
|
|
"@xenia/ui": "^0.0.0"
|
|
},
|
|
"scripts": {
|
|
"test": "node --test \"tests/*.test.mjs\""
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^19.0.0"
|
|
}
|
|
}
|