feat: hybrid cloud sync + fix table/KOT state after payment
sashank1989
46ae36f
- Add hybrid sync architecture (local/cloud deployment modes)
- Add sync outbox worker, order relay, and sync endpoints
- Mark KOTs as served with completed_at after full payment
- Add payment sync enqueue after successful payment
- Fix frontend tables: use active_order field (was current_order)
- Add external order relay for Swiggy/Zomato/WhatsApp webhooks
- Cloud receives webhooks, local polls every 15s for new orders
feat: KDS prep time freeze on completion + REOPENED badge for returning orders
sashank1989
896a5be
- Add CompletedAt timestamp to KOT model, set when all items marked ready
- KDS API returns all KOTs for active orders (including completed ones for context)
- History view shows frozen prep time badge (green clock icon)
- Active view: reopened orders get red border, pulsing REOPENED badge,
previous batch items greyed out with checkmarks, live timer on new items
- Pending items sidebar filters out completed/served KOTs
feat: add Pine Labs EDC integration and WhatsApp conversational ordering
sashank1989
45d313d
EDC: backend handler with initiate/status/cancel/callback endpoints, background polling, auto-payment recording. Frontend EDC payment flow in POS and Captain pages with animated overlay. Admin EDC config tab with enable toggle and terminal settings.
WhatsApp: rewritten conversational ordering handler with full session flow.
feat: make per-item notes always visible in POS and captain cart views
sashank1989
c05405f
feat: add per-item comments in POS cart with notes in cumulative KDS view
sashank1989
2126cb7
feat: add Swiggy/Zomato integration with webhook infrastructure, online order management, and platform config
sashank1989
5e69f93
feat: add thermal printer management with routing rules and print bill button
fix: self-healing counter prevents order number collisions
sashank1989
094d117
NextNumber() now queries max existing sequence number before incrementing,
preventing UNIQUE constraint violations when counter is out of sync.
Also changed counter reset from daily to monthly to match YYMM format.
feat: auto-remove completed orders from KDS — timer stops, new KOTs bring order back
sashank1989
cd0b31f
feat: add KOT History drawer to KDS for traceability and reverification
sashank1989
8089dcf
fix: WAL checkpoint before backup — DB was 4KB (schema only) because WAL held all data
sashank1989
a66f062
feat: redesign KDS with item-level food-ready, order grouping, and pending side pane
sashank1989
6fdf098
fix: disable AllowCredentials when CORS origins is wildcard - Fiber panics on this combination
sashank1989
d1b20be
fix: include cmd/server directory - was excluded by bare 'server' pattern in gitignore
sashank1989
01c8f6f
Initial commit: HSS POS restaurant management system