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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user