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:
@@ -1,20 +1,23 @@
|
||||
// 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), manager (the manager shell, 2.6),
|
||||
// local_backend/core/errors.py; tests/errors.test.mjs keeps them complete), manager (the manager shell, 2.6), modules (module
|
||||
// names/descriptions/limits for staff; local_backend/tests/test_module_texts.py keeps them complete),
|
||||
// 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 elModules from '../locales/el/modules.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'
|
||||
import enModules from '../locales/en/modules.json'
|
||||
|
||||
export const NAMESPACES = ['common', 'errors', 'manager', 'dev']
|
||||
export const NAMESPACES = ['common', 'errors', 'manager', 'modules', 'dev']
|
||||
|
||||
export const resources = {
|
||||
en: { common: enCommon, errors: enErrors, manager: enManager, dev: enDev },
|
||||
el: { common: elCommon, errors: elErrors, manager: elManager, dev: elDev },
|
||||
en: { common: enCommon, errors: enErrors, manager: enManager, modules: enModules, dev: enDev },
|
||||
el: { common: elCommon, errors: elErrors, manager: elManager, modules: elModules, dev: elDev },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user