feat(manager): notification bell, sign-in/venue/print settings, log download (platform-v2 2.6f)

- Bell in the header: /api/platform/notifications with unread count, live via
  the new LiveProvider (one createLiveClient connection) on platform_notification
  and reconnect; mark read / all; warning+critical pop a toast.
- Settings: Sign-in card (manager/waiter/device modes, require username, one
  session per manager/waiter, username autofill) replaces the dead v1
  security.login_method card; new "Venue & language" tab (language, time zone);
  print alert threshold in Printing. Tab labels are i18n keys.
- Technical > Log files: list + download of the daily logs (owner-level).
  Backend: GET /api/system/logs, /api/system/logs/{date} (core.settings.manage),
  error system.log_not_found.
- Setup wizard asks staff language and time zone (setup/init stores them).
- @xenia/ui theme helpers (applyTheme, getStoredTheme); the manager stays light
  until phase 6 converts the older pages (owner decision 2026-11-14).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-14 09:01:26 +02:00
co-authored by Claude Opus 5.5
parent 92bc1b0113
commit 2426ffddad
36 changed files with 995 additions and 92 deletions
+3
View File
@@ -68,5 +68,8 @@
"catalog": {
"unknown_category": "There is no category {{category_id}}.",
"primary_not_listed": "The main category ({{category_id}}) must be one of the product's categories."
},
"system": {
"log_not_found": "There is no log file for {{date}}."
}
}
+79
View File
@@ -283,5 +283,84 @@
"waiting": "Waiting"
},
"order": "Order #{{id}}"
},
"notifications": {
"bell": "Notifications",
"bellUnread_one": "Notifications: {{count}} unread",
"bellUnread_other": "Notifications: {{count}} unread",
"title": "Notifications",
"empty": "Nothing new. Licence, printing and support alerts show up here.",
"markAll": "Mark all as read",
"times_one": "{{count}} time",
"times_other": "{{count}} times"
},
"settings": {
"saved": "Saved",
"tabs": {
"app-info": "General",
"venue": "Venue & language",
"security": "Sign-in & security",
"operation": "Operation",
"colours": "Appearance",
"print-fonts": "Printing",
"fiscal": "Fiscal device",
"development": "Developer"
},
"mode": {
"password": "Password",
"pin": "PIN",
"tap": "Tap your name",
"none": "No sign-in"
},
"session": {
"off": "Allowed on several devices",
"refuse_new": "Refuse a second sign-in",
"end_old": "Sign out the older one"
},
"signIn": {
"title": "Sign-in",
"intro": "How each app asks people who they are. Changes apply to the next sign-in.",
"manager": "Managers sign in to this dashboard with",
"managerTip": "With PIN, managers type the same PIN they use to unlock the screen and to approve actions. Every manager needs a PIN.",
"autofill": "Fill in the username when there is only one manager",
"autofillHint": "The sign-in page then only asks for the password or PIN.",
"waiter": "Waiters sign in to the waiter app with",
"waiterTapWarning": "\"Tap your name\" works only on paired devices. On their own phones, waiters can't sign in this way.",
"requireUsername": "Waiters type their username",
"requireUsernameHint": "Instead of picking their name from the list.",
"device": "On paired devices (kitchen display, counter POS), staff sign in with",
"deviceHint": "Each device can choose its own on the Devices page.",
"singleManager": "One session per manager",
"singleWaiter": "One session per waiter",
"singleTip": "When someone is already signed in on another device: allow both, refuse the new sign-in, or sign out the older one."
},
"venue": {
"title": "Venue",
"language": "Language",
"languageHint": "For staff who haven't chosen their own, and for printed tickets and reports.",
"timezone": "Time zone",
"timezoneHint": "Every time is shown in it. The time there now: {{time}}."
},
"print": {
"title": "Print alerts",
"alert": "Tell managers when a ticket fails to print",
"alertHint": "While it keeps retrying. A ticket that is finally given up is always reported.",
"never": "Only when it is given up",
"after_one": "After {{count}} failed attempt",
"after_other": "After {{count}} failed attempts"
}
},
"logs": {
"tab": "Log files",
"intro": "The system's daily log files, kept for 30 days. Support may ask for the file of the day something went wrong. Days are in UTC.",
"empty": "No log files yet",
"current": "(still being written)",
"size": "{{size}} KB",
"download": "Download"
},
"setup": {
"language": "Staff language",
"timezone": "Time zone",
"languageHint": "The language of staff screens (each person can choose their own) and of printed tickets and reports."
}
}