Platform-v2 step 2.99c.
- Both apps on the same current versions: React 19.3.1, react-query 5.107.1,
router 7.18.5, axios 1.21.1, zustand 5.1, vite 8.3.8, plugin-react 6.3; manager
lucide-react 1.14 -> 1.73, recharts 3.8 -> 3.10.
- i18next 27.1.1 + react-i18next 18.0.1 (exact pins). Shared options moved to
packages/i18n/src/options.js with returnEmptyString: true (27 shows the key for an
empty text otherwise); tests/instance.test.mjs guards it, plus fallback, code
casing and plurals.
- vite-plugin-pwa 2.0 lists Vite 8 as a peer: .npmrc (legacy-peer-deps) removed,
`npm install` resolves without it.
- Native (CS-10): @capacitor/core/android/cli 8.6.2, @capacitor/app 8.1.2,
@capgo/capacitor-updater 8.54.2; versionCode 2 / versionName 1.1.0 and
MIN_SHELL_BUILD 2. capacitor-updater 8.54 refuses plain-HTTP downloads by
default, which broke every bundle check in the stacks suite: httpsOnly: false in
capacitor.config.json (venues have no domains; zips are sha256-checked).
- npm audit: 6 left, all in workbox-build 7.4.1 (build time).
Full run-all incl. Android passes (Android re-run after the httpsOnly fix).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Platform-v2 step 2.5 (APPS_PLATFORM D-7, D-10, §9):
- @xenia/api: createApiClient (app passes its axios; session/device headers,
err.xenia codes, 401/offline hooks, manager-override retry: ask PIN, grant,
retry once with X-Xenia-Override); errorMessage; createLiveClient = the
waiter's WebSocket logic (cursor replay, backoff, online) moved unchanged
- @xenia/access: AccessProvider (bootstrap per session token, language +
venue formats, translated ui labels, approval dialog), useAccess/useCan/
useModule, Can, RequireModule
- i18n: errors namespace for every backend code (en/el, test vs core/errors.py),
override/access texts
- manager: client from createApiClient, AccessProvider in a layout route,
/kds behind RequireModule, usePermissions from bootstrap keys; login and
unlock no longer treat a wrong password/PIN as "session ended" (a wrong
lock-screen PIN used to log the manager out)
- waiter: useWebSocket is a thin wrapper over createLiveClient
- tests: api/access unit tests; new e2e suite tests/e2e/manager.mjs; CS-18
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Platform-v2 step 2.4 (APPS_PLATFORM D-11, D-12, §7.2, §8):
- i18next 26.7.2 + react-i18next 17.1.13 (exact); en/el locale files
(common, dev); createI18n, I18nProvider, useLanguage, setUserLanguage
(screen first, then PATCH /api/auth/me through an app-provided save)
- resolveLanguage: user -> device -> venue -> en
- useFormat(): dates/times always in the venue zone from bootstrap (24 h,
DST-safe, business dates never shifted), relative times, money and
numbers per language; parseNumber accepts a comma or a dot
- scripts/check-i18n.mjs guard: keys missing in en, placeholder mismatches,
dates formatted without the venue zone in new code (fails); missing el (warns)
- @xenia/ui components read their texts from UiLabelsProvider; useUiLabels()
supplies the translated set
- dev-only /i18n-sample in the manager; ui.mjs e2e checks it with the browser
in New York; unit tests in run-all; lockfile keeps both apps' versions
- new pack rule CS-17
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>