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:
@@ -45,7 +45,7 @@
|
||||
"devices": "Συσκευές",
|
||||
"sessions": "Συνδεδεμένοι τώρα",
|
||||
"approvals": "Εγκρίσεις υπευθύνου",
|
||||
"deliveryFees": "Χρεώσεις διανομής"
|
||||
"deliveryFees": "Online παραγγελίες (ρύθμιση)"
|
||||
},
|
||||
"profile": {
|
||||
"edit": "Επεξεργασία προφίλ",
|
||||
@@ -509,5 +509,37 @@
|
||||
"minimum_not_met": "Απορρίπτεται: η ελάχιστη παραγγελία είναι {{minimum}}.",
|
||||
"area_not_served": "Απορρίπτεται: δεν γίνεται διανομή σε αυτή τη διεύθυνση."
|
||||
}
|
||||
},
|
||||
"ordering": {
|
||||
"pageTitle": "Online παραγγελίες",
|
||||
"title": "Υπηρεσίες και ωράριο",
|
||||
"intro": "Τι μπορούν να παραγγείλουν οι πελάτες online και πότε. Παραγγελίες γίνονται μόνο για τις ενεργές υπηρεσίες, μέσα στο ωράριο, για ώρα που αφήνει αρκετό χρόνο προετοιμασίας.",
|
||||
"service": {
|
||||
"takeaway": "Παραλαβή",
|
||||
"delivery": "Διανομή"
|
||||
},
|
||||
"serviceHint": {
|
||||
"takeaway": "Οι πελάτες παραγγέλνουν online και παραλαμβάνουν από το κατάστημα.",
|
||||
"delivery": "Οι πελάτες παραγγέλνουν online και εσείς παραδίδετε (περιοχές και χρεώσεις παρακάτω)."
|
||||
},
|
||||
"anyTime": "Οποιαδήποτε ώρα",
|
||||
"anyTimeHint": "Απενεργοποιήστε για ωράριο παραγγελιών ανά ημέρα.",
|
||||
"closedDay": "Κλειστά",
|
||||
"addHours": "Προσθήκη ωραρίου",
|
||||
"prep": "Προετοιμασία (λεπτά)",
|
||||
"prepHint": "Η νωρίτερη ώρα που προσφέρεται είναι τόσο μετά την παραγγελία.",
|
||||
"slot": "Ώρες κάθε",
|
||||
"slotHint": "Ο πελάτης επιλέγει μία από αυτές τις ώρες.",
|
||||
"minutes": "{{n}} λεπτά",
|
||||
"ahead": "Παραγγελία από πριν",
|
||||
"aheadN": {
|
||||
"0": "Μόνο σήμερα",
|
||||
"1": "Έως αύριο",
|
||||
"2": "Έως 2 ημέρες",
|
||||
"3": "Έως 3 ημέρες",
|
||||
"7": "Έως μία εβδομάδα"
|
||||
},
|
||||
"asap": "«Το συντομότερο»",
|
||||
"asapHint": "Όσο είναι ανοιχτά, οι πελάτες μπορούν να παραγγείλουν και για το συντομότερο."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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."
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user