Commit Graph
58 Commits
Author SHA1 Message Date
isaacclad 4546c2ab8c Move Devices under Settings like Branches and Team.
Deploy Ladill POS / deploy (push) Successful in 29s
Drop Devices from the main sidebar, surface a Devices card on the Settings
page, and nest device routes under /settings/devices with legacy redirects.
2026-07-15 23:56:03 +00:00
isaacclad 29f2c96c2b Move Devices under Sales in the POS sidebar.
Deploy Ladill POS / deploy (push) Successful in 45s
Keep Devices with the main product nav instead of the bottom Settings strip.
2026-07-15 23:50:30 +00:00
isaacclad ede4aaa10c Add public token-gated kitchen display for POS devices.
Deploy Ladill POS / deploy (push) Successful in 46s
Kitchen display devices open a full-screen KDS without staff login,
with feed/stream/bump over the device token. Shared kitchen board
logic is extracted so the signed-in Kitchen page stays in sync.
2026-07-15 22:52:28 +00:00
isaacclad c01518b0ee Add Frontdesk-style Devices registry for POS hardware.
Deploy Ladill POS / deploy (push) Successful in 42s
Register tills, customer displays, kitchen screens, printers, scanners,
and tablets per branch. Customer displays share the branch display token
and mark online when the public screen polls; stale devices go offline
on a schedule.
2026-07-15 21:49:21 +00:00
isaacclad 46c60259c9 Fill customer display promo card with cover image, no shadow.
Deploy Ladill POS / deploy (push) Successful in 43s
Drop the soft shadow and letterboxing so the promo photo edge-to-edge
covers the hero card via object-cover.
2026-07-15 21:31:13 +00:00
isaacclad 72aabf5429 Fit promo image fully inside the customer display card.
Deploy Ladill POS / deploy (push) Successful in 36s
Center and clamp the image with object-contain so it scales within the
card bounds without cropping or overflowing.
2026-07-15 21:23:24 +00:00
isaacclad 7d1e4a65d7 Redesign customer display idle promo as a hero layout.
Deploy Ladill POS / deploy (push) Successful in 1m5s
Make the promo image fill the kiosk instead of a small thumbnail, with
side-by-side copy on landscape screens and a calmer type hierarchy.
2026-07-15 21:19:33 +00:00
isaacclad e5b4f3d654 Show promo image again on the idle customer display.
Deploy Ladill POS / deploy (push) Successful in 58s
Restore the configured promo image above the welcome copy when the
register cart is empty so store branding still surfaces to customers.
2026-07-15 21:15:13 +00:00
isaacclad 836aa83f41 Gate payment gateway behind Pro and Business plans.
Deploy Ladill POS / deploy (push) Successful in 1m9s
Free accounts keep cash sales only; connecting a gateway and card/MoMo
checkout require a paid plan, with settings upsell copy for free users.
2026-07-15 21:04:09 +00:00
isaacclad 689c9924df Simplify customer display branding on empty cart.
Deploy Ladill POS / deploy (push) Successful in 42s
Drop the centered idle logo and render the header logo without a card
so brand marks stay clean and uncluttered.
2026-07-15 16:34:31 +00:00
isaacclad aed0722641 Restyle customer display to match Frontdesk kiosk UI.
Deploy Ladill POS / deploy (push) Successful in 41s
Use a light shell, soft indigo accents, and object-contain logos so
brand marks are not square-cropped on the dual-screen customer view.
2026-07-15 16:31:23 +00:00
isaacclad 600aedb59d Email digital receipts, add promo settings, and apply tips at charge.
Deploy Ladill POS / deploy (push) Successful in 31s
Send real receipt emails from the customer display and sale page, store
branch promo content for the idle screen, and fold selected tips into totals.
2026-07-15 16:10:20 +00:00
isaacclad 468346b183 Wire POS register loyalty earn and redeem through CRM.
Deploy Ladill POS / deploy (push) Has been cancelled
Redeem at charge, earn on payment, reverse on cancel, and surface
balances on the till, customer display, sales, and receipts.
2026-07-15 15:46:28 +00:00
isaacclad 38b7f96714 Add dual-screen customer display for the register.
Deploy Ladill POS / deploy (push) Successful in 56s
Token-gated full-screen customer view shows order, payment QR, tips,
signature, receipt, and promo phases while the till keeps operator UI.
2026-07-15 15:35:44 +00:00
isaacclad 5e31bdf629 Limit Pro to 3 branches and leave Business unlimited.
Deploy Ladill POS / deploy (push) Successful in 2m15s
Enforce plan location caps in SubscriptionService, surface upgrade
copy on plans and branch settings, and cover the limits in tests.
2026-07-15 15:24:51 +00:00
isaacclad 7c20cf705a Frame POS checkout sheet for till operators.
Deploy Ladill POS / deploy (push) Successful in 1m16s
Use operator-facing copy and merchant email so Card/MoMo checkout is for staff handing the screen to a customer, not self-serve buyers.
2026-07-15 13:23:29 +00:00
isaaccladandCursor 3c0172f098 Embed POS checkouts in a modal/sheet using the seller email.
Deploy Ladill POS / deploy (push) Successful in 40s
Card/MoMo always initializes with the merchant email, and Paystack/Flutterwave/Hubtel open in-page (desktop modal, mobile bottomsheet) instead of a full redirect.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-15 08:29:07 +00:00
isaaccladandCursor 3ea9fdfe33 Replace Ladill Pay POS checkouts with merchant gateways.
Deploy Ladill POS / deploy (push) Successful in 30s
Register Card/MoMo payments through merchant Paystack, Flutterwave, or Hubtel settings so takings settle 100% to the business.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-15 01:26:22 +00:00
isaaccladandCursor 2e969f8db2 Add branch switcher to mobile profile bottom sheet.
Deploy Ladill POS / deploy (push) Successful in 31s
Matches Woo store switcher pattern; desktop header switcher stays on large screens only.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-08 06:52:22 +00:00
isaaccladandCursor 765506320e Move branch switcher left of Afia in the header.
Deploy Ladill POS / deploy (push) Successful in 27s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-08 06:48:25 +00:00
isaaccladandCursor 35970dfd2a Surface branches and team as explicit settings sections.
Deploy Ladill POS / deploy (push) Successful in 37s
Embed branch list, switching, and team invites on the main settings page; dedicated routes redirect back with anchors.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-08 06:46:17 +00:00
isaaccladandCursor 9d7dac6c24 Add multi-branch POS with team roles and branch-scoped cashiers.
Deploy Ladill POS / deploy (push) Successful in 1m58s
Pro and Business users can manage branches, invite cashiers with branch assignment, and switch registers; sales and register flows respect acting location.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-08 06:05:30 +00:00
isaaccladandCursor cac7c60415 Add receipt logo upload and redesign thermal receipt header.
Deploy Ladill POS / deploy (push) Successful in 1m32s
Per-location logo in settings with remove/replace support; receipt template reserves space at the top when a logo is set.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-08 05:48:40 +00:00
isaaccladandCursor 9a2d196d84 Add barcode scanner, thermal receipt printing, and printer settings.
Deploy Ladill POS / deploy (push) Successful in 1m42s
Register supports USB keyboard-wedge scanners with SKU lookup (local catalog
and CRM in retail mode). Sales get a thermal receipt print template (58/80mm)
with configurable header/footer, plus optional auto-print after cash sales.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-08 05:40:14 +00:00
isaacclad 86ffa2629b Show boot splash on app open/reload for logged-in users.
Deploy Ladill POS / deploy (push) Successful in 54s
Replace the once-per-session sessionStorage guard (which suppressed the loading
screen after its first appearance) with entry-aware logic: show on app entry
and reloads, suppress on internal link navigations and back/forward.
2026-07-07 20:35:18 +00:00
isaaccladandCursor ac5e513dd2 Standardize settings pages on shared centered card layout.
Deploy Ladill POS / deploy (push) Successful in 41s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 21:11:48 +00:00
isaaccladandCursor 7ce95d05ab Propagate shared copy-button component and clipboard helper.
Deploy Ladill POS / deploy (push) Successful in 56s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-03 23:04:20 +00:00
isaacclad 1359b49c97 Sync mobile notification badge and dashboard icon-link partials.
Deploy Ladill POS / deploy (push) Successful in 1m2s
Align mobile unread badge with desktop and add plus icon support for panel actions.
2026-07-03 22:41:01 +00:00
isaaccladandCursor 88e1c28aac Add dashboard upgrade banner for free POS plans.
Deploy Ladill POS / deploy (push) Successful in 1m0s
Highlight Pro and Business plans on the register overview for merchants on the free tier.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-30 18:13:22 +00:00
isaaccladandCursor e1053746ac Throttle platform SSO session checks to cut per-request auth latency.
Deploy Ladill POS / deploy (push) Successful in 33s
Verify auth.ladill.com at most once every 90s; recommend Redis for session/cache in .env.example.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-30 16:49:38 +00:00
isaaccladandCursor 2d8714de7f Show consolidated prepaid totals on plan pricing cards.
Deploy Ladill POS / deploy (push) Successful in 39s
When 6/12/24 month Paystack is selected, Pro and Business prices display the full term amount instead of /mo.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-30 11:39:26 +00:00
isaaccladandCursor d66e656b9c Add Business tier and Paystack prepaid billing for POS.
Deploy Ladill POS / deploy (push) Successful in 35s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-30 01:55:38 +00:00
isaaccladandCursor f800f0c1ca Add POS Pro subscription billing and free-tier limits.
Deploy Ladill POS / deploy (push) Successful in 43s
Wallet-backed Pro unlocks unlimited products, restaurant mode, catalog imports, and ecosystem sync features.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-30 00:51:35 +00:00
isaaccladandCursor fbff76a92d Cap launcher dropdown at 15 visible apps (5 rows).
Deploy Ladill POS / deploy (push) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 17:45:58 +00:00
isaaccladandCursor f7ccbda7ad Hide launcher down arrow when scrolled to the end.
Deploy Ladill POS / deploy (push) Successful in 31s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 14:49:25 +00:00
isaaccladandCursor b9b0598e87 Revert launcher scroll rail and fade; keep down arrow hint.
Deploy Ladill POS / deploy (push) Successful in 44s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 14:02:54 +00:00
isaaccladandCursor 0f4a5623ee Make launcher scroll affordance visible on open.
Deploy Ladill POS / deploy (push) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 13:53:33 +00:00
isaacclad ccb97bf0d0 Always show launcher scroll indicator and cap at 18 apps.
Deploy Ladill POS / deploy (push) Successful in 56s
Apply ladill-launcher-apps scroll styles unconditionally with a persistent
scrollbar track; propagate launcher blade and CSS across all Ladill apps.
2026-06-29 13:06:00 +00:00
isaaccladandCursor 154a418149 Use + icon buttons on mobile dashboards.
Deploy Ladill POS / deploy (push) Successful in 36s
Sync mobile-header-btn partials, mobile x-btn.create, and update dashboard header actions for consistent mobile FABs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-28 16:21:40 +00:00
isaaccladandCursor e716f1a43a Place wallet widget after Billing link in mobile profile sheet.
Deploy Ladill POS / deploy (push) Successful in 49s
Remove duplicate Billing header above Home; wallet card follows Billing
in menu order to match the desktop avatar dropdown.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-28 14:08:52 +00:00
isaaccladandCursor 11a7502381 Sync mobile profile wallet card and 24h session idle timeout.
Deploy Ladill POS / deploy (push) Successful in 1m35s
Show wallet balance prominently in the mobile profile bottom sheet with refresh
on open; align session lifetime with the platform default.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-28 12:46:20 +00:00
isaaccladandCursor 4f0a35485d Add mobile bottom nav and hide header avatar on small screens.
Deploy Ladill POS / deploy (push) Successful in 1m1s
POS now uses the shared Ladill mobile header and bottom navigation pattern.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-28 12:03:57 +00:00
isaaccladandClaude Opus 4.8 9fcea24680 Add bulk CSV product import for POS (retail + restaurant)
Deploy Ladill POS / deploy (push) Successful in 1m39s
Customers with large catalogs can upload a CSV instead of adding products one by
one. Mode-aware: restaurant imports into the local catalog (chunked INSERT,
categories resolved/created by name); retail batches to the CRM products/bulk
endpoint. Streamed parsing + batched writes handle thousands of rows in one
request. Includes a downloadable template, an Import button on both product
pages, and a skipped-rows report.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 09:20:40 +00:00
isaaccladandClaude Opus 4.8 62e396195b Fix confirm-dialog flashes: cloak panel + align transition timing
Deploy Ladill POS / deploy (push) Successful in 30s
The inner panel lacked x-cloak (brief FOUC on load/navigation) and its
leave/enter durations (300/200ms) outlasted the backdrop's (200/150ms), so the
card animated without its backdrop on open/close. Cloak the panel and align all
durations to 200ms so backdrop and card move together.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 08:11:01 +00:00
isaaccladandClaude Opus 4.8 09df8e181a Replace native confirm() with in-app dialog for cancel/delete sale
Deploy Ladill POS / deploy (push) Successful in 42s
The Cancel sale / Delete sale actions used the browser's native confirm()
('pos.ladill.com says…'). Render the store-driven ladillConfirm prompt (already
registered in app.js but never displayed) via a new partials/confirm-prompt and
have the two forms open it instead — branded, with sale-specific copy.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 08:05:02 +00:00
isaaccladandClaude Opus 4.8 2103708ab6 Add a branded boot splash (Ladill Mail style) to app pages
Deploy Ladill POS / deploy (push) Successful in 31s
InjectBootSplash middleware injects a full-screen loading splash — the app's
launcher icon (pulsing), an animated progress bar, and "Loading <app>…" — into
authenticated HTML pages, then fades it out on load. Shows once per browser
session (sessionStorage), so it masks the app's client-side boot without
flashing on every navigation. Self-branding from the app's own subdomain icon,
so the same partial/middleware drops into every Ladill app.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-25 22:08:36 +00:00
isaaccladandClaude Opus 4.8 f64a28cb21 Allow cancelling and deleting pending POS sales
Deploy Ladill POS / deploy (push) Successful in 37s
On a sale's detail page, unpaid sales (retail or restaurant) can now be
cancelled or deleted:
- Cancel (pending only) marks it cancelled and frees its table / clears it from
  the kitchen (PosSaleService::cancelSale).
- Delete removes the sale and cascades its lines, modifiers and payments, freeing
  the table first (deleteSale). Paid sales are protected — they can't be deleted.
Status badge now distinguishes cancelled/failed. Covered by PosRestaurantTest.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-25 21:52:51 +00:00
isaaccladandClaude Opus 4.8 5d8e185223 Link retail POS products to the CRM products API (restaurant stays local)
Deploy Ladill POS / deploy (push) Successful in 28s
Products are now mode-aware:
- Retail: the catalog lives in Ladill CRM. The Products page proxies CRUD to the
  CRM products API (CrmClient gains product/create/update/delete), and the
  register reads CRM products live; a sold line is stored as a name/price
  snapshot (product_id null, since CRM products aren't local rows). Resilient —
  the register shows an empty catalog if CRM is unreachable. CRM import is hidden
  in Settings (not needed when reading live).
- Restaurant: unchanged — the local pos_products catalog keeps its POS-only depth
  (category, kitchen station, course, modifier groups).

ProductController routes take a raw {product} id (CRM id in retail, local id in
restaurant). Suite green (17), covering both modes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-25 12:27:19 +00:00
isaaccladandClaude Opus 4.8 0d816daed3 Add retail/restaurant mode toggle to the register
Deploy Ladill POS / deploy (push) Successful in 45s
A segmented Retail | Restaurant control in the register header flips the
location's service_style in place (RegisterController@setMode → pos.mode.set).
Switching to restaurant lands on the Floor and reveals Floor/Kitchen/Menu in the
sidebar; switching to retail stays on the register. Covered by PosRestaurantTest.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-25 12:03:46 +00:00
isaaccladandClaude Opus 4.8 9780591e74 Split bills + kitchen ingest for online orders
Deploy Ladill POS / deploy (push) Successful in 36s
Split bills (restaurant tickets):
- New pos_payments ledger; a tab is settled across one or more cash/Ladill Pay
  payments. The ticket shows total / paid / balance, an amount field with Full /
  ½ / ⅓ / ¼ helpers, and the payments taken. Partial payments keep the tab open;
  the sale finalises (and frees the table) only when the balance hits zero.
  Pay splits get their own checkout + callback (pos.payments.callback).

Pipe online orders to the KDS:
- POST /api/kitchen/orders — a first-party, service-keyed ingest
  (config pos.kitchen_api_keys, scoped by owner, idempotent by external_ref) that
  creates a paid, already-fired ticket (order_type=online, lines source=online).
- The KDS feed is now payment-agnostic (any kitchen-active sale), so paid online
  orders sit on the board next to dine-in tabs and bump the same way; they're
  badged "online".

Schema additive: pos_payments, pos_sales.external_ref. Suite green (14).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 23:49:01 +00:00