feat(products): every menu text per language, the editor's language picker, service item dialog

- Alembic 0042: a `translations` column on every choice (groups, quick options,
  extras, ingredients, preference sets and choices; sub-choices and shared
  sub-sets in their JSON); the texts typed so far become the text in their
  language (Greek letters → el, else the venue's); the product's old quick map
  moves onto the quick options. API, catalogue bundle and the cloud's quick
  option names carry them; names are checked before anything is replaced.
- Editor: a language picker beside the close button (Default = the venue's
  language, plus every menu language) drives every name and description, left
  and right; an empty language shows what is used instead as its placeholder.
  The shown name is the venue language's, else any (never mixed).
- Choices: one name field; the shared controls at one height (heart red when on,
  several / compact… chips coloured when on, delete red on hover); "+ Preference"
  at the right end of the tab strip; preference groups made inside a preference.
- Categories: the shared dropdown to add one; the category dialog per language.
- The service item switch is gone: "New service item" opens its own small dialog.
- UI: Dialog headerEnd; a toned toggle keeps its colour while pressed.
- Tests: backend (choice names, migration 0042), access, editor logic, e2e.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-20 18:21:50 +02:00
co-authored by Claude Opus 5.5
parent 301502965c
commit 15413dea1b
30 changed files with 853 additions and 313 deletions
+4
View File
@@ -1929,6 +1929,7 @@
"view_list": "Λίστα",
"view_grid": "Πλέγμα",
"new": "Νέο προϊόν",
"newService": "Νέο είδος σερβιρίσματος",
"price": "Τιμή",
"from": "από",
"to": "έως",
@@ -2046,6 +2047,9 @@
"done_other": "{{count}} προϊόντα ενημερώθηκαν"
},
"editor": {
"serviceNewTitle": "Νέο είδος σερβιρίσματος",
"langDefault": "Προεπιλογή ({{language}})",
"langDefaultHint": "Η γλώσσα του καταστήματος",
"newTitle": "Νέο προϊόν",
"editTitle": "Επεξεργασία: {{name}}",
"copy": "Αντιγραφή",