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": "Η αρχική ρύθμιση έχει γίνει: υπάρχει ήδη λογαριασμός διαχειριστή."
|
||||
|
||||
Reference in New Issue
Block a user