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:
2026-11-23 06:24:44 +02:00
co-authored by Claude Opus 5.5
parent cd8218689c
commit 33a5125abc
15 changed files with 73 additions and 37 deletions
@@ -5,7 +5,7 @@
import { useSearchParams } from 'react-router-dom'
import { useCan, useModule } from '@xenia/access'
import { useTranslation } from '@xenia/i18n'
import { Page, Tabs } from '@xenia/ui'
import { Columns, Page, Tabs } from '@xenia/ui'
import PrintingSettings from '../printing/PrintingSettings'
import CustomerDisplaySettings from './sections/CustomerDisplaySettings'
import DevelopmentSettings from './sections/DevelopmentSettings'
@@ -20,10 +20,10 @@ import IdentitySettings from './sections/IdentitySettings'
const TABS = {
'app-info': () => <SystemSettings />,
venue: () => <VenueSettings />,
venue: () => <Columns><VenueSettings /></Columns>,
identity: () => <IdentitySettings />,
'customer-display': () => <CustomerDisplaySettings />,
'menu-tablets': () => <MenuTabletSettings />,
'menu-tablets': () => <Columns><MenuTabletSettings /></Columns>,
security: () => <SecuritySettings />,
operation: () => <OperationSettings />,
colours: () => <TableColours />,
@@ -49,8 +49,8 @@ export default function SettingsPage() {
const active = tabs.includes(params.get('tab')) ? params.get('tab') : tabs[0]
const Tab = TABS[active]
return (
// settings are forms: the page's form width, centred (the page rule, 2026-11-20)
<Page testId="settings-page" width="form" aria-label={t('settings.title')}
// full width like every page (6F.0, owner 2026-11-23); each tab's cards sit in <Columns>
<Page testId="settings-page" aria-label={t('settings.title')}
top={<Tabs size="lg" value={active} onChange={id => setParams({ tab: id }, { replace: true })}
tabs={tabs.map(id => ({ id, label: t(`settings.tabs.${id}`), testId: `settings-tab-${id}` }))} />}>
<Tab />