Files
xenia-pos-local/packages/i18n/locales/en/modules.json
T
bonaminandClaude Opus 5.5 bda5cde92b feat(backend): live connection and per-device settings for paired screens (platform-v2 3.1a)
- WebSocket: credentials may come in the first frame ({cursor, token?, device?}).
  A device token alone connects a paired screen (login-none apps get every event, a
  sign-in app only events addressed to it); a terminal session's JWT needs its own
  device, as over HTTP. Refusals send {type: refused, data: {code}} + close 4001/4003.
- ws_bus: registry of open sockets by user, session and device. Ending a session
  closes its sockets (session.ended); revoke/reassign close the device's sockets
  (device.revoked / device.updated); edits and module on/off send device.updated.
  Events can target devices (device_ids=..., sync_events.target_device_ids, rev 0014).
  Pushes go through each socket's own loop (call_soon_threadsafe).
- Device config: DeviceApp.config = typed ConfigFields, validated on pair/edit/
  reassign (validation.device_config), effective values (defaults filled) in both
  device views and the module catalogue. First field: auto_sign_out_minutes (KDS, POS).
- Manager: DeviceConfigFields renders an app's fields in the pair and edit dialogs.
- @xenia/api createLiveClient: `credentials` and `onRefused` options.
- Tests: tests/test_live.py (11), module texts for config fields, live client,
  devices logic, manager.mjs device setting + live socket checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 16:31:59 +02:00

262 lines
6.8 KiB
JSON

{
"caller_id": {
"name": "Caller ID",
"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.",
"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.",
"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.",
"permissions": {
"manage": "Manage the QR menu"
}
},
"connect_orders": {
"name": "Online orders",
"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.",
"permissions": {
"manage": "Set up the remote manager app"
}
},
"core": {
"name": "Core",
"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.",
"permissions": {
"manage": "Add and edit customers"
}
},
"customer_display": {
"name": "Customer display",
"description": "A screen facing the customer at a counter POS (coming soon).",
"limits": {
"devices": "Customer displays"
}
},
"expenses": {
"name": "Expenses",
"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.",
"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.",
"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"
},
"config": {
"auto_sign_out_minutes": {
"label": "Sign out after",
"hint": "Back to the sign-in screen when nobody has used the screen for this long.",
"choices": {
"0": "Never",
"2": "2 minutes",
"5": "5 minutes",
"10": "10 minutes",
"30": "30 minutes",
"60": "1 hour"
}
}
}
},
"menu_tablet": {
"name": "Menu tablet",
"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.",
"permissions": {
"use": "Read and write notes and to-dos"
}
},
"ordering": {
"name": "Ordering",
"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"
},
"config": {
"auto_sign_out_minutes": {
"label": "Sign out after",
"hint": "Back to the sign-in screen when nobody has used the screen for this long.",
"choices": {
"0": "Never",
"2": "2 minutes",
"5": "5 minutes",
"10": "10 minutes",
"30": "30 minutes",
"60": "1 hour"
}
}
}
},
"pricing": {
"name": "Pricing",
"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.",
"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.",
"permissions": {
"manage": "Plan shifts and see payroll"
}
},
"tabs": {
"name": "Tabs",
"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).",
"permissions": {
"access": "Sign in to the waiter app"
}
}
}