feat(manager): UI review pass 3 (fees tabs, products panes, floor editor, permissions search, pricing heads)

- Online orders → Settings: the fee tabs breathe (inset strip); a rule's buttons
  and switch centred together.
- Products: categories and list as panes that scroll on their own, headers and
  footers stay; the list sunken with white rows; the category search is the
  shared SearchInput. Product editor: "Make main" text instead of a star, the
  left tabs share the width.
- Floor editor: no "+" next to a corner; − / fit width / whole plan / +;
  "Edit the floor's shape" → "Save shape" (saves the shape and size at once);
  sizes in grid cells by half cells (steppers; typing snapped every keystroke
  before), resize handles on every unrotated table and thing, half-cell snapping.
- MediaField: the picture's name under the buttons, Remove red on hover.
- Staff permissions: a search box at the top.
- Prep zone name hint fixed. Offers & pricing: title first, then tabs; every tab
  has its head with the New button at the top right.
- Tests: floor cells, e2e (cell steppers, no + near a corner, Save shape,
  permission search, products panes).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-20 17:51:17 +02:00
co-authored by Claude Opus 5.5
parent 181b2f16b0
commit 301502965c
20 changed files with 257 additions and 97 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ export function resizeBox(thing, handle, px, py, plan, min = 20) {
let right = thing.x + thing.width / 2
let top = thing.y - thing.height / 2
let bottom = thing.y + thing.height / 2
const at = v => (grid ? snap(v, grid) : Math.round(v))
const at = v => (grid ? snap(v, grid / 2) : Math.round(v)) // half cells (2026-11-21)
if (handle.includes('w')) left = Math.min(at(clamp(px, 0, plan.width)), right - min)
if (handle.includes('e')) right = Math.max(at(clamp(px, 0, plan.width)), left + min)
if (handle.includes('n')) top = Math.min(at(clamp(py, 0, plan.height)), bottom - min)
+15 -2
View File
@@ -249,6 +249,8 @@
"custom": "Προσαρμοσμένος"
},
"permissions": {
"search": "Αναζήτηση δικαιωμάτων",
"noMatch": "Κανένα δικαίωμα δεν ταιριάζει με την αναζήτηση.",
"column": "Δικαιώματα",
"open": "Δικαιώματα",
"count_one": "{{count}} δικαίωμα",
@@ -2078,6 +2080,7 @@
"noCategory": "Δεν είναι ακόμα σε κατηγορία.",
"main": "Κύρια",
"makeMain": "Ορισμός ως κύρια κατηγορία",
"setMain": "Ορισμός κύριας",
"removeCategory": "Αφαίρεση από την κατηγορία",
"addCategory": "Προσθήκη κατηγορίας…",
"prepZones": "Ζώνες προετοιμασίας",
@@ -2646,7 +2649,17 @@
"shapeHowTo": "Ένας χώρος έχει τουλάχιστον 3 γωνίες.",
"colour": "Χρώμα",
"noColour": "Κανένα",
"areaResizeHint": "Σύρετε τις λαβές στις πλευρές και τις γωνίες για να αλλάξετε το μέγεθος."
"areaResizeHint": "Σύρετε τις λαβές στις πλευρές και τις γωνίες για να αλλάξετε το μέγεθος.",
"saveShape": "Αποθήκευση σχήματος",
"shapeSaved": "Το σχήμα του χώρου αποθηκεύτηκε.",
"zoomIn": "Μεγέθυνση",
"zoomOut": "Σμίκρυνση",
"cells_one": "{{value}} κελί",
"cells_other": "{{value}} κελιά",
"decimal": ",",
"length": "Μήκος",
"thickness": "Πάχος",
"cellsHint": "Σε κελιά του πλέγματος (ανά μισό κελί): ένα κελί είναι το μέγεθος του πλέγματος, οπότε τα μεγέθη ακολουθούν την ανάλυσή του. Ή σύρετε τις λαβές στις πλευρές και τις γωνίες."
},
"orders": {
"back": "Πίσω",
@@ -2851,7 +2864,7 @@
"saved": "Η ζώνη αποθηκεύτηκε",
"about": "Η ζώνη",
"name": "Όνομα",
"nameHint": "Το εσωτερικό όνομα της ζώνης, για το σύστημα (λίστες, αναφορές, ρυθμίσεις). Το προσωπικό βλέπει το όνομα από κάτω.",
"nameHint": "Το εσωτερικό όνομα της ζώνης, για το σύστημα (λίστες, αναφορές, ρυθμίσεις). Το προσωπικό βλέπει αντί γι' αυτό το «Όνομα στα μηνύματα».",
"namePh": "π.χ. Κουζίνα, Ψησταριά, Μπαρ",
"nameNeeded": "Δώστε όνομα στη ζώνη.",
"shown": "Όνομα στα μηνύματα",
+15 -2
View File
@@ -249,6 +249,8 @@
"custom": "Custom"
},
"permissions": {
"search": "Search permissions",
"noMatch": "No permission matches this search.",
"column": "Permissions",
"open": "Permissions",
"count_one": "{{count}} permission",
@@ -2078,6 +2080,7 @@
"noCategory": "Not in any category yet.",
"main": "Main",
"makeMain": "Make it the main category",
"setMain": "Make main",
"removeCategory": "Remove from this category",
"addCategory": "Add a category…",
"prepZones": "Prep zones",
@@ -2646,7 +2649,17 @@
"shapeHowTo": "A floor has at least 3 corners.",
"colour": "Colour",
"noColour": "None",
"areaResizeHint": "Drag the handles on its sides and corners to resize it."
"areaResizeHint": "Drag the handles on its sides and corners to resize it.",
"saveShape": "Save shape",
"shapeSaved": "The floor's shape is saved.",
"zoomIn": "Zoom in",
"zoomOut": "Zoom out",
"cells_one": "{{value}} cell",
"cells_other": "{{value}} cells",
"decimal": ".",
"length": "Length",
"thickness": "Thickness",
"cellsHint": "In grid cells (by half cells): a cell is the grid's size, so sizes follow the grid resolution. Or drag the handles on its sides and corners."
},
"orders": {
"back": "Back",
@@ -2851,7 +2864,7 @@
"saved": "Zone saved",
"about": "The zone",
"name": "Name",
"nameHint": "The zone's own name, used inside the system (lists, reports, settings). Staff see the name below.",
"nameHint": "The zone's own name, used inside the system (lists, reports, settings). Staff see its \"Name in messages\" instead.",
"namePh": "e.g. Kitchen, Grill, Bar",
"nameNeeded": "Give the zone a name.",
"shown": "Name in messages",