feat(manager): Apps, Integrations and License pages on the module catalogue

Platform-v2 step 2.6c:
- Apps (device apps, features, always-included core) and Integrations: module
  cards from GET /api/platform/modules with state (on / off / waiting for a
  dependency / not in your license / always on), dependencies, limits and an
  Open button where the manager has a page; core.modules.manage toggles them
  (PUT /api/platform/modules/{key}), with a confirm listing the modules that
  stop too; bootstrap reloads so the sidebar follows at once
- License page: licensed / free (with the reason) / development, site id,
  validity, last contact, "check the license now" (POST /api/system/sync-license),
  every module's entitlement and limits
- i18n: new `modules` namespace (names, descriptions, limit labels, en + el)
  kept complete against the registry by local_backend/tests/test_module_texts.py
- nav: Integrations and License in the sidebar; old AppsPage removed
- e2e manager.mjs: 43 checks (+ card states, toggle from the card, dependency
  warning, integrations, license page)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-13 22:33:54 +02:00
co-authored by Claude Opus 5.5
parent 49a412d748
commit 0d0b2d78e1
13 changed files with 757 additions and 47 deletions
+4 -2
View File
@@ -16,7 +16,7 @@ import {
BookUser, Users, Receipt, CreditCard,
Package, TableProperties, UserCog, CalendarDays, Trash2, Boxes,
BarChart2, TrendingUp, Users2, ShoppingCart, Tag, Activity, Printer, ConciergeBell, FileText,
AppWindow, Settings, CookingPot, StickyNote, Percent,
AppWindow, Settings, CookingPot, StickyNote, Percent, Plug, BadgeCheck,
} from 'lucide-react'
const DASH = 'core.dashboard.access'
@@ -95,12 +95,14 @@ export const NAV = [
export const NAV_BOTTOM = [
{ to: '/apps', icon: AppWindow, label: 'nav.apps', module: 'core', perm: DASH },
{ to: '/integrations', icon: Plug, label: 'nav.integrations', module: 'core', perm: DASH },
{ to: '/license', icon: BadgeCheck, label: 'nav.license', module: 'core', perm: DASH },
{ to: '/settings', icon: Settings, label: 'nav.settings', module: 'core', perm: 'core.settings.manage' },
]
// Pages that aren't in the sidebar but still have a title and a guard
const EXTRA = [
{ to: '/apps/phone', label: 'nav.phone', parent: 'nav.apps', module: 'caller_id', perm: DASH },
{ to: '/apps/phone', label: 'nav.phone', parent: 'nav.integrations', module: 'caller_id', perm: DASH },
{ to: '/kds', label: 'nav.kds', module: 'kds', perm: DASH },
{ prefix: '/orders/', label: 'nav.order', module: 'ordering', perm: DASH },
]