feat: major dashboard & waiter PWA overhaul

- Manager dashboard: replaced monolithic DashboardTab/OperationsPage with new
  DashboardPage; added OrderDetailModal, ShiftDetailModal, DeleteConfirmModal,
  PaymentMethodModal; updated Sidebar routing and App navigation
- Reports: reworked WorkDaySummary, OrderHistory, ShiftsOverview with detail modals
- Backend routers: extended orders, reports, shifts, products, business_day endpoints;
  updated cloud_sync service
- Waiter PWA: refreshed app icons, improved ConnectionLostModal UX, updated
  TableCard, SSEContext, connectionStore; added useProductCache hook; vite config tweaks

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-21 15:24:54 +03:00
co-authored by Claude Sonnet 4.6
parent aa92623802
commit 5de89a722c
40 changed files with 1906 additions and 1171 deletions
+11 -3
View File
@@ -7,9 +7,17 @@ import Dexie from 'dexie'
const db = new Dexie('pos_snapshot')
db.version(1).stores({
tables: 'id, group_id, is_active', // TableOut snapshots
orders: 'id, table_id, status', // ActiveOrderSlim + OrderOut snapshots
offline_payments: '++localId, uuid, synced', // queued emergency payments
tables: 'id, group_id, is_active',
orders: 'id, table_id, status',
offline_payments: '++localId, uuid, synced',
})
db.version(2).stores({
tables: 'id, group_id, is_active',
orders: 'id, table_id, status',
offline_payments: '++localId, uuid, synced',
products: 'id, category_id, is_available',
categories: 'id, parent_id',
})
export default db