feat(manager): every settings tab on v2 (platform-v2 step 6.14a)

- Settings: tabs in the address (?tab=), Fiscal only with the fiscal app, Appearance only with the waiter app
- General: version / update / license / state / uptime, the local network (address by hand or found, the pairing QR),
  what is set up, export / import of the catalogue and the tables (a wrong file refused, two confirmations), support lock
- Sign-in & security: idle lock / sign-out (seconds..hours, warning when sign-out comes first), recovery codes
- Operation: role permissions, waiters' own shifts and takings, card payments, tables and orders, courses (add, rename,
  colour, order), quick notes, table flags (emoji, colour, white/black text, on/off), quick messages, send the QR menu now
- Appearance: the waiter app's table-card colours per state, light and dark, flash, colour picker with opacity, reset
- Fiscal: on/off, driver, folders with a reachability check, clerk / card terminal numbers, receipt end lines, VAT groups
- Development: pretend printing
- dropped: the v1 'automatic store schedule' switches (kept in the browser only, nothing read them) and the second time-zone card
- backend: JSON settings must be JSON (validation.setting_value); fiscal folders are plain paths (were typed json)
- venue colour data in sections/venueColours.js (guard DATA); store/tableColourStore and Settings/tabs deleted
- tests: settings.test.mjs (5), test_settings_json.py, e2e manager.mjs 'settings v2' (12 checks)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-19 19:41:14 +02:00
co-authored by Claude Opus 5.5
parent bde125bf09
commit f6fcfb7736
27 changed files with 1935 additions and 2819 deletions
+280
View File
@@ -385,6 +385,286 @@
"operation": {
"closeUnpaid": "Close a table with unpaid items",
"closeUnpaidHint": "Off: closing a table with unpaid items asks for the payment first, then closes it. On: it closes and the unpaid items are recorded as unpaid."
},
"title": "Settings",
"save": "Save",
"back": "Back",
"system": {
"title": "System",
"version": "Version",
"update": "{{version}} is out",
"upToDate": "Up to date",
"license": "License",
"expires": "Until {{date}}",
"licensed": "Active",
"unlicensed": "Not active",
"state": "State",
"states": {
"running": "Working",
"lockPending": "Will lock at the day's close",
"locked": "Locked"
},
"uptime": "Running for",
"uptimeValue": "{{days}} d {{h}} h {{m}} min",
"refresh": "Check again",
"oldDomain": "Waiter address (old setup)",
"oldDomainHint": "Only venues installed before the app pairing still have one.",
"qr": "QR code",
"qrTitle": "Scan to connect",
"setUp": "What is set up",
"counts": {
"categories": "Categories",
"products": "Products (active)",
"tables": "Tables (active)",
"table_groups": "Table zones",
"managers": "Managers",
"waiters": "Waiters"
},
"support": "Support",
"supportHint": "Lock or unlock the system (support account only).",
"unlock": "Unlock",
"lock": "Lock",
"locked": "System locked",
"unlocked": "System unlocked"
},
"lan": {
"title": "Local network",
"intro": "The server's address on the venue's Wi-Fi: the phones and the pairing QR use it.",
"mismatch": "The address in use is {{ip}}, but the server now has {{detected}}. Phones and the QR won't connect until this is fixed.",
"useDetected": "Use the detected address ({{ip}})",
"address": "Server address",
"unknown": "Not known yet: type it here (e.g. 192.168.1.50).",
"detection": {
"unsupported": "Finding it automatically works on a Linux server only (not Docker Desktop).",
"stale": "Finding it automatically stopped updating: check the netinfo container.",
"unavailable": "Finding it automatically isn't available (the netinfo container isn't running)."
},
"saved": "Address saved",
"automatic": "Back to finding it automatically",
"auto": "Find it automatically",
"change": "Change",
"source": {
"override": "Set by hand",
"detected": "Found automatically",
"env": "From the install (HOST_IP)",
"browser": "From this page's address"
},
"waiters": "Waiters (Wi-Fi)",
"waitersHint": "Phones on the same Wi-Fi open this, or scan the QR.",
"qrCaption": "Scan with the phone's camera: it opens the waiter app. The phone must be on the same Wi-Fi.",
"manager": "Managers (Wi-Fi)"
},
"transfer": {
"title": "Export and import",
"intro": "Save the catalogue or the tables to a file, or bring them in from another venue.",
"kinds": {
"catalog": "Catalogue",
"tables": "Tables and zones"
},
"hints": {
"catalog": "Categories and products (not the printers).",
"tables": "Table zones and tables."
},
"export": "Export",
"import": "Import",
"imported": {
"catalog": "Catalogue imported",
"tables": "Tables imported"
},
"wrongFile": "This isn't a {{kind}} file.",
"confirmTitle": "Import this file?",
"finalTitle": "Last check",
"summary": {
"catalog": "{{groups}} categories and {{items}} products will be added.",
"tables": "{{groups}} zones and {{items}} tables will be added."
},
"merge": "They are added to what is here: nothing is deleted.",
"finalBody": "This changes the venue's data and can't be undone. Import it?",
"continue": "Continue",
"importYes": "Yes, import"
},
"security": {
"idleTitle": "When the dashboard isn't used",
"idleIntro": "Locking asks for a PIN to go on; signing out asks for the full sign-in.",
"lock": "Lock after a while",
"lockHint": "The screen locks; a PIN unlocks it.",
"lockAfter": "Lock after",
"logout": "Sign out after a longer while",
"logoutHint": "The session ends; the person signs in again.",
"logoutAfter": "Sign out after",
"logoutFirst": "Signing out comes before (or with) locking, so the screen will sign out without locking first.",
"seconds_one": "{{count}} second",
"seconds_other": "{{count}} seconds",
"minutes_one": "{{count}} minute",
"minutes_other": "{{count}} minutes",
"hours_one": "{{count}} hour",
"hours_other": "{{count}} hours",
"recoveryTitle": "Recovery codes",
"recoveryIntro": "Five one-time codes to sign in when the password is lost. Each works once.",
"recoveryLeft": "Codes left",
"ofFive_one": "{{count}} of 5",
"ofFive_other": "{{count}} of 5",
"copyNow": "Copy them now: they won't be shown again.",
"copy": "Copy",
"copyAll": "Copy all",
"done": "Done",
"copied": "Copied",
"replace": "The {{count}} codes left stop working and 5 new ones are made.",
"replaceYes": "Make new codes",
"remake": "Make new codes",
"make": "Make recovery codes",
"recoveryHow": "Keep them somewhere safe. On the sign-in page: your username and a code instead of the password."
},
"ops": {
"staffTitle": "Waiters",
"staffIntro": "What waiters may do on their own.",
"selfStart": "Start their own shift",
"selfStartHint": "Otherwise a manager starts it.",
"selfEnd": "End their own shift",
"selfEndHint": "Otherwise a manager ends it (with the cash count).",
"hideTakings": "Hide takings from waiters",
"hideTakingsHint": "Their shift overview doesn't show what they took or should hand over.",
"paymentsTitle": "Payments",
"card": "Card payments",
"cardHint": "Waiters can record a card payment. It isn't connected to a card terminal: it is recorded only.",
"ordersTitle": "Tables and orders",
"ordersIntro": "How tables and orders behave.",
"autoClose": "Close a table when everything is paid",
"autoCloseHint": "The order closes by itself with the last payment.",
"bypassKds": "Skip the kitchen screens' serve step",
"bypassKdsHint": "New items count as served at once: no one confirms serving them.",
"courses": "Courses",
"coursesHint": "Lines get a course (starter, main, dessert…) and go to the kitchen in that order.",
"courseColour": "Change the colour",
"courseName": "Course name",
"courseN": "Course {{n}}",
"addCourse": "Add a course",
"up": "Move up",
"down": "Move down",
"remove": "Remove {{name}}",
"quickNotes": "Quick notes",
"quickNotesHint": "Notes a waiter adds to a line with one tap.",
"quickNote": "Quick note",
"newQuickNote": "A new quick note…",
"add": "Add",
"menuTitle": "Digital menu",
"menuIntro": "Names, descriptions, prices and photos go to the QR menu by themselves every few minutes.",
"syncNow": "Send it now",
"syncNowHint": "Instead of waiting for the next time.",
"sync": "Send",
"synced": "The menu was sent"
},
"flags": {
"title": "Table flags",
"intro": "Marks the staff put on a table: birthday, VIP, allergy…",
"none": "No flags yet.",
"new": "New flag",
"newTitle": "New flag",
"preview": "Flag",
"on": "{{name}} is offered again",
"off": "{{name}} is no longer offered",
"offTag": "Off",
"deleted": "Flag deleted",
"edit": "Edit {{name}}",
"turnOff": "Stop offering {{name}}",
"turnOn": "Offer {{name}} again",
"delete": "Delete {{name}}",
"deleteTitle": "Delete {{name}}?",
"deleteBody": "It goes from the tables that have it.",
"deleteYes": "Delete",
"name": "Name",
"nameNeeded": "Enter a name.",
"emoji": "Emoji",
"colour": "Colour",
"text": "Text",
"textLight": "White text",
"textDark": "Black text"
},
"messages": {
"title": "Quick messages",
"intro": "Ready texts a manager sends to the staff with one tap.",
"none": "No quick messages yet.",
"text": "Message",
"delete": "Delete the message",
"new": "A new quick message…"
},
"colours": {
"title": "Table colours on the waiter app",
"intro": "The colours of a table card in each state, for the app's light and dark look.",
"modes": {
"light": "Light look",
"dark": "Dark look"
},
"statuses": {
"free": "Free",
"open": "Open",
"mine": "Mine",
"partially_paid": "Part paid",
"paid": "Paid",
"kds_ready": "Ready"
},
"slots": {
"cardBg": "Card",
"badgeBg": "Badge",
"nameText": "Table name",
"badgeText": "Badge text"
},
"second": "flash",
"flash": "Flash",
"reset": "Back to the default colours",
"resetTitle": "Back to the default colours?",
"resetBody": "Every colour above is replaced.",
"resetYes": "Reset",
"pickTitle": "Pick a colour",
"use": "Use this colour",
"invalid": "not a colour",
"colour": "Colour",
"opacity": "Opacity",
"quick": "Suggestions"
},
"fiscal": {
"title": "Fiscal device",
"intro": "Receipts go to the fiscal device (FIM) through its driver.",
"enabled": "Send receipts to the fiscal device",
"enabledHint": "On each payment.",
"onWarning": "On: every payment sends a receipt. Check the folders and the VAT groups.",
"type": "Driver",
"typeHint": "Only the text-file driver (dTEC100extra) for now.",
"types": {
"txt_file": "Text files (dTEC100extra)"
},
"clerk": "Clerk number",
"clerkHint": "Sent with each receipt (CR / CD commands).",
"eftpos": "Card terminal number",
"eftposHint": "Sent with card payments (CD command).",
"wholeNumber": "A whole number above zero.",
"foldersTitle": "Folders",
"foldersIntro": "The server and the driver exchange files through two folders the server can reach (a mounted folder or a network path).",
"out": "Outgoing (to the driver)",
"outHint": "The server writes here; the driver reads it.",
"in": "Incoming (from the driver)",
"inHint": "The driver writes its replies here.",
"test": "Check the folders",
"reachable": "Both folders can be reached.",
"unreachable": "A folder can't be reached",
"endTitle": "Receipt end lines",
"endIntro": "Up to five lines printed at the end of each receipt; leave the others empty.",
"line": "Line {{n}}",
"vatTitle": "VAT groups",
"vatIntro": "As programmed in the fiscal device: its number and a name to recognise it by. Products use them.",
"noVat": "No VAT groups yet.",
"machineId": "Number",
"vatName": "Name",
"vatNameHint": "e.g. Food, Drinks, Alcohol",
"removeVat": "Remove this group",
"addVat": "Add a group"
},
"dev": {
"warning": "For testing only. Don't leave these on while the venue is working.",
"title": "Testing",
"spoof": "Pretend to print",
"spoofHint": "Every print job is dropped; the apps behave as if it printed.",
"spoofOn": "On: the printers print nothing."
}
},
"logs": {