feat(manager): the setup wizard and the shell on v2; all of src on the v2 rules (platform-v2 step 6.14b)
- setup wizard (src/pages/setup): welcome (pick the language: the wizard switches at once), the owner's account, the venue (kind, name, staff language, time zone), an optional lock-screen PIN, finish -> sign in; English and Greek - shell (src/shell): AppLayout (license banner in both languages, header, lock button, idle lock / sign-out), Sidebar on a new 'nav' token set in @xenia/ui (light + dark), ProfileDialog (name, username, password, 4-6 digit PIN), licenseContext; App.jsx loads the session and the setup state with react-query (no setState in effects); the header's dead search box gone - Management -> Tables -> List (src/pages/tables, was TablesConfigTab): zones as tabs (drag to reorder), zone name / prefix / colour, add many numbered on, a table's name (6 chars) / zone / seats, twice-used names flagged, off / on / delete, pick several to move, rename in a series or delete (says how many failed) - the old src/ui kit, layouts/, components/Sidebar + EditProfileModal, the 'primary' palette and the .btn/.card/.input classes deleted; NotificationBell / UserMenuButton on tokens; @xenia/ui: nav tokens, 'scrim' in the Tailwind preset - v2.json paths = src (the guards cover all of it); npm run lint = eslint src; argsIgnorePattern for components in JSX - tests: shell.test.mjs (3), e2e setup.mjs (new: a fresh install through the wizard in Greek to the overview, in run-all), manager.mjs 'tables list' (zone, 3 tables, rename series, profile PIN, rail tokens) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -259,6 +259,42 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Nav (the manager's navigation rail, plan step 6.14b) ─────────────────
|
||||
* The dark teal side rail of the manager dashboard: its own set, so the rail keeps the
|
||||
* product's colour whatever the venue's accent, and has a dark-mode version (6.15). */
|
||||
:root {
|
||||
--x-nav-bg-rgb: 17 94 89; /* the rail */
|
||||
--x-nav-raised-rgb: 15 118 110; /* hover, an open group */
|
||||
--x-nav-active-rgb: 13 148 136; /* the page you are on */
|
||||
--x-nav-line-rgb: 13 148 136; /* dividers, a group's left line */
|
||||
--x-nav-ink-rgb: 255 255 255; /* text on the rail */
|
||||
--x-nav-ink-2-rgb: 204 251 241; /* items */
|
||||
--x-nav-ink-3-rgb: 153 246 228; /* section titles, sub-items */
|
||||
--x-nav-dot-rgb: 56 189 248; /* the mark next to the open page */
|
||||
--x-nav-bg: rgb(var(--x-nav-bg-rgb));
|
||||
--x-nav-raised: rgb(var(--x-nav-raised-rgb));
|
||||
--x-nav-active: rgb(var(--x-nav-active-rgb));
|
||||
--x-nav-line: rgb(var(--x-nav-line-rgb));
|
||||
--x-nav-ink: rgb(var(--x-nav-ink-rgb));
|
||||
--x-nav-ink-2: rgb(var(--x-nav-ink-2-rgb));
|
||||
--x-nav-ink-3: rgb(var(--x-nav-ink-3-rgb));
|
||||
--x-nav-dot: rgb(var(--x-nav-dot-rgb));
|
||||
}
|
||||
[data-theme="dark"] {
|
||||
--x-nav-bg-rgb: 4 47 46;
|
||||
--x-nav-raised-rgb: 17 94 89;
|
||||
--x-nav-active-rgb: 15 118 110;
|
||||
--x-nav-line-rgb: 19 78 74;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
[data-theme="system"] {
|
||||
--x-nav-bg-rgb: 4 47 46;
|
||||
--x-nav-raised-rgb: 17 94 89;
|
||||
--x-nav-active-rgb: 15 118 110;
|
||||
--x-nav-line-rgb: 19 78 74;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Board (the kitchen display's design language, plan step 3.2b-2) ───────
|
||||
* A dark board with light cards, for screens read from a distance (kitchen, bar,
|
||||
* and any later "board" screen). Always dark: it doesn't follow data-theme; the
|
||||
|
||||
@@ -24,6 +24,7 @@ export default {
|
||||
extend: {
|
||||
colors: {
|
||||
canvas: c('canvas'),
|
||||
scrim: c('scrim'), // behind dialogs and the lock screen (6.14b)
|
||||
surface: { DEFAULT: c('surface'), 2: c('surface-2'), 3: c('surface-3') },
|
||||
line: { DEFAULT: c('line'), strong: c('line-strong') },
|
||||
ink: { DEFAULT: c('ink'), 2: c('ink-2'), 3: c('ink-3') },
|
||||
@@ -34,6 +35,8 @@ export default {
|
||||
info: tone('info'),
|
||||
// the board design language (kitchen display): bg-board-bg, text-board-ink-2, bg-board-late…
|
||||
board: Object.fromEntries(BOARD.map(n => [n, c(`board-${n}`)])),
|
||||
// the manager's navigation rail (6.14b): bg-nav-bg, text-nav-ink-2, bg-nav-active…
|
||||
nav: Object.fromEntries(['bg', 'raised', 'active', 'line', 'ink', 'ink-2', 'ink-3', 'dot'].map(n => [n, c(`nav-${n}`)])),
|
||||
},
|
||||
fontSize: {
|
||||
caption: ['var(--x-text-caption)', { lineHeight: 'var(--x-leading-caption)' }],
|
||||
|
||||
Reference in New Issue
Block a user