feat(manager): Settings full width with its cards in columns, tabs that wrap instead of hiding
Owner 2026-11-23 (plan 6F.0): Settings was the only 880 px page and its 11 tabs scrolled out of
sight ('Operatio...'). Now full width like every page; each tab's cards sit in the new @xenia/ui
<Columns> (cards flow down then across, 34rem columns: two on 1080p, three on an ultrawide, one on a
laptop), settings rows keep switches at the right edge. Tabs everywhere wrap onto another row when
they don't fit. manager_layout e2e: Settings tabs, a 1366x768 screen, every tab visible.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -23,10 +23,11 @@ const PAGES = [
|
||||
'management/approvals', 'management/schedule', 'management/prep-zones', 'management/pricing', 'management/pricing?tab=channels',
|
||||
'management/products', 'management/tables', 'management/tables?tab=floor', 'management/scenes', 'management/signage?tab=playlists', 'management/signage?tab=schedules', 'inventory/throwaways', 'notes',
|
||||
'reports/today', 'reports/store', 'devices', 'license', 'apps', 'settings?tab=operation',
|
||||
'settings?tab=security', 'settings?tab=identity', 'settings?tab=print-fonts', 'settings?tab=venue',
|
||||
]
|
||||
const SHOTS = ['dashboard', 'tables', 'tables?view=qr', 'online-orders?tab=settings', 'crm/contacts', 'crm/customers', 'financials/expenses',
|
||||
'management/products', 'management/tables?tab=floor', 'management/pricing?tab=channels', 'financials/tabs', 'management/staff']
|
||||
const SCREENS = [{ id: '1080p', width: 1920, height: 1080 }, { id: 'ultrawide', width: 3440, height: 1440 }]
|
||||
'management/products', 'management/tables?tab=floor', 'management/pricing?tab=channels', 'financials/tabs', 'management/staff', 'settings?tab=operation']
|
||||
const SCREENS = [{ id: '1080p', width: 1920, height: 1080 }, { id: 'ultrawide', width: 3440, height: 1440 }, { id: 'laptop', width: 1366, height: 768 }]
|
||||
const MODULES = ['connect_orders', 'connect_menu', 'crm', 'tabs', 'expenses', 'inventory', 'notes', 'chat', 'reservations', 'pricing', 'signage', 'staff_planning']
|
||||
|
||||
const backend = await startBackend({ port: 8067, siteId: 'test-site-1', env: { LICENSE_MODE: 'off' } })
|
||||
@@ -69,7 +70,7 @@ try {
|
||||
// the area: the scroller without its scrollbar's room (kept on every page, 2026-11-21)
|
||||
const b = body.getBoundingClientRect(); const s = scroll.getBoundingClientRect()
|
||||
const a = { left: s.left, right: s.left + scroll.clientWidth, width: scroll.clientWidth }
|
||||
// a form page (settings) is centred at its own width
|
||||
// a form page (width="form": none left since 6F.0) is centred at its own width
|
||||
const form = body.classList.contains('x-page__body--form')
|
||||
return { form, left: b.left - a.left, right: a.right - b.right, width: b.width, area: a.width, cap: 2200,
|
||||
scrolls: scroll.scrollHeight <= scroll.clientHeight + 1 || getComputedStyle(scroll).overflowY === 'auto' }
|
||||
@@ -82,6 +83,15 @@ try {
|
||||
}
|
||||
r.check(`${screen.id}: every page fills its area up to 2200 px, centred, and scrolls`, bad.length === 0, bad.join('\n'))
|
||||
|
||||
// Settings (6F.0, owner 2026-11-23): full width like every page, and every tab's button inside
|
||||
// the window (tabs that don't fit wrap onto another row, never hidden in a sideways scroll)
|
||||
await page.goto(`${APP}/settings`)
|
||||
await page.getByTestId('settings-page').waitFor()
|
||||
const tabsIn = await page.evaluate(() => [...document.querySelectorAll('[data-testid^="settings-tab-"]')]
|
||||
.map(e => { const b = e.getBoundingClientRect(); return { id: e.dataset.testid, in: b.left >= 0 && b.right <= innerWidth && b.width > 0 } }))
|
||||
r.check(`${screen.id}: settings: every tab is visible (${tabsIn.length})`, tabsIn.length >= 8 && tabsIn.every(x => x.in),
|
||||
JSON.stringify(tabsIn.filter(x => !x.in)))
|
||||
|
||||
// Products (2026-11-21): the page doesn't scroll, its two panes do, each on its own
|
||||
await page.goto(`${APP}/management/products`)
|
||||
await page.getByTestId('products-panel').waitFor()
|
||||
|
||||
Reference in New Issue
Block a user