feat: online ordering settings (services, hours, preparation, slots) and the order app e2e (platform-v2 3S, S.4)

- connect_orders.ordering setting; GET/PUT /api/connect/fees/ordering (validated:
  services, hours per day incl. past midnight, preparation, slot minutes, days ahead,
  ASAP); pushed to the cloud with the menu (snapshot `ordering`).
- Manager: the Online ordering page gains "Services and hours" (OrderingSettings.jsx; logic
  in feesLogic.js, unit-tested); nav label "Online ordering".
- tests/e2e/order_app.mjs: a real cloud + the built order app in a phone-sized browser:
  takeaway and delivery placed, priced by the cloud (fee by area, minimum refused), the
  site moves the delivery to delivered and the page follows; a rejection with its reason;
  Greek. In run-all, with the order app's unit tests.
- Tests: backend +1 (406), manager unit +1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 13:39:13 +02:00
co-authored by Claude Opus 5.5
parent df27133af9
commit 8ea44d71aa
12 changed files with 507 additions and 11 deletions
+33 -1
View File
@@ -45,7 +45,7 @@
"devices": "Devices",
"sessions": "Signed in now",
"approvals": "Manager approvals",
"deliveryFees": "Delivery fees"
"deliveryFees": "Online ordering"
},
"profile": {
"edit": "Edit profile",
@@ -509,5 +509,37 @@
"minimum_not_met": "Refused: the minimum order is {{minimum}}.",
"area_not_served": "Refused: no delivery to this address."
}
},
"ordering": {
"pageTitle": "Online ordering",
"title": "Services and hours",
"intro": "What customers can order online and when. Orders are taken only for the services turned on, within the hours, for a time that leaves enough preparation.",
"service": {
"takeaway": "Takeaway",
"delivery": "Delivery"
},
"serviceHint": {
"takeaway": "Customers order online and collect at the venue.",
"delivery": "Customers order online and you deliver (areas and fees below)."
},
"anyTime": "Any time",
"anyTimeHint": "Turn off to set ordering hours for each day.",
"closedDay": "Closed",
"addHours": "Add hours",
"prep": "Preparation (minutes)",
"prepHint": "The earliest time offered is this long after ordering.",
"slot": "Times offered every",
"slotHint": "The customer picks one of these times.",
"minutes": "{{n}} minutes",
"ahead": "Order ahead",
"aheadN": {
"0": "Today only",
"1": "Up to tomorrow",
"2": "Up to 2 days",
"3": "Up to 3 days",
"7": "Up to a week"
},
"asap": "\"As soon as possible\"",
"asapHint": "While open, customers can also order for as soon as possible."
}
}