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": "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."
|
||||
|
||||
Reference in New Issue
Block a user