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:
@@ -8,7 +8,7 @@ import toast from 'react-hot-toast'
|
||||
import { Check, ChevronDown, Pin, PinOff, Plus, Trash2 } from 'lucide-react'
|
||||
import { errorMessage } from '@xenia/api'
|
||||
import { useFormat, useTranslation } from '@xenia/i18n'
|
||||
import { Button, Dialog, IconButton, Input, Switch, Textarea, cx } from '@xenia/ui'
|
||||
import { Button, Dialog, IconButton, Input, Page, Switch, Textarea, cx } from '@xenia/ui'
|
||||
import client from '../../api/client'
|
||||
import { useLiveQuery } from '../../live/useLiveQuery'
|
||||
import { Panel } from '../reports/kit/parts'
|
||||
@@ -36,8 +36,7 @@ export default function NotesPage() {
|
||||
const { pinned, rest } = splitNotes(notes)
|
||||
const { open, done } = splitTodos(todos)
|
||||
return (
|
||||
<div className="h-full overflow-y-auto p-4 lg:p-6" data-testid="notes-page">
|
||||
<div className="max-w-6xl mx-auto grid gap-4">
|
||||
<Page testId="notes-page">
|
||||
<header>
|
||||
<h1 className="text-title font-semibold text-ink">{t('notes.title')}</h1>
|
||||
<p className="text-label text-ink-2">{t('notes.subtitle', { notes: notes.length, todos: open.length })}</p>
|
||||
@@ -62,7 +61,6 @@ export default function NotesPage() {
|
||||
</div>
|
||||
</Panel>
|
||||
</div>
|
||||
</div>
|
||||
{removing && (
|
||||
<Dialog open size="sm" onClose={() => setRemoving(null)} title={t(removing.kind === 'note' ? 'notes.deleteNote' : 'notes.deleteTodo')}
|
||||
description={removing.item.body.length > 120 ? `${removing.item.body.slice(0, 120)}…` : removing.item.body}
|
||||
@@ -71,12 +69,12 @@ export default function NotesPage() {
|
||||
<Button variant="danger" loading={remove.isPending} onClick={() => remove.mutate(removing, { onSuccess: () => setRemoving(null) })} data-testid="notes-delete-confirm">{t('notes.deleteYes')}</Button>
|
||||
</>} />
|
||||
)}
|
||||
</div>
|
||||
</Page>
|
||||
)
|
||||
}
|
||||
|
||||
function Label({ children }) {
|
||||
return <span className="text-caption font-semibold uppercase tracking-wide text-ink-3">{children}</span>
|
||||
return <span className="text-overline font-semibold uppercase tracking-wide text-ink-3">{children}</span>
|
||||
}
|
||||
|
||||
function NewNote() {
|
||||
|
||||
Reference in New Issue
Block a user