- 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>
13 lines
553 B
JavaScript
13 lines
553 B
JavaScript
/** Every IANA zone the browser knows; the current one is kept even when the browser lacks it. */
|
|
export function timeZones(current) {
|
|
let zones = []
|
|
try { zones = Intl.supportedValuesOf('timeZone') } catch { zones = [] }
|
|
if (current && !zones.includes(current)) zones = [current, ...zones]
|
|
return zones
|
|
}
|
|
|
|
/** The browser's own zone (for the setup wizard's default), or Europe/Athens. */
|
|
export function browserTimeZone() {
|
|
try { return Intl.DateTimeFormat().resolvedOptions().timeZone || 'Europe/Athens' } catch { return 'Europe/Athens' }
|
|
}
|