feat(manager): shell navigation from modules + permission keys; profile menu language

Platform-v2 step 2.6a:
- shell/nav.js: one nav definition (module + key per page) read by the sidebar,
  the page titles and a RouteGuard around the layout outlet (and /kds): a module
  that's off hides its items and its routes say "turned off"; a missing key
  hides the item and the route says "no access". Same keys as before (v1
  permission names mapped), plus the module check
- labels/breadcrumbs are keys in a new i18n namespace `manager` (en + el)
- removed the browser-only feature toggles (usePhase2Features, Settings ->
  Λειτουργίες, F-033), PermissionGuard and usePermissions
- profile menu: language, saved to the profile (PATCH /api/auth/me) and
  bootstrap reloaded
- e2e manager.mjs: module off/on, no-key user, language switch live + saved

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-13 21:48:08 +02:00
co-authored by Claude Opus 5.5
parent 78c8824356
commit df57fd1552
15 changed files with 454 additions and 545 deletions
+7 -5
View File
@@ -1,18 +1,20 @@
// Every locale file, bundled (they're small; no loading step, no flash of keys).
// Layout (APPS_PLATFORM §8): locales/<lang>/<namespace>.json. English is the source.
// Namespaces: common (shared words, component labels), errors (backend error codes,
// local_backend/core/errors.py; tests/errors.test.mjs keeps them complete), dev (sample screens). Apps add
// theirs here as they're converted: manager, waiter, terminal, modules.
// local_backend/core/errors.py; tests/errors.test.mjs keeps them complete), manager (the manager shell, 2.6),
// dev (sample screens). Apps add theirs here as they're converted: waiter, terminal, modules.
import elCommon from '../locales/el/common.json'
import elDev from '../locales/el/dev.json'
import elErrors from '../locales/el/errors.json'
import elManager from '../locales/el/manager.json'
import enCommon from '../locales/en/common.json'
import enDev from '../locales/en/dev.json'
import enErrors from '../locales/en/errors.json'
import enManager from '../locales/en/manager.json'
export const NAMESPACES = ['common', 'errors', 'dev']
export const NAMESPACES = ['common', 'errors', 'manager', 'dev']
export const resources = {
en: { common: enCommon, errors: enErrors, dev: enDev },
el: { common: elCommon, errors: elErrors, dev: elDev },
en: { common: enCommon, errors: enErrors, manager: enManager, dev: enDev },
el: { common: elCommon, errors: elErrors, manager: elManager, dev: elDev },
}