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:
@@ -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