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)