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:
@@ -72,7 +72,7 @@ export default function FeesPage() {
|
||||
{/* left: the fee rules, the areas and the fee's settings as tabs; right: test an order (2026-11-20) */}
|
||||
<div className="grid gap-6 xl:grid-cols-[minmax(0,3fr)_minmax(19rem,1fr)] items-start">
|
||||
<section className="rounded-card border border-line bg-surface shadow-raised min-w-0" data-testid="fees-sections">
|
||||
<Tabs className="px-card" value={section} onChange={setSection}
|
||||
<Tabs inset value={section} onChange={setSection}
|
||||
tabs={[
|
||||
{ id: 'rules', label: t('fees.rules'), badge: data.rules.length || null, testId: 'fees-tab-rules' },
|
||||
{ id: 'areas', label: t('fees.areas'), badge: data.areas.length || null, testId: 'fees-tab-areas' },
|
||||
@@ -160,11 +160,13 @@ function RuleRow({ rule, n, areaNames, first, last, onMove, onToggle, onEdit, on
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="text-caption font-semibold text-ink-3 w-5">{n}</span>
|
||||
<span className="flex-1 min-w-0 text-body font-semibold text-ink truncate">{rule.name}</span>
|
||||
<span className="flex items-center gap-1 shrink-0">
|
||||
<IconButton size="sm" variant="ghost" label={t('fees.up')} disabled={first} onClick={() => onMove(-1)}><ArrowUp size={16} /></IconButton>
|
||||
<IconButton size="sm" variant="ghost" label={t('fees.down')} disabled={last} onClick={() => onMove(1)}><ArrowDown size={16} /></IconButton>
|
||||
<IconButton size="sm" variant="ghost" tone="accent" label={t('fees.edit')} onClick={onEdit}><Pencil size={16} /></IconButton>
|
||||
<IconButton size="sm" variant="ghost" tone="danger" label={t('fees.delete')} onClick={onDelete}><Trash2 size={16} /></IconButton>
|
||||
<Switch className="ml-2" checked={rule.is_active} onChange={onToggle} aria-label={t('fees.active')} />
|
||||
</span>
|
||||
</div>
|
||||
<div className="pl-7 text-label text-ink-2 grid gap-0.5">
|
||||
<span>
|
||||
|
||||
Reference in New Issue
Block a user