feat: staff and the schedule on v2; managers give staff passwords (platform-v2 step 6.11, KI-014)
- staff: PUT /api/waiters/{id}/password (set, change, or take away; 6+ chars)
so the password sign-in mode works for everyone; PUT /{id}/pin with the PIN in
the body (was in the address: reset-pin?pin= removed); PINs 4-6 digits when
adding; a password can be given when adding; has_password on staff; editing
clears emptied fields and keeps usernames unique; delete only without history
(orders, items, shifts) and never yourself
- schedule: times checked (schedule.bad_time), one person's overlapping shifts
refused (schedule.overlap, past midnight understood), everyone active can be
scheduled (the kitchen too), changes need core.staff.manage
- manager: src/pages/staff (list with search and filters, person dialog with
photo, PIN / password dialog, zones) and src/pages/schedule (by person, by
hour with opening hours, shift dialog with clash check, view settings kept in
the browser); the never-used "automatic start/close" switches dropped; v1
StaffTab and SchedulePage removed; ApprovalsPage loads with useLiveQuery
- tests: test_staff_v2.py (done-when on a paired screen), staff.test.mjs, e2e
manager.mjs (add, password, sign-in on a paired till, a shift and a clash)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -297,10 +297,17 @@
|
||||
"role_invalid": "Δεν υπάρχει ρόλος {{role}}.",
|
||||
"avatar_type": "Η φωτογραφία πρέπει να είναι αρχείο εικόνας.",
|
||||
"assignment_exists": "Αυτή η ανάθεση υπάρχει ήδη.",
|
||||
"assignment_not_found": "Η ανάθεση δεν βρέθηκε."
|
||||
"assignment_not_found": "Η ανάθεση δεν βρέθηκε.",
|
||||
"pin_invalid": "Το PIN είναι {{min}} έως {{max}} ψηφία.",
|
||||
"password_own": "Τον δικό σας κωδικό τον αλλάζετε από το προφίλ σας.",
|
||||
"delete_self": "Δεν μπορείτε να διαγράψετε τον εαυτό σας.",
|
||||
"username_needed": "Κάθε άτομο χρειάζεται όνομα χρήστη.",
|
||||
"has_history": "{{name}}: υπάρχουν παραγγελίες ή βάρδιες, οπότε δεν διαγράφεται. Μπλοκάρετέ τον: δεν θα συνδέεται και οι αναφορές κρατούν το όνομά του."
|
||||
},
|
||||
"schedule": {
|
||||
"shift_not_found": "Η προγραμματισμένη βάρδια δεν βρέθηκε."
|
||||
"shift_not_found": "Η προγραμματισμένη βάρδια δεν βρέθηκε.",
|
||||
"bad_time": "Οι ώρες γράφονται όπως 09:30.",
|
||||
"overlap": "{{name}}: υπάρχει ήδη βάρδια {{start}} έως {{end}} εκείνη τη μέρα."
|
||||
},
|
||||
"setup": {
|
||||
"done": "Η αρχική ρύθμιση έχει γίνει: υπάρχει ήδη λογαριασμός διαχειριστή."
|
||||
|
||||
@@ -2566,5 +2566,154 @@
|
||||
"testHint": "Ακούστε τον σε έναν εκτυπωτή.",
|
||||
"test": "Δοκιμή ήχου"
|
||||
}
|
||||
},
|
||||
"staff": {
|
||||
"title": "Προσωπικό",
|
||||
"new": "Νέο άτομο",
|
||||
"none": "Κανείς δεν ταιριάζει.",
|
||||
"search": "Αναζήτηση με όνομα, όνομα χρήστη ή τηλέφωνο…",
|
||||
"role": "Ρόλος",
|
||||
"allRoles": "Όλοι οι ρόλοι",
|
||||
"status": "Κατάσταση",
|
||||
"anyStatus": "Ενεργοί ή μπλοκαρισμένοι",
|
||||
"active": "Ενεργοί",
|
||||
"blockedState": "Μπλοκαρισμένος",
|
||||
"groups": {
|
||||
"management_one": "{{count}} στη διοίκηση",
|
||||
"management_other": "{{count}} στη διοίκηση",
|
||||
"kitchen_one": "{{count}} σε κουζίνα και μπαρ",
|
||||
"kitchen_other": "{{count}} σε κουζίνα και μπαρ",
|
||||
"service_one": "{{count}} στο σέρβις",
|
||||
"service_other": "{{count}} στο σέρβις",
|
||||
"other_one": "{{count}} άλλος",
|
||||
"other_other": "{{count}} άλλοι"
|
||||
},
|
||||
"pinOnly": "PIN",
|
||||
"pinAndPassword": "PIN + κωδικός",
|
||||
"signInTip": "Πώς μπορεί να συνδεθεί: ο τρόπος σύνδεσης του καταστήματος ορίζει τι ζητείται.",
|
||||
"zones": "Ζώνες",
|
||||
"allZones": "Όλες οι ζώνες",
|
||||
"noZones": "Καμία ζώνη",
|
||||
"edit": "Επεξεργασία {{name}}",
|
||||
"pin": "Νέο PIN για {{name}}",
|
||||
"password": "Κωδικός για {{name}}",
|
||||
"zonesOf": "Ζώνες: {{name}}",
|
||||
"block": "Μπλοκάρισμα {{name}}",
|
||||
"unblock": "Ξεμπλοκάρισμα {{name}}",
|
||||
"delete": "Διαγραφή {{name}}",
|
||||
"blocked": "{{name}}: μπλοκαρίστηκε και αποσυνδέθηκε παντού",
|
||||
"unblocked": "{{name}}: μπορεί ξανά να συνδεθεί",
|
||||
"deleteTitle": "Διαγραφή {{name}};",
|
||||
"deleteBody": "Διαγράφεται μόνο κάποιος χωρίς παραγγελίες ή βάρδιες. Οι υπόλοιποι μπλοκάρονται: δεν συνδέονται και οι αναφορές κρατούν το όνομά τους.",
|
||||
"deleteYes": "Διαγραφή",
|
||||
"blockInstead": "Μπλοκάρισμα αντί γι' αυτό",
|
||||
"deleted": "{{name}}: διαγράφηκε",
|
||||
"back": "Πίσω",
|
||||
"save": "Αποθήκευση",
|
||||
"add": "Προσθήκη",
|
||||
"newTitle": "Νέο άτομο",
|
||||
"added": "{{name}}: προστέθηκε",
|
||||
"saved": "Αποθηκεύτηκε",
|
||||
"photo": "Φωτογραφία",
|
||||
"photoRemove": "Αφαίρεση φωτογραφίας",
|
||||
"photoSaved": "Η φωτογραφία αποθηκεύτηκε",
|
||||
"fullName": "Ονοματεπώνυμο",
|
||||
"fullNameHint": "Εμφανίζεται στις αναφορές.",
|
||||
"nickname": "Όνομα στις εφαρμογές",
|
||||
"nicknameHint": "Αυτό βλέπουν οι συνάδελφοι σε κινητά και οθόνες.",
|
||||
"username": "Όνομα χρήστη",
|
||||
"usernameHint": "Για τη σύνδεση· χωρίς κενά.",
|
||||
"roleHintNew": "Ορίζει τι μπορεί να κάνει· προσαρμόζεται μετά από τα δικαιώματα.",
|
||||
"roleHintEdit": "Η αλλαγή ρόλου δεν αλλάζει τα δικαιώματα: χρησιμοποιήστε το κουμπί δικαιωμάτων.",
|
||||
"pinLabel": "PIN",
|
||||
"pinHint": "4 έως 6 ψηφία, για το πληκτρολόγιο PIN σε κινητά και οθόνες.",
|
||||
"passwordLabel": "Κωδικός",
|
||||
"passwordHintNew": "Προαιρετικά: μόνο αν το κατάστημα συνδέεται με κωδικό. Τουλάχιστον 6 χαρακτήρες.",
|
||||
"passwordHint": "Τουλάχιστον 6 χαρακτήρες.",
|
||||
"phone": "Κινητό",
|
||||
"email": "Email",
|
||||
"rate": "Ωριαία αμοιβή (€)",
|
||||
"rateHint": "Για το κόστος του προγράμματος. Τη βλέπουν μόνο οι διαχειριστές.",
|
||||
"language": "Γλώσσα",
|
||||
"languageHint": "Η γλώσσα των εφαρμογών για αυτό το άτομο.",
|
||||
"venueLanguage": "Η γλώσσα του καταστήματος",
|
||||
"note": "Σημείωση",
|
||||
"noteHint": "Μόνο για τους διαχειριστές.",
|
||||
"wrong": {
|
||||
"full_name": "Γράψτε το ονοματεπώνυμο.",
|
||||
"nickname": "Γράψτε το όνομα που δείχνουν οι εφαρμογές.",
|
||||
"username": "Τουλάχιστον 2 χαρακτήρες, χωρίς κενά.",
|
||||
"hourly_rate": "Ένας αριθμός, όπως 8,50.",
|
||||
"pin": "4 έως 6 ψηφία.",
|
||||
"password": "Τουλάχιστον 6 χαρακτήρες."
|
||||
},
|
||||
"pinTitle": "Νέο PIN για {{name}}",
|
||||
"pinBody": "Συνδέεται με αυτό σε κινητά και οθόνες που ζητούν PIN.",
|
||||
"passwordTitle": "Κωδικός για {{name}}",
|
||||
"passwordBodyNew": "Με κωδικό συνδέεται όπου το κατάστημα ζητά κωδικό (κινητά, οθόνες, διαχείριση).",
|
||||
"passwordBodyChange": "Έχει ήδη κωδικό: αυτός τον αντικαθιστά. Μένει συνδεδεμένος όπου είναι.",
|
||||
"passwordRemove": "Αφαίρεση κωδικού",
|
||||
"again": "Ξανά",
|
||||
"notSame": "Τα δύο δεν ταιριάζουν.",
|
||||
"pinSaved": "Νέο PIN για {{name}}",
|
||||
"passwordSaved": "{{name}}: νέος κωδικός",
|
||||
"passwordRemoved": "{{name}}: σύνδεση μόνο με PIN",
|
||||
"zonesBody": "Το κινητό του και ο χάρτης τραπεζιών δείχνουν μόνο τα τραπέζια αυτών των ζωνών.",
|
||||
"noGroups": "Δεν υπάρχουν ζώνες ακόμα (Διαχείριση → Τραπέζια).",
|
||||
"noZonesWarn": "Χωρίς ζώνη δεν βλέπει κανένα τραπέζι.",
|
||||
"zonesSaved": "Οι ζώνες αποθηκεύτηκαν: {{name}}"
|
||||
},
|
||||
"schedule": {
|
||||
"title": "Πρόγραμμα",
|
||||
"view": "Προβολή",
|
||||
"views": {
|
||||
"people": "Ανά άτομο",
|
||||
"hours": "Ανά ώρα"
|
||||
},
|
||||
"previous": "Προηγούμενη εβδομάδα",
|
||||
"next": "Επόμενη εβδομάδα",
|
||||
"thisWeek": "Αυτή η εβδομάδα",
|
||||
"settings": "Πώς φαίνεται το πρόγραμμα",
|
||||
"hours_one": "{{count}} ώρα",
|
||||
"hours_other": "{{count}} ώρες",
|
||||
"cost": "περίπου {{amount}}",
|
||||
"nobody": "Δεν υπάρχει προσωπικό ακόμα: προσθέστε στο Προσωπικό.",
|
||||
"person": "Άτομο",
|
||||
"addFor": "Νέα βάρδια για {{name}}",
|
||||
"addOn": "Νέα βάρδια {{day}}",
|
||||
"state": {
|
||||
"planned": "Προγραμματισμένη",
|
||||
"working": "Εργάζεται τώρα",
|
||||
"worked": "Έγινε"
|
||||
},
|
||||
"legend": {
|
||||
"planned": "Προγραμματισμένη, δεν ξεκίνησε",
|
||||
"working": "Ξεκίνησε (εργάζεται τώρα)",
|
||||
"worked": "Έγινε"
|
||||
},
|
||||
"newTitle": "Νέα βάρδια",
|
||||
"editTitle": "Βάρδια",
|
||||
"from": "Από",
|
||||
"to": "Έως",
|
||||
"overnight": "τελειώνει την επόμενη μέρα",
|
||||
"clash": "Έχει ήδη βάρδια {{start}}–{{end}} εκείνη τη μέρα.",
|
||||
"note": "Σημείωση",
|
||||
"notePh": "π.χ. μόνο βράδυ",
|
||||
"add": "Προσθήκη",
|
||||
"save": "Αποθήκευση",
|
||||
"back": "Πίσω",
|
||||
"delete": "Διαγραφή",
|
||||
"added": "Η βάρδια προστέθηκε",
|
||||
"saved": "Η βάρδια αποθηκεύτηκε",
|
||||
"deleted": "Η βάρδια διαγράφηκε",
|
||||
"settingsHint": "Μόνο σε αυτόν τον υπολογιστή· το πρόγραμμα μένει ίδιο για όλους.",
|
||||
"firstDay": "Η εβδομάδα ξεκινά",
|
||||
"monday": "Δευτέρα",
|
||||
"sunday": "Κυριακή",
|
||||
"firstHour": "Ο άξονας ξεκινά στις",
|
||||
"firstHourHint": "Για την προβολή «Ανά ώρα».",
|
||||
"opens": "Ανοίγει",
|
||||
"closes": "Κλείνει",
|
||||
"openingHint": "Σκιασμένα στον άξονα."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -297,10 +297,17 @@
|
||||
"role_invalid": "There is no role {{role}}.",
|
||||
"avatar_type": "The photo must be a picture file.",
|
||||
"assignment_exists": "That assignment already exists.",
|
||||
"assignment_not_found": "Assignment not found."
|
||||
"assignment_not_found": "Assignment not found.",
|
||||
"pin_invalid": "A PIN is {{min}} to {{max}} digits.",
|
||||
"password_own": "Change your own password from your profile.",
|
||||
"delete_self": "You can't delete yourself.",
|
||||
"username_needed": "Every person needs a username.",
|
||||
"has_history": "{{name}} has orders or shifts on record, so they can't be deleted. Block them instead: they can't sign in, and the reports keep their name."
|
||||
},
|
||||
"schedule": {
|
||||
"shift_not_found": "Scheduled shift not found."
|
||||
"shift_not_found": "Scheduled shift not found.",
|
||||
"bad_time": "Times are written like 09:30.",
|
||||
"overlap": "{{name}} already has a shift from {{start}} to {{end}} that day."
|
||||
},
|
||||
"setup": {
|
||||
"done": "Setup is already done: a manager account exists."
|
||||
|
||||
@@ -2566,5 +2566,154 @@
|
||||
"testHint": "Hear it on a printer.",
|
||||
"test": "Test the beep"
|
||||
}
|
||||
},
|
||||
"staff": {
|
||||
"title": "Staff",
|
||||
"new": "Add a person",
|
||||
"none": "Nobody matches.",
|
||||
"search": "Search by name, username or phone…",
|
||||
"role": "Role",
|
||||
"allRoles": "All roles",
|
||||
"status": "Status",
|
||||
"anyStatus": "Active or blocked",
|
||||
"active": "Active",
|
||||
"blockedState": "Blocked",
|
||||
"groups": {
|
||||
"management_one": "{{count}} in management",
|
||||
"management_other": "{{count}} in management",
|
||||
"kitchen_one": "{{count}} in the kitchen and bar",
|
||||
"kitchen_other": "{{count}} in the kitchen and bar",
|
||||
"service_one": "{{count}} serving",
|
||||
"service_other": "{{count}} serving",
|
||||
"other_one": "{{count}} other",
|
||||
"other_other": "{{count}} others"
|
||||
},
|
||||
"pinOnly": "PIN",
|
||||
"pinAndPassword": "PIN + password",
|
||||
"signInTip": "How they can sign in: the venue's sign-in mode decides which one is asked.",
|
||||
"zones": "Zones",
|
||||
"allZones": "All zones",
|
||||
"noZones": "No zone",
|
||||
"edit": "Edit {{name}}",
|
||||
"pin": "New PIN for {{name}}",
|
||||
"password": "Password for {{name}}",
|
||||
"zonesOf": "Zones of {{name}}",
|
||||
"block": "Block {{name}}",
|
||||
"unblock": "Unblock {{name}}",
|
||||
"delete": "Delete {{name}}",
|
||||
"blocked": "{{name}} is blocked: signed out everywhere",
|
||||
"unblocked": "{{name}} can sign in again",
|
||||
"deleteTitle": "Delete {{name}}?",
|
||||
"deleteBody": "Only someone with no orders or shifts can be deleted. Anyone else is blocked instead: they can't sign in, and the reports keep their name.",
|
||||
"deleteYes": "Delete",
|
||||
"blockInstead": "Block instead",
|
||||
"deleted": "{{name}} deleted",
|
||||
"back": "Back",
|
||||
"save": "Save",
|
||||
"add": "Add",
|
||||
"newTitle": "Add a person",
|
||||
"added": "{{name}} added",
|
||||
"saved": "Saved",
|
||||
"photo": "Photo",
|
||||
"photoRemove": "Remove the photo",
|
||||
"photoSaved": "Photo saved",
|
||||
"fullName": "Full name",
|
||||
"fullNameHint": "Shown in reports.",
|
||||
"nickname": "Name in the apps",
|
||||
"nicknameHint": "What colleagues see on the phones and screens.",
|
||||
"username": "Username",
|
||||
"usernameHint": "For signing in; no spaces.",
|
||||
"roleHintNew": "Sets what they may do; adjust it later with the permissions.",
|
||||
"roleHintEdit": "Changing the role doesn't change their permissions: use the permissions button.",
|
||||
"pinLabel": "PIN",
|
||||
"pinHint": "4 to 6 digits, for the PIN pad on phones and screens.",
|
||||
"passwordLabel": "Password",
|
||||
"passwordHintNew": "Optional: only needed if the venue signs in by password. At least 6 characters.",
|
||||
"passwordHint": "At least 6 characters.",
|
||||
"phone": "Mobile",
|
||||
"email": "Email",
|
||||
"rate": "Hourly pay (€)",
|
||||
"rateHint": "For the schedule's costs. Only managers see it.",
|
||||
"language": "Language",
|
||||
"languageHint": "The apps' language for them.",
|
||||
"venueLanguage": "The venue's language",
|
||||
"note": "Note",
|
||||
"noteHint": "For the managers only.",
|
||||
"wrong": {
|
||||
"full_name": "Write their full name.",
|
||||
"nickname": "Write the name the apps show.",
|
||||
"username": "At least 2 characters, no spaces.",
|
||||
"hourly_rate": "A number, like 8,50.",
|
||||
"pin": "4 to 6 digits.",
|
||||
"password": "At least 6 characters."
|
||||
},
|
||||
"pinTitle": "New PIN for {{name}}",
|
||||
"pinBody": "They sign in with it on the phones and screens that ask for a PIN.",
|
||||
"passwordTitle": "Password for {{name}}",
|
||||
"passwordBodyNew": "With a password they can sign in where the venue asks for one (phones, screens, the manager).",
|
||||
"passwordBodyChange": "They already have a password: this replaces it. They stay signed in where they are.",
|
||||
"passwordRemove": "Remove the password",
|
||||
"again": "Again",
|
||||
"notSame": "The two don't match.",
|
||||
"pinSaved": "New PIN for {{name}}",
|
||||
"passwordSaved": "{{name}} has a new password",
|
||||
"passwordRemoved": "{{name}} signs in with a PIN only",
|
||||
"zonesBody": "Their phone and the table map only show these zones' tables.",
|
||||
"noGroups": "There are no zones yet (Management → Tables).",
|
||||
"noZonesWarn": "With no zone they see no tables.",
|
||||
"zonesSaved": "Zones of {{name}} saved"
|
||||
},
|
||||
"schedule": {
|
||||
"title": "Schedule",
|
||||
"view": "View",
|
||||
"views": {
|
||||
"people": "By person",
|
||||
"hours": "By hour"
|
||||
},
|
||||
"previous": "Previous week",
|
||||
"next": "Next week",
|
||||
"thisWeek": "This week",
|
||||
"settings": "How the schedule shows",
|
||||
"hours_one": "{{count}} hour",
|
||||
"hours_other": "{{count}} hours",
|
||||
"cost": "about {{amount}}",
|
||||
"nobody": "Nobody to schedule yet: add people in Staff.",
|
||||
"person": "Person",
|
||||
"addFor": "Add a shift for {{name}}",
|
||||
"addOn": "Add a shift on {{day}}",
|
||||
"state": {
|
||||
"planned": "Planned",
|
||||
"working": "Working now",
|
||||
"worked": "Worked"
|
||||
},
|
||||
"legend": {
|
||||
"planned": "Planned, not started",
|
||||
"working": "Started (working now)",
|
||||
"worked": "Worked"
|
||||
},
|
||||
"newTitle": "New shift",
|
||||
"editTitle": "Shift",
|
||||
"from": "From",
|
||||
"to": "To",
|
||||
"overnight": "ends the next day",
|
||||
"clash": "They already have a shift {{start}}–{{end}} that day.",
|
||||
"note": "Note",
|
||||
"notePh": "e.g. evening only",
|
||||
"add": "Add",
|
||||
"save": "Save",
|
||||
"back": "Back",
|
||||
"delete": "Delete",
|
||||
"added": "Shift added",
|
||||
"saved": "Shift saved",
|
||||
"deleted": "Shift deleted",
|
||||
"settingsHint": "Only on this computer; the schedule stays the same for everyone.",
|
||||
"firstDay": "The week starts on",
|
||||
"monday": "Monday",
|
||||
"sunday": "Sunday",
|
||||
"firstHour": "The timeline starts at",
|
||||
"firstHourHint": "For the \"By hour\" view.",
|
||||
"opens": "Opens",
|
||||
"closes": "Closes",
|
||||
"openingHint": "Shaded on the timeline."
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user