feat(manager): products and categories on v2, a product in several categories, allergens (platform-v2 step 6.3)
- 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>
This commit is contained in:
@@ -76,5 +76,27 @@
|
||||
"name": "Online, with a reservation",
|
||||
"hint": "Reserved online, food ready on arrival"
|
||||
}
|
||||
},
|
||||
"allergens": {
|
||||
"title": "Allergens",
|
||||
"none": "No allergens declared",
|
||||
"level": {
|
||||
"contains": "Contains",
|
||||
"may_contain": "May contain"
|
||||
},
|
||||
"gluten": "Gluten",
|
||||
"crustaceans": "Crustaceans",
|
||||
"eggs": "Eggs",
|
||||
"fish": "Fish",
|
||||
"peanuts": "Peanuts",
|
||||
"soybeans": "Soya",
|
||||
"milk": "Milk",
|
||||
"nuts": "Nuts",
|
||||
"celery": "Celery",
|
||||
"mustard": "Mustard",
|
||||
"sesame": "Sesame",
|
||||
"sulphites": "Sulphites",
|
||||
"lupin": "Lupin",
|
||||
"molluscs": "Molluscs"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -115,7 +115,8 @@
|
||||
"nest_has_children": "A category with sub-categories can't go under another one.",
|
||||
"too_deep": "Categories go at most two levels deep.",
|
||||
"own_parent": "A category can't be its own parent.",
|
||||
"group_not_found": "Option group not found."
|
||||
"group_not_found": "Option group not found.",
|
||||
"allergen": "Unknown allergen or level: {{allergen}}."
|
||||
},
|
||||
"system": {
|
||||
"log_not_found": "There is no log file for {{date}}."
|
||||
|
||||
@@ -1523,5 +1523,285 @@
|
||||
"forceClose": "Force the close",
|
||||
"closeNow": "Close the day"
|
||||
}
|
||||
},
|
||||
"products": {
|
||||
"title": "Products",
|
||||
"categories": "Categories",
|
||||
"searchCategories": "Search categories…",
|
||||
"clear": "Clear",
|
||||
"service": "Service",
|
||||
"all": "All products",
|
||||
"allOf": "All",
|
||||
"uncategorized": "Without a category",
|
||||
"archived": "Archived",
|
||||
"archivedBadge": "Archive",
|
||||
"search": "Search… (Latin letters find Greek names too)",
|
||||
"filters": "Filters",
|
||||
"view": "View",
|
||||
"view_list": "List",
|
||||
"view_grid": "Grid",
|
||||
"new": "New product",
|
||||
"price": "Price",
|
||||
"from": "from",
|
||||
"to": "to",
|
||||
"quality": "Missing data",
|
||||
"qualityOf": {
|
||||
"all": "All",
|
||||
"no-photo": "No photo",
|
||||
"no-cat": "No category"
|
||||
},
|
||||
"show": "Show",
|
||||
"unavailableOnly": "Unavailable only",
|
||||
"withArchived": "Archived too",
|
||||
"clearFilters": "Clear filters",
|
||||
"clearSelection": "Clear the selection",
|
||||
"selected_one": "{{count}} selected",
|
||||
"selected_other": "{{count}} selected",
|
||||
"selectAll": "Select all",
|
||||
"select": "Select {{name}}",
|
||||
"totals": "{{active}} active · {{categories}} categories · {{archived}} archived",
|
||||
"none": "No products found",
|
||||
"noneHint": "Try other filters or add a product.",
|
||||
"makeAvailable": "Available",
|
||||
"makeUnavailable": "Unavailable",
|
||||
"archive": "Archive",
|
||||
"delete": "Delete for good",
|
||||
"prepZone": "Prep zones",
|
||||
"toCategory": "Category",
|
||||
"updated_one": "{{count}} product updated",
|
||||
"updated_other": "{{count}} products updated",
|
||||
"available": "Available",
|
||||
"unavailable": "Unavailable",
|
||||
"edit": "Edit",
|
||||
"moveUp": "Move up",
|
||||
"moveDown": "Move down",
|
||||
"main": "main",
|
||||
"mainHere": "Its main category",
|
||||
"alsoIn": "also in {{name}}",
|
||||
"hasAllergens": "Allergens declared",
|
||||
"allergenCount_one": "{{count}} allergen",
|
||||
"allergenCount_other": "{{count}} allergens",
|
||||
"costOverPrice": "Cost above price",
|
||||
"margin": "{{pct}} margin",
|
||||
"cancel": "Cancel",
|
||||
"save": "Save",
|
||||
"saved": "Saved",
|
||||
"apply": "Apply",
|
||||
"copyOf": "{{name}} (copy)",
|
||||
"unit": {
|
||||
"piece": "Piece",
|
||||
"portion": "Portion",
|
||||
"kg": "Kilo (kg)",
|
||||
"liter": "Litre (L)",
|
||||
"gram": "Gram (g)",
|
||||
"ml": "Millilitre (mL)"
|
||||
},
|
||||
"category": {
|
||||
"new": "New category",
|
||||
"newSub": "New sub-category",
|
||||
"edit": "Edit category",
|
||||
"editSub": "Edit sub-category",
|
||||
"delete": "Delete category",
|
||||
"under": "Under {{name}}",
|
||||
"name": "Name",
|
||||
"colour": "Colour",
|
||||
"saved": "Category saved",
|
||||
"moveTitle": "Move category",
|
||||
"moving": "Category: {{name}}",
|
||||
"newPlace": "New place",
|
||||
"topLevel": "Top level (on its own)",
|
||||
"move": "Move",
|
||||
"moved": "The category moved"
|
||||
},
|
||||
"confirm": {
|
||||
"category": "Delete the category \"{{name}}\"?",
|
||||
"archive": "Archive \"{{name}}\"?",
|
||||
"delete": "Delete \"{{name}}\" for good?",
|
||||
"bulkArchive_one": "Archive {{count}} product?",
|
||||
"bulkArchive_other": "Archive {{count}} products?"
|
||||
},
|
||||
"confirmBody": {
|
||||
"category": "Its products stay; those that were only in it end up without a category.",
|
||||
"archive": "It leaves the menus and is kept for the order history. You can bring it back from the archive.",
|
||||
"delete": "It is gone for good. A product that was ever ordered can only be archived.",
|
||||
"bulkArchive": "They leave the menus and are kept for the order history."
|
||||
},
|
||||
"confirmButton": {
|
||||
"category": "Delete",
|
||||
"archive": "Archive",
|
||||
"delete": "Delete",
|
||||
"bulkArchive": "Archive"
|
||||
},
|
||||
"done": {
|
||||
"category": "Category deleted",
|
||||
"archive": "Archived",
|
||||
"delete": "Deleted",
|
||||
"bulkArchive": "Archived"
|
||||
},
|
||||
"bulkZones": {
|
||||
"title": "Prep zones",
|
||||
"body_one": "For {{count}} product.",
|
||||
"body_other": "For {{count}} products.",
|
||||
"done_one": "Prep zones set for {{count}} product",
|
||||
"done_other": "Prep zones set for {{count}} products"
|
||||
},
|
||||
"bulkCategory": {
|
||||
"title": "Category",
|
||||
"body_one": "For {{count}} product.",
|
||||
"body_other": "For {{count}} products.",
|
||||
"move": "Move to",
|
||||
"moveHint": "It becomes their only category (and their main one).",
|
||||
"add": "Also list in",
|
||||
"addHint": "Added to the categories they have; their main one stays.",
|
||||
"which": "Choose a category…",
|
||||
"done_one": "{{count}} product updated",
|
||||
"done_other": "{{count}} products updated"
|
||||
},
|
||||
"editor": {
|
||||
"newTitle": "New product",
|
||||
"editTitle": "Edit: {{name}}",
|
||||
"copy": "Copy",
|
||||
"create": "Create",
|
||||
"left": {
|
||||
"info": "Details",
|
||||
"soldAt": "Where it's sold",
|
||||
"cost": "Cost",
|
||||
"fiscal": "Fiscal"
|
||||
},
|
||||
"serviceItem": "Service item",
|
||||
"serviceHint": "Cutlery, glasses, a cover charge: printed in its own SERVICE section.",
|
||||
"servicePaid": "Printed in its own SERVICE section and counted in the takings.",
|
||||
"serviceFree": "Printed once: not kept on the order, not counted in the takings.",
|
||||
"name": "Name",
|
||||
"namePlaceholder": "e.g. Espresso",
|
||||
"servicePlaceholder": "e.g. Cutlery",
|
||||
"description": "Description (optional)",
|
||||
"descriptionHint": "For the menus and to tell the waiters.",
|
||||
"tags": "Tags (optional)",
|
||||
"tagsHint": "Enter or a comma adds a tag.",
|
||||
"tagsPlaceholder": "e.g. vegan, spicy",
|
||||
"removeTag": "Remove {{tag}}",
|
||||
"unit": "Unit",
|
||||
"unitWeighed": "The waiters type the quantity as a decimal (e.g. 0,35).",
|
||||
"price": "Price",
|
||||
"priceOptional": "Price (optional)",
|
||||
"less": "Less",
|
||||
"more": "More",
|
||||
"categories": "Categories",
|
||||
"categoriesTip": "A product can be listed in several categories (a freddo under Coffees and Breakfast); it shows in each and each list has its own order. The main one decides where it prints on tickets and how reports group it.",
|
||||
"noCategory": "Not in any category yet.",
|
||||
"main": "Main",
|
||||
"makeMain": "Make it the main category",
|
||||
"removeCategory": "Remove from this category",
|
||||
"addCategory": "Add a category…",
|
||||
"prepZones": "Prep zones",
|
||||
"prepZonesTip": "Where it's made: its tickets print at these zones' printers and show on their kitchen screens.",
|
||||
"noZones": "No prep zones yet.",
|
||||
"makeZone": "Create one",
|
||||
"allergensTip": "The 14 allergens EU law (Reg. 1169/2011) asks a venue to declare. \"May contain\" is for traces, e.g. made in the same kitchen. They show on the waiters' phones, the counter, the menu tablets and the online menus.",
|
||||
"allergensHint": "Tap once: contains · twice: may contain · again: none.",
|
||||
"allergenNone": "not declared",
|
||||
"traces": "traces",
|
||||
"available": "Available",
|
||||
"availableHint": "Off: it can't be ordered now (sold out); it stays on the menus.",
|
||||
"quickAdd": "Quick add",
|
||||
"quickAddHint": "The waiters add one with a tap, without the choices screen.",
|
||||
"soldAt": "Where it's sold",
|
||||
"soldAtHint": "Where it isn't ticked, it isn't shown and orders with it are refused.",
|
||||
"pricePerPoint": "A different price per sales point (e.g. cheaper to take away): Pricing → Modifiers, with the condition \"Order channel\".",
|
||||
"online": "QR menu and online",
|
||||
"orderableNow": "Can be ordered now",
|
||||
"orderableNowHint": "Off: the customer apps show it as sold out.",
|
||||
"forCustomers": "What customers see",
|
||||
"forCustomersHint": "Leave empty to use the product's own.",
|
||||
"customerName": "Name",
|
||||
"customerDescription": "Description",
|
||||
"customerImage": "Picture address",
|
||||
"costHint": "The cost is copied onto every order, for the profit in the reports.",
|
||||
"costMode": "How the cost is entered",
|
||||
"cost": {
|
||||
"simple": "One amount",
|
||||
"detailed": "Itemised"
|
||||
},
|
||||
"costPerUnit": "Cost per unit",
|
||||
"costLinePlaceholder": "e.g. Milk",
|
||||
"addCostLine": "Cost line",
|
||||
"costTotal": "Total {{total}}",
|
||||
"fiscalHint": "Used when receipts are sent to the fiscal device by themselves.",
|
||||
"fiscalName": "Name on the receipt (optional)",
|
||||
"fiscalNameHint": "A short name for the receipt; empty: the product's name.",
|
||||
"vatGroup": "VAT group",
|
||||
"vatGroupNeeded": "Needed to take payments while fiscal receipts are on.",
|
||||
"noVatGroups": "No VAT groups yet: Settings → Fiscal.",
|
||||
"noVatGroup": "Not assigned",
|
||||
"tab": {
|
||||
"favourites": "Favourites",
|
||||
"quick": "Quick",
|
||||
"ingredients": "Ingredients",
|
||||
"options": "Extras"
|
||||
},
|
||||
"prefN": "Pref. {{n}}",
|
||||
"addPref": "Preference",
|
||||
"addPrefGroup": "Group",
|
||||
"newGroup": "New group",
|
||||
"favouritesHint": "Favourites show first to the waiter, in this order. Tap a heart in the other tabs to add one.",
|
||||
"noFavourites": "No favourites.",
|
||||
"unnamed": "(no name)",
|
||||
"kind": {
|
||||
"quick": "Quick",
|
||||
"ingredient": "Ingredient",
|
||||
"option": "Extra",
|
||||
"pref": "Preference"
|
||||
},
|
||||
"remove": "Remove",
|
||||
"favourite": "Make it a favourite",
|
||||
"unfavourite": "Remove from favourites",
|
||||
"default": "Chosen by default",
|
||||
"extraCost": "Price",
|
||||
"multiple": "Several",
|
||||
"multiSelect": "Several sub-choices",
|
||||
"compact": "Compact",
|
||||
"group": "Group",
|
||||
"noGroup": "No group",
|
||||
"addGroup": "Group",
|
||||
"emptyGroup": "Nothing in this group: pick it on a row.",
|
||||
"unnamedGroup": "(unnamed group)",
|
||||
"renameGroup": "Rename the group",
|
||||
"removeGroup": "Remove the group (its rows stay)",
|
||||
"quickHint": "One-tap add-ons with a price.",
|
||||
"addQuick": "Quick choice",
|
||||
"noQuick": "No quick choices.",
|
||||
"quickPlaceholder": "e.g. Extra bacon",
|
||||
"ingredientHint": "What the guest can leave out.",
|
||||
"ingredientPlaceholder": "Ingredient",
|
||||
"optionHint": "Ticked add-ons; each can have sub-choices.",
|
||||
"optionPlaceholder": "e.g. Cinnamon",
|
||||
"add": {
|
||||
"ingredient": "Ingredient",
|
||||
"option": "Extra"
|
||||
},
|
||||
"none": {
|
||||
"ingredient": "No ingredients.",
|
||||
"option": "No extras."
|
||||
},
|
||||
"addSubs": "Sub-choices",
|
||||
"addSub": "Sub-choice",
|
||||
"subsOf": "Sub-choices of \"{{name}}\"",
|
||||
"subPlaceholder": "e.g. Caramel",
|
||||
"prefPlaceholder": "e.g. Sugar",
|
||||
"removePref": "Delete",
|
||||
"prefGroups": "Preference groups",
|
||||
"multiChoice": "Several can be chosen",
|
||||
"choiceQuantity": "A quantity per choice",
|
||||
"prefLegend": "● = chosen by default · \"Hides the shared set\" = that choice doesn't offer it",
|
||||
"choicePlaceholder": "e.g. No sugar",
|
||||
"hidesShared": "Hides the shared set",
|
||||
"addChoice": "Choice",
|
||||
"shared": "Shared sub-set",
|
||||
"sharedHint": "Offered with every choice except those that hide it.",
|
||||
"addShared": "Shared sub-set",
|
||||
"sharedName": "Name of the shared sub-set",
|
||||
"sharedPlaceholder": "e.g. Kind of sugar"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user