feat(manager): the setup wizard and the shell on v2; all of src on the v2 rules (platform-v2 step 6.14b)

- setup wizard (src/pages/setup): welcome (pick the language: the wizard switches at once), the owner's account, the venue
  (kind, name, staff language, time zone), an optional lock-screen PIN, finish -> sign in; English and Greek
- shell (src/shell): AppLayout (license banner in both languages, header, lock button, idle lock / sign-out), Sidebar on a
  new 'nav' token set in @xenia/ui (light + dark), ProfileDialog (name, username, password, 4-6 digit PIN), licenseContext;
  App.jsx loads the session and the setup state with react-query (no setState in effects); the header's dead search box gone
- Management -> Tables -> List (src/pages/tables, was TablesConfigTab): zones as tabs (drag to reorder), zone name / prefix /
  colour, add many numbered on, a table's name (6 chars) / zone / seats, twice-used names flagged, off / on / delete,
  pick several to move, rename in a series or delete (says how many failed)
- the old src/ui kit, layouts/, components/Sidebar + EditProfileModal, the 'primary' palette and the .btn/.card/.input classes deleted;
  NotificationBell / UserMenuButton on tokens; @xenia/ui: nav tokens, 'scrim' in the Tailwind preset
- v2.json paths = src (the guards cover all of it); npm run lint = eslint src; argsIgnorePattern for components in JSX
- tests: shell.test.mjs (3), e2e setup.mjs (new: a fresh install through the wizard in Greek to the overview, in run-all),
  manager.mjs 'tables list' (zone, 3 tables, rename series, profile PIN, rail tokens)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-19 20:01:23 +02:00
co-authored by Claude Opus 5.5
parent f6fcfb7736
commit 294b769850
40 changed files with 1680 additions and 2766 deletions
+195 -3
View File
@@ -48,12 +48,35 @@
"deliveryFees": "Online ordering",
"qrCodes": "Table QR codes",
"media": "Media",
"signage": "Signage"
"signage": "Signage",
"main": "Main menu"
},
"profile": {
"edit": "Edit profile",
"signOut": "Sign out",
"language": "Language"
"language": "Language",
"back": "Back",
"save": "Save",
"saved": "Profile saved",
"name": "Name",
"username": "Username",
"password": "Password",
"keepHint": "Leave empty to keep your password.",
"current": "Current password",
"next": "New password",
"again": "New password again",
"pin": "PIN",
"pinHint": "For the lock screen. Leave empty to keep yours.",
"newPin": "New PIN",
"pinAgain": "New PIN again",
"wrong": {
"username": "Enter a username.",
"current": "Enter your current password.",
"short": "At least 6 characters.",
"mismatch": "The two passwords don't match.",
"pin": "4 to 6 digits.",
"pinMismatch": "The two PINs don't match."
}
},
"login": {
"title": "Sign in",
@@ -678,7 +701,61 @@
"setup": {
"language": "Staff language",
"timezone": "Time zone",
"languageHint": "The language of staff screens (each person can choose their own) and of printed tickets and reports."
"languageHint": "The language of staff screens (each person can choose their own) and of printed tickets and reports.",
"welcome": "Welcome to Xenia POS",
"welcomeIntro": "A few steps and your venue is ready.",
"plan": {
"account": "Your account",
"venue": "Your venue",
"ready": "Ready to go"
},
"start": "Start",
"stepOf": "Step {{n}} of {{of}}",
"back": "Back",
"next": "Next",
"skip": "Skip",
"accountTitle": "Your account",
"accountIntro": "The owner's account: it can do everything.",
"username": "Username",
"fullName": "Full name",
"email": "E-mail",
"emailHint": "Optional.",
"password": "Password",
"confirm": "Password again",
"venueTitle": "Your venue",
"venueIntro": "Pick all that fit; you can change them later.",
"kind": "Kind",
"kinds": {
"restaurant": "Restaurant",
"bar": "Bar",
"coffee_shop": "Café",
"fast_food": "Fast food"
},
"venueName": "Venue name",
"venueNameExample": "e.g. The Golden Fork",
"pinTitle": "A PIN for the lock screen",
"pinIntro": "Optional: 4 to 6 digits to unlock the dashboard without your password.",
"pin": "PIN",
"pinAgain": "PIN again",
"doneTitle": "All set",
"doneIntro": "Your venue is ready. Sign in and add your menu, tables and staff.",
"next3": {
"menu": "Add your menu and products",
"tables": "Set up tables and zones",
"staff": "Add your staff"
},
"finish": "Finish and sign in",
"footer": "Xenia POS · first-time setup",
"wrong": {
"required": "Required.",
"spaces": "No spaces.",
"email": "This doesn't look like an e-mail address.",
"short": "At least 6 characters.",
"mismatch": "The two passwords don't match.",
"pickOne": "Pick at least one.",
"pin": "4 to 6 digits.",
"pinMismatch": "The two PINs don't match."
}
},
"fees": {
"title": "Delivery areas and fees",
@@ -3684,5 +3761,120 @@
"deleteYes": "Delete",
"deleted": "Deleted",
"back": "Back"
},
"shell": {
"where": "You are here",
"lock": "Lock the screen",
"banner": {
"adminLocked": "The system was locked by the administrator. Contact support.",
"adminPending": "The administrator will lock the system when the current business day closes.",
"clock": "The server's clock went back in time. Fix the server's date and time, or connect it to the internet.",
"unverified": "There is no verified license yet. Connect the server to the internet to activate it.",
"expired_one": "The license expired {{count}} day ago ({{date}}). Renew it or contact support.",
"expired_other": "The license expired {{count}} days ago ({{date}}). Renew it or contact support.",
"grace_one": "The license expired on {{date}}. {{left}} grace days are left: renew it to avoid the lock.",
"grace_other": "The license expired on {{date}}. {{left}} grace days are left: renew it to avoid the lock.",
"expiring_one": "The license ends in {{count}} day ({{date}}). Renew it in time.",
"expiring_other": "The license ends in {{count}} days ({{date}}). Renew it in time.",
"offline_one": "No contact with the cloud for {{count}} day. Everything works; the license is valid until {{date}}.",
"offline_other": "No contact with the cloud for {{count}} days. Everything works; the license is valid until {{date}}.",
"connect": "Connect the server to the internet so it can renew."
}
},
"tablesList": {
"all": "All",
"noZone": "No zone",
"zones": "Zones",
"counts": "{{tables}} tables · {{zones}} zones",
"offCount_one": "{{count}} off",
"offCount_other": "{{count}} off",
"showOff": "Show the ones off",
"pick": "Pick",
"picked_one": "{{count}} picked",
"picked_other": "{{count}} picked",
"pickAll": "Pick all",
"unpickAll": "Unpick all",
"pickOne": "Pick {{name}}",
"moveZone": "Move to a zone",
"renameSeries": "Rename in a series",
"delete": "Delete",
"newZone": "New zone",
"newTable": "New table",
"editZone": "Edit the zone",
"addMany": "Add many",
"numbered": "Table {{n}}",
"duplicate": "Same name twice",
"seats_one": "{{count}} seat",
"seats_other": "{{count}} seats",
"off": "Off",
"hasOrder": "It has an open order",
"edit": "Edit {{name}}",
"turnOff": "Turn {{name}} off",
"turnOn": "Turn {{name}} on",
"deleteOne": "Delete {{name}}",
"none": "No tables.",
"noneActive": "No tables in use.",
"saved": "Saved",
"added": "Table added",
"deleted": "Table deleted",
"turnedOff": "Table turned off",
"someFailed_one": "{{count}} table couldn't be changed",
"someFailed_other": "{{count}} tables couldn't be changed",
"moved_one": "{{count}} table moved",
"moved_other": "{{count}} tables moved",
"renamed_one": "{{count}} table renamed",
"renamed_other": "{{count}} tables renamed",
"deletedMany_one": "{{count}} table deleted",
"deletedMany_other": "{{count}} tables deleted",
"offTitle": "Turn {{name}} off?",
"offBody": "It is hidden and can't be used. You can turn it on again.",
"turnOffYes": "Turn off",
"deleteTitle": "Delete {{name}}?",
"deleteBody": "It is deleted for good.",
"deleteYes": "Delete",
"deleteManyTitle_one": "Delete {{count}} table?",
"deleteManyTitle_other": "Delete {{count}} tables?",
"deleteManyBody": "They are deleted for good (tables with an open order are kept).",
"back": "Back",
"save": "Save",
"add": "Add",
"name": "Name",
"nameHint": "Up to {{max}} characters (it fits on the phones' cards). Empty: numbered for you.",
"nameLong": "Up to {{max}} characters.",
"nameExample": "e.g. B3",
"zone": "Zone",
"seatsLabel": "Seats",
"seatsHint": "Optional.",
"seatsWrong": "A number from 1 to 99.",
"zoneSaved": "Zone saved",
"zoneDeleted": "Zone deleted",
"zoneDeleteTitle": "Delete the zone {{name}}?",
"zoneDeleteBody": "Its tables stay, without a zone.",
"zoneName": "Zone name",
"zoneNameNeeded": "Enter a name.",
"zoneExample": "e.g. Terrace",
"prefix": "Prefix",
"prefixHint": "Suggested when adding many tables (e.g. T → T-1, T-2…).",
"colour": "Colour",
"noColour": "No colour",
"inZone": "In {{name}}",
"batchHint": "Numbered on from the zone's last one.",
"howMany": "How many",
"addSeries": "Add {{from}} … {{to}}",
"addedMany_one": "{{count}} table added",
"addedMany_other": "{{count}} tables added",
"seriesLong": "The last name would be {{last}}: over {{max}} characters.",
"moveTitle_one": "Move {{count}} table",
"moveTitle_other": "Move {{count}} tables",
"toZone": "To the zone",
"move": "Move",
"renameTitle_one": "Rename {{count}} table",
"renameTitle_other": "Rename {{count}} tables",
"renameIntro": "In the order they are listed.",
"startAt": "Start at",
"renameYes_one": "Rename {{count}} table",
"renameYes_other": "Rename {{count}} tables",
"andMore_one": "and {{count}} more",
"andMore_other": "and {{count}} more"
}
}