feat(manager): the overview, online orders and the day summary on v2 (platform-v2 step 6.2)
- DashboardPage (2.8k lines) → src/pages/overview/: OverviewPage + cards (shifts, tables, pending prints, notes, bookings, messages) and dialogs (order at a glance, shift review / end with the cash handover, day summary with cash count and checks); arithmetic in overviewLogic.js (tests/overview.test.mjs). Data via useLiveQuery: orders and tables live, day and shifts every 15 s. Bookings typed in venue time; decline reason in a dialog. - OnlineOrdersPage → src/pages/online/ on react-query + live events; unused API helpers dropped. - WorkdaySummaryModal → overview/DaySummaryDialog + DaySummaryTabs. - Every text in manager.json (en + el, 342 keys); tokens only; v2.json adds overview, hooks. - Backend: business day open/close answer only with codes (license.locked, license.expired, business_day.orders_open); XeniaError's v1 `detail` removed. - @xenia/i18n: formatDateTime with Intl options threw "unknown date style" (fixed, tested). - e2e manager.mjs: open the day, a shift (start, stats, end short), a live table, a booking, day stats, Greek, close the day (forced), online orders. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -13,10 +13,10 @@ import LoginPage from './pages/LoginPage'
|
||||
import SetupWizard from './pages/SetupWizard'
|
||||
|
||||
// Operation
|
||||
import DashboardPage from './pages/DashboardPage'
|
||||
import OverviewPage from './pages/overview/OverviewPage'
|
||||
import TablesPage from './pages/TablesPage'
|
||||
import OrderDetailPage from './pages/OrderDetailPage'
|
||||
import OnlineOrdersPage from './pages/OnlineOrdersPage'
|
||||
import OnlineOrdersPage from './pages/online/OnlineOrdersPage'
|
||||
import FeesPage from './pages/online/FeesPage'
|
||||
import QrCodesPage from './pages/online/QrCodesPage'
|
||||
|
||||
@@ -146,7 +146,7 @@ export default function App() {
|
||||
<Route index element={<Navigate to="/dashboard" replace />} />
|
||||
|
||||
{/* ── Operation ── */}
|
||||
<Route path="dashboard" element={<DashboardPage />} />
|
||||
<Route path="dashboard" element={<OverviewPage />} />
|
||||
<Route path="tables" element={<TablesPage />} />
|
||||
<Route path="online-orders" element={<OnlineOrdersPage />} />
|
||||
<Route path="online/fees" element={<FeesPage />} />
|
||||
|
||||
Reference in New Issue
Block a user