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
+51 -1
View File
@@ -40,7 +40,9 @@
"settings": "Ρυθμίσεις",
"order": "Παραγγελία",
"kds": "Οθόνη κουζίνας",
"soon": "σύντομα"
"soon": "σύντομα",
"integrations": "Συνδέσεις",
"license": "Άδεια"
},
"profile": {
"edit": "Επεξεργασία προφίλ",
@@ -77,5 +79,53 @@
"lock": {
"title": "Κλειδωμένο",
"signOutInstead": "Αποσύνδεση"
},
"modules": {
"appsIntro": "Ενεργοποιήστε ή απενεργοποιήστε μέρη του συστήματος για αυτό το κατάστημα. Ό,τι είναι κλειστό εξαφανίζεται από όλες τις οθόνες και τα δεδομένα του μένουν ασφαλή.",
"integrationsIntro": "Συνδέσεις με άλλο εξοπλισμό και υπηρεσίες.",
"sections": {
"app": "Εφαρμογές συσκευών",
"feature": "Λειτουργίες",
"core": "Περιλαμβάνονται πάντα"
},
"on": "Ενεργό",
"off": "Ανενεργό",
"alwaysOn": "Πάντα ενεργό",
"notLicensed": "Δεν περιλαμβάνεται στην άδεια",
"waiting": "Περιμένει: {{list}}",
"needs": "Χρειάζεται: {{list}}",
"open": "Άνοιγμα",
"unlimited": "Απεριόριστο",
"toggleLabel": "{{name}} ενεργό ή ανενεργό",
"confirmOffTitle": "Απενεργοποίηση: {{name}};",
"confirmOffBody": "Όσο είναι κλειστό, σταματούν να λειτουργούν και: {{list}}.",
"turnOff": "Απενεργοποίηση",
"changed": "{{name}}: {{state}}",
"readOnly": "Μόνο όποιος έχει δικαίωμα διαχείρισης εφαρμογών μπορεί να τα αλλάξει."
},
"licensePage": {
"status": "Κατάσταση",
"statusDev": "Λειτουργία ανάπτυξης (όλες οι λειτουργίες, χωρίς όρια)",
"statusLicensed": "Με άδεια",
"statusFree": "Δωρεάν έκδοση",
"siteId": "Κωδικός καταστήματος",
"expires": "Ισχύει μέχρι",
"daysLeft_one": "Απομένει {{count}} ημέρα",
"daysLeft_other": "Απομένουν {{count}} ημέρες",
"lastSync": "Τελευταία επικοινωνία με τον server αδειών",
"never": "ποτέ",
"syncNow": "Έλεγχος άδειας τώρα",
"synced": "Η άδεια ελέγχθηκε",
"syncFailed": "Δεν υπάρχει σύνδεση με τον server αδειών",
"offline": "Καμία επικοινωνία με τον server αδειών εδώ και {{count}} ημέρες. Το κατάστημα συνεχίζει να λειτουργεί μέχρι να λήξει η άδεια.",
"modules": "Λειτουργίες",
"module": "Λειτουργία",
"included": "Περιλαμβάνεται",
"inLicense": "Στην άδειά σας",
"inLicenseUntil": "Στην άδειά σας μέχρι {{date}}",
"free": "Δωρεάν έκδοση",
"dev": "Ανάπτυξη",
"notIncluded": "Δεν περιλαμβάνεται",
"limits": "Όρια"
}
}
+123
View File
@@ -0,0 +1,123 @@
{
"caller_id": {
"name": "Αναγνώριση κλήσης",
"description": "Εισερχόμενες κλήσεις από το τηλεφωνικό κέντρο του καταστήματος (Grandstream UCM)."
},
"catalog": {
"name": "Κατάλογος",
"description": "Προϊόντα, κατηγορίες, επιλογές, τραπέζια και ζώνες ετοιμασίας."
},
"chat": {
"name": "Συνομιλία προσωπικού",
"description": "Συνομιλία του προσωπικού και μηνύματα του υπευθύνου προς το προσωπικό."
},
"connect_menu": {
"name": "QR μενού",
"description": "Το online μενού με QR, συγχρονισμένο με τον κατάλογο."
},
"connect_orders": {
"name": "Online παραγγελίες",
"description": "Παραγγελίες από το QR μενού, που έρχονται από το cloud."
},
"connect_remote": {
"name": "Απομακρυσμένη διαχείριση",
"description": "Ζωντανά στοιχεία για την εφαρμογή απομακρυσμένης διαχείρισης του ιδιοκτήτη."
},
"core": {
"name": "Βασικό σύστημα",
"description": "Σύνδεση, προσωπικό, ρυθμίσεις, άδεια, σύστημα και ζωντανές ενημερώσεις. Πάντα ενεργό."
},
"crm": {
"name": "Πελάτες",
"description": "Αρχείο πελατών."
},
"customer_display": {
"name": "Οθόνη πελάτη",
"description": "Οθόνη προς τον πελάτη δίπλα σε ταμείο πάγκου (έρχεται σύντομα).",
"limits": {
"devices": "Οθόνες πελάτη"
}
},
"expenses": {
"name": "Έξοδα",
"description": "Έξοδα, πληρωμές και βιβλίο προμηθευτών."
},
"fiscal": {
"name": "Φορολογικός μηχανισμός",
"description": "Αποστολή αποδείξεων στον φορολογικό μηχανισμό (ΦΗΜ) μέσω του φακέλου γέφυρας."
},
"history": {
"name": "Ιστορικό παραγγελιών",
"description": "Παλιές παραγγελίες και σύνοψη εργάσιμων ημερών (μόνο προβολή). Δωρεάν, με σύντομο ιστορικό.",
"limits": {
"history_days": "Ημέρες ιστορικού για προβολή"
}
},
"inventory": {
"name": "Αποθήκη",
"description": "Καταγραφή απορριμμάτων και κόστος προϊόντων."
},
"kds": {
"name": "Οθόνη κουζίνας",
"description": "Οθόνες στην κουζίνα ή στο μπαρ με τις παραγγελίες προς ετοιμασία.",
"limits": {
"devices": "Οθόνες κουζίνας"
}
},
"menu_tablet": {
"name": "Tablet μενού",
"description": "Κατάλογος αυτοεξυπηρέτησης σε tablet (έρχεται σύντομα).",
"limits": {
"devices": "Tablet μενού"
}
},
"notes": {
"name": "Σημειώσεις",
"description": "Σημειώσεις και εργασίες του καταστήματος."
},
"ordering": {
"name": "Παραγγελίες",
"description": "Παραγγελίες, πληρωμές, εργάσιμη ημέρα, βάρδιες, ταμείο και εκτύπωση κουζίνας."
},
"pos_counter": {
"name": "Ταμείο πάγκου",
"description": "Τερματικό στον πάγκο για γρήγορες παραγγελίες (έρχεται σύντομα).",
"limits": {
"devices": "Τερματικά πάγκου"
}
},
"pricing": {
"name": "Τιμολόγηση",
"description": "Ομάδες τιμών, happy hour, τροποποιητές, προσφορές και εκπτώσεις σερβιτόρων."
},
"reports": {
"name": "Αναφορές",
"description": "Πλήρεις αναφορές πωλήσεων, προϊόντων, προσωπικού και εκτυπωτών, εξαγωγή CSV και εκτυπωμένες αναφορές.",
"limits": {
"history_days": "Ημέρες που καλύπτουν οι αναφορές"
}
},
"reservations": {
"name": "Κρατήσεις",
"description": "Κρατήσεις τραπεζιών."
},
"signage": {
"name": "Ψηφιακή σήμανση",
"description": "Μενού και προσφορές σε τηλεοράσεις (έρχεται σύντομα).",
"limits": {
"devices": "Οθόνες σήμανσης"
}
},
"staff_planning": {
"name": "Προγραμματισμός προσωπικού",
"description": "Πρόγραμμα βαρδιών και μισθοδοσία."
},
"tabs": {
"name": "Καρτέλες",
"description": "Καρτέλες πληρωμής αργότερα για τακτικούς πελάτες."
},
"waiter_app": {
"name": "Εφαρμογή σερβιτόρων",
"description": "Λήψη παραγγελιών από τα κινητά των σερβιτόρων (web και εφαρμογή Android)."
}
}
+51 -1
View File
@@ -40,7 +40,9 @@
"settings": "Settings",
"order": "Order",
"kds": "Kitchen display",
"soon": "soon"
"soon": "soon",
"integrations": "Integrations",
"license": "License"
},
"profile": {
"edit": "Edit profile",
@@ -77,5 +79,53 @@
"lock": {
"title": "Locked",
"signOutInstead": "Sign out instead"
},
"modules": {
"appsIntro": "Turn parts of the system on or off for this venue. What's off disappears from every screen and its data stays safe.",
"integrationsIntro": "Connections to other equipment and services.",
"sections": {
"app": "Device apps",
"feature": "Features",
"core": "Always included"
},
"on": "On",
"off": "Off",
"alwaysOn": "Always on",
"notLicensed": "Not in your license",
"waiting": "Waiting for {{list}}",
"needs": "Needs {{list}}",
"open": "Open",
"unlimited": "Unlimited",
"toggleLabel": "{{name}} on or off",
"confirmOffTitle": "Turn off {{name}}?",
"confirmOffBody": "These stop working too while it's off: {{list}}.",
"turnOff": "Turn off",
"changed": "{{name}} is now {{state}}",
"readOnly": "Only someone with permission to manage apps can change these."
},
"licensePage": {
"status": "Status",
"statusDev": "Development mode (every module, no limits)",
"statusLicensed": "Licensed",
"statusFree": "Free version",
"siteId": "Site ID",
"expires": "Valid until",
"daysLeft_one": "{{count}} day left",
"daysLeft_other": "{{count}} days left",
"lastSync": "Last contact with the license server",
"never": "never",
"syncNow": "Check the license now",
"synced": "License checked",
"syncFailed": "Couldn't reach the license server",
"offline": "No contact with the license server for {{count}} days. The venue keeps working until the license expires.",
"modules": "Modules",
"module": "Module",
"included": "Included",
"inLicense": "In your license",
"inLicenseUntil": "In your license until {{date}}",
"free": "Free version",
"dev": "Development",
"notIncluded": "Not included",
"limits": "Limits"
}
}
+123
View File
@@ -0,0 +1,123 @@
{
"caller_id": {
"name": "Caller ID",
"description": "Incoming phone calls from the venue's phone system (Grandstream UCM)."
},
"catalog": {
"name": "Catalogue",
"description": "Products, categories, options, tables and prep zones."
},
"chat": {
"name": "Staff chat",
"description": "Staff chat and manager messages to staff."
},
"connect_menu": {
"name": "QR menu",
"description": "The online QR menu, kept in sync with the catalogue."
},
"connect_orders": {
"name": "Online orders",
"description": "Orders placed from the QR menu, brought in from the cloud."
},
"connect_remote": {
"name": "Remote manager",
"description": "Live figures for the owner's remote manager app."
},
"core": {
"name": "Core",
"description": "Sign-in, staff, settings, license, system and live updates. Always on."
},
"crm": {
"name": "Customers",
"description": "Customer records."
},
"customer_display": {
"name": "Customer display",
"description": "A screen facing the customer at a counter POS (coming soon).",
"limits": {
"devices": "Customer displays"
}
},
"expenses": {
"name": "Expenses",
"description": "Expenses, payments and the supplier book."
},
"fiscal": {
"name": "Fiscal device",
"description": "Sends receipts to the fiscal device (ΦΗΜ) through its folder bridge."
},
"history": {
"name": "Order history",
"description": "Past orders and business-day summaries (read only). Free, with a short history.",
"limits": {
"history_days": "Days of history you can view"
}
},
"inventory": {
"name": "Inventory",
"description": "Waste log and product costs."
},
"kds": {
"name": "Kitchen display",
"description": "Screens in the kitchen or bar showing the orders to prepare.",
"limits": {
"devices": "Kitchen screens"
}
},
"menu_tablet": {
"name": "Menu tablet",
"description": "A self-service catalogue on a tablet (coming soon).",
"limits": {
"devices": "Menu tablets"
}
},
"notes": {
"name": "Notes",
"description": "Venue notes and to-dos."
},
"ordering": {
"name": "Ordering",
"description": "Orders, payments, business day, shifts, cash and kitchen printing."
},
"pos_counter": {
"name": "Counter POS",
"description": "A counter terminal for quick orders (coming soon).",
"limits": {
"devices": "Counter terminals"
}
},
"pricing": {
"name": "Pricing",
"description": "Price groups, happy hours, modifiers, deals and waiter discounts."
},
"reports": {
"name": "Reports",
"description": "Full sales, product, staff and printer reports, CSV export and printed reports.",
"limits": {
"history_days": "Days of history reports can cover"
}
},
"reservations": {
"name": "Reservations",
"description": "Table reservations."
},
"signage": {
"name": "Digital signage",
"description": "Menus and promotions on TVs (coming soon).",
"limits": {
"devices": "Signage screens"
}
},
"staff_planning": {
"name": "Staff planning",
"description": "Shift schedule and payroll."
},
"tabs": {
"name": "Tabs",
"description": "Pay-later tabs for regular customers."
},
"waiter_app": {
"name": "Waiter app",
"description": "Order taking on the waiters' phones (web and Android app)."
}
}
+7 -4
View File
@@ -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 },
}