Repository navigation
Description
Problem or motivation
Customers currently have no way to browse the menu or start an order from their own device at a table. Staff have to walk over and hand out physical menus, and there's no self-service path for the (very common) "scan a QR code at the table" flow that many restaurants now expect. This is especially valuable for peak-hour table turnover and reducing staff trips just to hand out menus.
Current behavior
Tables are created and managed in Table Management, but they have no externally-facing identity — there is no per-table URL, QR code, or online-facing menu. The menu only exists inside the POS UI; it is not exposed anywhere a customer's phone could reach.
Desired outcome
When a table is created (or for existing tables), the operator can generate a QR code for that specific table. Scanning it opens an interactive, mobile-friendly menu in the customer's browser with that table pre-selected/auto-associated — no manual table entry needed.
Proposed in two phases:
Phase 1 — View-only digital menu
- Generate a unique QR code per table (tied to a table ID / stable token).
- Scanning opens a mobile web view of the current menu (categories, items, prices, descriptions/images, availability) for that store.
- No ordering, cart, or payment capability — display only.
- Menu content stays in sync with what's configured in the POS (no separate content management step).
Phase 2 — Ordering via relay
- Customers can build a cart and submit an order from the same interactive menu.
- Orders are sent from our hosted server to the POS via a relay/sync mechanism (the POS itself may remain offline-first and not directly internet-exposed).
- Order arrives in the POS as a normal order tied to the correct table, going through existing kitchen/KDS and billing flows.
- Needs conflict handling for offline POS / relay delivery failures, and clear operator visibility into "pending customer orders."
Proposed technical approach (optional)
- Requires exposing (at least) the menu online in some form — this is a new architectural surface for FloCafe, which is otherwise offline-first, so it needs explicit design/scoping before implementation (what gets hosted, where, multi-tenant isolation, how a table token maps to a store/table, etc.).
- QR code encodes a URL with a per-table token (e.g.
https://<hosted-menu-domain>/<store>/<table-token>), generated/regenerated from Table Management in the POS. - Phase 1 can likely be a static/read-only export or periodic sync of menu data to the hosted layer — no live connection back into the POS required.
- Phase 2 requires a relay component so the always-online hosted order intake can reach an offline-first POS (queued delivery, retries, and an operator-facing "unsynced customer orders" state).
Alternatives considered (optional)
None yet — this is the initial proposal; alternative designs (e.g., an on-prem local network menu instead of an internet-hosted one) may come up during scoping discussion.
Area
Table Management
Additional context
- This intersects with Table Management (table identity/QR generation), Inventory/Products/Menu (what gets shown online), and KDS/order flow (phase 2 order intake).
- Given the offline-first core invariant, phase 2 in particular needs architectural discussion before implementation begins — flagging per the issue template note that opening this issue captures the proposal, not an approved implementation.
Activity
itsbkm commentedon Aug 23, 2026
Field research: what other operators have learned about QR table ordering
Summarized from restaurant-owner/operator discussion threads (Reddit: r/restaurantowners, r/restaurants, r/SaaS, r/smallbusiness, r/restaurateur, r/StartUpIndia, r/Tech4LocalBusiness), condensed into our own words below rather than quoted.
Physical QR placement (relevant to Phase 1)
Functionality signals (relevant to Phase 1 → Phase 2 design)
Adoption & business considerations (context, not blocking scope)
Operational practices worth designing for
These are operator-reported patterns from public discussion threads, not confirmed requirements — flagging for design discussion, particularly the shared table cart decision (Phase 2) and the printed-menu-backup / connectivity fallback expectation (Phase 1), since both affect the shape of the initial implementation.
khaira777 commentedon Nov 28, 2026
Codebase status & Phase 2 handoff alignment (
origin/main@3cef9027, incorporating Fork AuditQR-001&QR-002):Already shipped (Phase 1 - view-only digital QR menu):
#1352(388b3c63) ت(54852ee1) shipped Google Drive hosted digital QR menus and printable QR table cards (frontend/src/components/settings/QrMenuSettingsTab.tsx,frontend/src/lib/printer/menu-web-print.tsbuildQrTableCardHtml,main/services/google-drive.ts,main/routes/settings.ts).Remaining Phase 2 scope (Relayed Table Ordering - absorbing
QR-001&QR-002):main/routes/tables.ts(per-table stable QR token),main/routes/orders.ts(POST /api/orders,online_platform,external_order_id),main/services/cloud-sync.ts(existing outbound cloud channel),main/services/service-model.ts(#1626hybrid/requires_kitchen).QR-001Outbound WebSocket / Relay Transport (Core Invariant chore: unify cross-platform build scripts and configure Windows AppX #1): The local POS initiates an outbound connection to the relay (zero inbound port forwarding or exposing:3001to the public internet). Core POS operations stay 100% functional when offline; if relay drops, customers see clear availability state and staff continue normal table service.QR-002Mandatory Staff Approval Gate: Incoming customer QR orders land in a distinct "Pending Customer Orders" review queue on POS/Server App rather than auto-firing directly to KDS or deducting inventory/recipes. Staff can accept (commits order + triggers KDS/inventory), edit, or reject with reason; aligns with the upcoming Open Integration Platform RFC external-order intake contract.tables; (2) menu/modifier/variant/out-of-stock sync from POS catalog; (3) outbound relay order intake into pending approval queue with audio/badge alert; (4) staff accept/reject flow creating standarddine_inorders (supporting multi-tab#1445if enabled); (5) full modifier/variant support per field research.#1624automatic LAN HTTPS) vs cloud-relayed mode; (3) whether approval gate can later be toggled to auto-accept for trusted stores.