feat(manager): design pass 1 — every page on <Page>, shared toolbars, fees under Online orders, QR codes under Tables, day stats reworked
From the owner's page-by-page review (2026-11-20): - every page root is <Page> (scrolls, fills 1080p, 16:9 centred on ultrawides); not yet: products, management/tables, stock (next pass) - /dashboard: more padding in cards (p-card), quieter secondary text, 11px uppercase labels everywhere (text-overline) - day stats: xl dialog, "● Day running · Opened …" as text, the six figures in equal boxes, "On tabs" in the payments bar, shared Tabs - /tables: Segmented List / Map / QR codes (?view=; /online/qr redirects), filter chips + zones multi-select at one height, the card itself opens the table (button removed), cards ~20% wider - /online-orders: shared Tabs with Settings (= the old /online/fees page, which redirects to ?tab=settings); orders fill the width - contacts, customers, expenses: PageHeader + Toolbar + SearchInput + multi-select Dropdowns (kinds; statuses, categories); table cells vertically centred; the Spent tip opens on hover - filterCards / filterContacts / filterExpenses take several values (unit tests added) - docs/DESIGN.md: the design language (CS-20 in the pack README) - tests/e2e/manager_layout.mjs: the page rule at 1920x1080 and 3440x1440; manager.mjs and manager_look.mjs follow the moved pages Verified: manager build + lint (0 errors), unit tests (manager 99, ui 24, i18n 31, api 25, access 8), i18n guard, manager_layout.mjs all passed, manager.mjs 228 checks all passed. Not checked: the waiter app and the terminal by eye (they only get the muted ink-2 token). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -36,6 +36,8 @@ test('a payment is above zero and no more than what is due', () => {
|
||||
test('filters, totals, late ones and what each supplier is owed', () => {
|
||||
assert.deepEqual(filterExpenses(expenses, { status: 'unpaid' }).map(e => e.id), [1, 3])
|
||||
assert.deepEqual(filterExpenses(expenses, { category: 'rent' }).map(e => e.id), [2])
|
||||
assert.deepEqual(filterExpenses(expenses, { status: ['due', 'partial'] }).map(e => e.id), [1, 3]) // multi-select
|
||||
assert.deepEqual(filterExpenses(expenses, { status: [], category: ['rent', 'supplier'] }).map(e => e.id), [1, 2, 3])
|
||||
assert.deepEqual(filterExpenses(expenses, { q: 'nikos tins' }).map(e => e.id), [3])
|
||||
assert.deepEqual(filterExpenses(expenses, { q: 'γάλα' }).map(e => e.id), [1])
|
||||
assert.equal(isLate(expenses[0], '2026-11-19', key), true)
|
||||
@@ -51,6 +53,7 @@ test('a contact: name needed, a wrong e-mail caught, empty fields cleared', () =
|
||||
assert.deepEqual(contactBody({ ...f, name: ' Dairy ', phone: ' ' }), { name: 'Dairy', type: 'supplier', phone: null, email: null, address: null, notes: null })
|
||||
const list = [{ id: 1, name: 'Dairy Nikos', type: 'supplier', phone: '2310' }, { id: 2, name: 'DEH', type: 'utility' }]
|
||||
assert.deepEqual(filterContacts(list, { type: 'utility' }).map(c => c.id), [2])
|
||||
assert.deepEqual(filterContacts(list, { type: ['utility', 'supplier'] }).map(c => c.id), [1, 2])
|
||||
assert.deepEqual(filterContacts(list, { q: '2310' }).map(c => c.id), [1])
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user