feat(manager): staff permission editor, signed-in sessions, approvals log (platform-v2 2.6e)
- Staff: the 13 perm_* tick columns become one Permissions column (count, "changed from role") opening an editor grouped by module, from /api/waiters/permission-catalog: switches labelled per key, keys you don't hold are disabled with the reason, reset to role defaults (names what it can't give), save the whole set; access.cannot_grant explained by label. - "Signed in now" (/management/sessions): who, where (app or device), since, last active, your own session marked; end session; show ended + reason. - "Manager approvals" (/management/approvals): the override audit with action label, asked by, approved by, device, used/not used, order link. - Backend: sessions list adds device_name/device_app/current/expires_at; overrides list adds device_name/expires_at. - Permission labels for every key in modules.json (en/el), guarded by test_module_texts; manager unit tests for the editor logic; e2e 66 checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -43,7 +43,9 @@
|
||||
"soon": "soon",
|
||||
"integrations": "Integrations",
|
||||
"license": "License",
|
||||
"devices": "Devices"
|
||||
"devices": "Devices",
|
||||
"sessions": "Signed in now",
|
||||
"approvals": "Manager approvals"
|
||||
},
|
||||
"profile": {
|
||||
"edit": "Edit profile",
|
||||
@@ -187,5 +189,99 @@
|
||||
"removeBody": "It stops at once and shows the pairing screen. To use it again, pair it again.",
|
||||
"changeAppBody": "Whoever is signed in on it is signed out.",
|
||||
"limitReached": "{{label}}: the license allows {{max}}. Remove one or ask for a bigger license."
|
||||
},
|
||||
"roles": {
|
||||
"superadmin": "Superadmin",
|
||||
"owner": "Owner",
|
||||
"store_manager": "Store manager",
|
||||
"staff_manager": "Staff manager",
|
||||
"chef": "Chef",
|
||||
"assistant_chef": "Assistant chef",
|
||||
"barista": "Barista",
|
||||
"barman": "Bartender",
|
||||
"waiter": "Waiter",
|
||||
"assistant_waiter": "Assistant waiter",
|
||||
"custom": "Custom"
|
||||
},
|
||||
"permissions": {
|
||||
"column": "Permissions",
|
||||
"open": "Permissions",
|
||||
"count_one": "{{count}} permission",
|
||||
"count_other": "{{count}} permissions",
|
||||
"all": "All permissions",
|
||||
"custom": "Changed from role",
|
||||
"title": "Permissions: {{name}}",
|
||||
"subtitle": "Role: {{role}}. Changes apply from their next action.",
|
||||
"superadmin": "The superadmin always has every permission. There is nothing to change here.",
|
||||
"moduleOff": "Turned off",
|
||||
"notYours": "You don't have this permission yourself, so you can't give it",
|
||||
"roleHas": "The role has this",
|
||||
"roleHasNot": "Not part of the role",
|
||||
"overridable": "Without this permission, a manager can still allow it once by typing their PIN on the same screen.",
|
||||
"reset": "Reset to role defaults",
|
||||
"resetDone": "Set to the role's defaults. Save to keep it.",
|
||||
"resetSkipped": "Set to the role's defaults, except what you can't give: {{list}}. Save to keep it.",
|
||||
"save": "Save",
|
||||
"saveCount_one": "Save {{count}} change",
|
||||
"saveCount_other": "Save {{count}} changes",
|
||||
"saved": "Permissions of {{name}} saved",
|
||||
"cannotGrant": "You can only give permissions you have yourself: \"{{label}}\"."
|
||||
},
|
||||
"sessions": {
|
||||
"intro": "Everyone signed in right now, and where. Ending a session signs that person out at once; they can sign in again.",
|
||||
"empty": "Nobody is signed in",
|
||||
"columns": {
|
||||
"person": "Person",
|
||||
"where": "Where",
|
||||
"since": "Signed in",
|
||||
"active": "Last active",
|
||||
"ended": "Ended",
|
||||
"actions": ""
|
||||
},
|
||||
"client": {
|
||||
"manager": "Manager dashboard",
|
||||
"waiter": "Waiter app",
|
||||
"terminal": "Device",
|
||||
"support": "Support access",
|
||||
"supportUntil": "Support access, until {{time}}"
|
||||
},
|
||||
"support": "Xenia support",
|
||||
"unknownDevice": "Removed device",
|
||||
"you": "You, here",
|
||||
"end": "End session",
|
||||
"endTitle": "End the session of {{name}}?",
|
||||
"endBody": "They are signed out at once ({{where}}) and have to sign in again.",
|
||||
"ended": "{{name}} was signed out",
|
||||
"showEnded": "Show ended sessions",
|
||||
"reason": {
|
||||
"logout": "signed out",
|
||||
"replaced": "signed in elsewhere",
|
||||
"ended_by_manager": "ended by a manager",
|
||||
"user_blocked": "account blocked",
|
||||
"refreshed": "renewed",
|
||||
"device_revoked": "device removed",
|
||||
"device_reassigned": "device changed app",
|
||||
"expired": "time ran out",
|
||||
"unlock_failed": "wrong PIN on the lock screen"
|
||||
}
|
||||
},
|
||||
"approvals": {
|
||||
"intro": "Every time a manager typed their PIN to allow one action for someone who doesn't have the permission. An approval works once, within a minute.",
|
||||
"empty": "No approvals yet",
|
||||
"emptyBody": "When a waiter needs a manager for an action, e.g. cancelling an item already sent, the manager's approval shows here.",
|
||||
"columns": {
|
||||
"when": "When",
|
||||
"action": "Action",
|
||||
"askedBy": "Asked by",
|
||||
"approvedBy": "Approved by",
|
||||
"where": "Device",
|
||||
"result": "Result"
|
||||
},
|
||||
"state": {
|
||||
"used": "Used",
|
||||
"expired": "Not used",
|
||||
"waiting": "Waiting"
|
||||
},
|
||||
"order": "Order #{{id}}"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user