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}}"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,35 +1,82 @@
|
||||
{
|
||||
"caller_id": {
|
||||
"name": "Caller ID",
|
||||
"description": "Incoming phone calls from the venue's phone system (Grandstream UCM)."
|
||||
"description": "Incoming phone calls from the venue's phone system (Grandstream UCM).",
|
||||
"permissions": {
|
||||
"use": "See incoming calls"
|
||||
}
|
||||
},
|
||||
"catalog": {
|
||||
"name": "Catalogue",
|
||||
"description": "Products, categories, options, tables and prep zones."
|
||||
"description": "Products, categories, options, tables and prep zones.",
|
||||
"permissions": {
|
||||
"menu": {
|
||||
"manage": "Edit products, categories and prep zones"
|
||||
},
|
||||
"tables": {
|
||||
"manage": "Edit tables and table groups"
|
||||
}
|
||||
}
|
||||
},
|
||||
"chat": {
|
||||
"name": "Staff chat",
|
||||
"description": "Staff chat and manager messages to staff."
|
||||
"description": "Staff chat and manager messages to staff.",
|
||||
"permissions": {
|
||||
"use": "Use staff chat",
|
||||
"broadcast": "Send messages to all staff"
|
||||
}
|
||||
},
|
||||
"connect_menu": {
|
||||
"name": "QR menu",
|
||||
"description": "The online QR menu, kept in sync with the catalogue."
|
||||
"description": "The online QR menu, kept in sync with the catalogue.",
|
||||
"permissions": {
|
||||
"manage": "Manage the QR menu"
|
||||
}
|
||||
},
|
||||
"connect_orders": {
|
||||
"name": "Online orders",
|
||||
"description": "Orders placed from the QR menu, brought in from the cloud."
|
||||
"description": "Orders placed from the QR menu, brought in from the cloud.",
|
||||
"permissions": {
|
||||
"manage": "Accept and manage online orders"
|
||||
}
|
||||
},
|
||||
"connect_remote": {
|
||||
"name": "Remote manager",
|
||||
"description": "Live figures for the owner's remote manager app."
|
||||
"description": "Live figures for the owner's remote manager app.",
|
||||
"permissions": {
|
||||
"manage": "Set up the remote manager app"
|
||||
}
|
||||
},
|
||||
"core": {
|
||||
"name": "Core",
|
||||
"description": "Sign-in, staff, settings, license, system and live updates. Always on."
|
||||
"description": "Sign-in, staff, settings, license, system and live updates. Always on.",
|
||||
"permissions": {
|
||||
"dashboard": {
|
||||
"access": "Open the manager dashboard"
|
||||
},
|
||||
"staff": {
|
||||
"manage": "Add and edit staff, see who is signed in"
|
||||
},
|
||||
"settings": {
|
||||
"manage": "Change venue settings"
|
||||
},
|
||||
"modules": {
|
||||
"manage": "Turn apps, features and integrations on or off"
|
||||
},
|
||||
"devices": {
|
||||
"manage": "Pair, rename, reassign and remove devices"
|
||||
},
|
||||
"system": {
|
||||
"admin": "Support-only maintenance"
|
||||
}
|
||||
}
|
||||
},
|
||||
"crm": {
|
||||
"name": "Customers",
|
||||
"description": "Customer records."
|
||||
"description": "Customer records.",
|
||||
"permissions": {
|
||||
"manage": "Add and edit customers"
|
||||
}
|
||||
},
|
||||
"customer_display": {
|
||||
"name": "Customer display",
|
||||
@@ -40,28 +87,44 @@
|
||||
},
|
||||
"expenses": {
|
||||
"name": "Expenses",
|
||||
"description": "Expenses, payments and the supplier book."
|
||||
"description": "Expenses, payments and the supplier book.",
|
||||
"permissions": {
|
||||
"manage": "Record expenses and suppliers"
|
||||
}
|
||||
},
|
||||
"fiscal": {
|
||||
"name": "Fiscal device",
|
||||
"description": "Sends receipts to the fiscal device (ΦΗΜ) through its folder bridge."
|
||||
"description": "Sends receipts to the fiscal device (ΦΗΜ) through its folder bridge.",
|
||||
"permissions": {
|
||||
"manage": "Set up the fiscal device"
|
||||
}
|
||||
},
|
||||
"history": {
|
||||
"name": "Order history",
|
||||
"description": "Past orders and business-day summaries (read only). Free, with a short history.",
|
||||
"limits": {
|
||||
"history_days": "Days of history you can view"
|
||||
},
|
||||
"permissions": {
|
||||
"view": "See past orders and day summaries"
|
||||
}
|
||||
},
|
||||
"inventory": {
|
||||
"name": "Inventory",
|
||||
"description": "Waste log and product costs."
|
||||
"description": "Waste log and product costs.",
|
||||
"permissions": {
|
||||
"manage": "Log waste and costs"
|
||||
}
|
||||
},
|
||||
"kds": {
|
||||
"name": "Kitchen display",
|
||||
"description": "Screens in the kitchen or bar showing the orders to prepare.",
|
||||
"limits": {
|
||||
"devices": "Kitchen screens"
|
||||
},
|
||||
"permissions": {
|
||||
"access": "Use the kitchen display",
|
||||
"bump": "Mark items ready"
|
||||
}
|
||||
},
|
||||
"menu_tablet": {
|
||||
@@ -69,55 +132,102 @@
|
||||
"description": "A self-service catalogue on a tablet (coming soon).",
|
||||
"limits": {
|
||||
"devices": "Menu tablets"
|
||||
},
|
||||
"permissions": {
|
||||
"manage": "Set up menu tablets"
|
||||
}
|
||||
},
|
||||
"notes": {
|
||||
"name": "Notes",
|
||||
"description": "Venue notes and to-dos."
|
||||
"description": "Venue notes and to-dos.",
|
||||
"permissions": {
|
||||
"use": "Read and write notes and to-dos"
|
||||
}
|
||||
},
|
||||
"ordering": {
|
||||
"name": "Ordering",
|
||||
"description": "Orders, payments, business day, shifts, cash and kitchen printing."
|
||||
"description": "Orders, payments, business day, shifts, cash and kitchen printing.",
|
||||
"permissions": {
|
||||
"orders": {
|
||||
"open": "Open orders and add items",
|
||||
"close": "Take payments and close orders",
|
||||
"cancel": "Cancel items already sent"
|
||||
},
|
||||
"prices": {
|
||||
"modify": "Change an item's price"
|
||||
},
|
||||
"business_day": {
|
||||
"manage": "Open and close the business day"
|
||||
}
|
||||
}
|
||||
},
|
||||
"pos_counter": {
|
||||
"name": "Counter POS",
|
||||
"description": "A counter terminal for quick orders (coming soon).",
|
||||
"limits": {
|
||||
"devices": "Counter terminals"
|
||||
},
|
||||
"permissions": {
|
||||
"access": "Use the counter POS"
|
||||
}
|
||||
},
|
||||
"pricing": {
|
||||
"name": "Pricing",
|
||||
"description": "Price groups, happy hours, modifiers, deals and waiter discounts."
|
||||
"description": "Price groups, happy hours, modifiers, deals and waiter discounts.",
|
||||
"permissions": {
|
||||
"manage": "Set up price groups, modifiers and deals",
|
||||
"discounts": {
|
||||
"apply": "Give discounts",
|
||||
"over_limit": "Give discounts beyond the per-waiter limits"
|
||||
}
|
||||
}
|
||||
},
|
||||
"reports": {
|
||||
"name": "Reports",
|
||||
"description": "Full sales, product, staff and printer reports, CSV export and printed reports.",
|
||||
"limits": {
|
||||
"history_days": "Days of history reports can cover"
|
||||
},
|
||||
"permissions": {
|
||||
"view": "See reports"
|
||||
}
|
||||
},
|
||||
"reservations": {
|
||||
"name": "Reservations",
|
||||
"description": "Table reservations."
|
||||
"description": "Table reservations.",
|
||||
"permissions": {
|
||||
"manage": "Add and edit reservations"
|
||||
}
|
||||
},
|
||||
"signage": {
|
||||
"name": "Digital signage",
|
||||
"description": "Menus and promotions on TVs (coming soon).",
|
||||
"limits": {
|
||||
"devices": "Signage screens"
|
||||
},
|
||||
"permissions": {
|
||||
"manage": "Edit signage content"
|
||||
}
|
||||
},
|
||||
"staff_planning": {
|
||||
"name": "Staff planning",
|
||||
"description": "Shift schedule and payroll."
|
||||
"description": "Shift schedule and payroll.",
|
||||
"permissions": {
|
||||
"manage": "Plan shifts and see payroll"
|
||||
}
|
||||
},
|
||||
"tabs": {
|
||||
"name": "Tabs",
|
||||
"description": "Pay-later tabs for regular customers."
|
||||
"description": "Pay-later tabs for regular customers.",
|
||||
"permissions": {
|
||||
"manage": "Open, charge and settle tabs"
|
||||
}
|
||||
},
|
||||
"waiter_app": {
|
||||
"name": "Waiter app",
|
||||
"description": "Order taking on the waiters' phones (web and Android app)."
|
||||
"description": "Order taking on the waiters' phones (web and Android app).",
|
||||
"permissions": {
|
||||
"access": "Sign in to the waiter app"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user