Commit Graph
50 Commits
Author SHA1 Message Date
isaacclad b938eed3cb Stop Paystack pre-modal flash on customer checkout.
Deploy Ladill POS / deploy (push) Successful in 1m0s
Use the shared Inline sheet, hold busy until payment UI opens, and avoid locking page scroll during the handoff.
2026-07-24 10:14:41 +00:00
isaacclad 970a98ecfe Simplify Paystack checkout handoff
Deploy Ladill POS / deploy (push) Successful in 55s
2026-07-24 08:25:28 +00:00
isaacclad 21555cc3cc Simplify pay wait copy and scale Paystack to fill the loading area.
Deploy Ladill POS / deploy (push) Successful in 1m57s
Use “Please wait…” while loading, and scale the contained Paystack iframe so
checkout fills the sheet body without a floating second card.
2026-07-23 22:55:55 +00:00
isaacclad 97cd3c8647 Render Paystack flush in the sheet loading area without a second stage.
Deploy Ladill POS / deploy (push) Successful in 2m28s
Drop host shadows and keep the iframe transparent so checkout fills the
Ladill sheet body instead of floating as a second card.
2026-07-23 22:43:42 +00:00
isaacclad 77c7897e57 Force Paystack checkout into the sheet mount on first insert.
Deploy Ladill POS / deploy (push) Successful in 45s
Redirect first iframe append into the Ladill sheet body and keep absolute
fill styles applied so checkout is not a second full-screen modal.
2026-07-23 22:36:14 +00:00
isaacclad fe9137a754 Unify payment sheet to one POS design across all apps.
Deploy Ladill POS / deploy (push) Successful in 1m16s
Loading uses the standard white bottomsheet/modal; once Paystack Inline is
ready the host shell goes transparent so only Paystack's card shows on the
backdrop — no oversized second white frame on Merchant/Give/etc.
2026-07-21 23:15:47 +00:00
isaacclad 56d3c749c8 Tighten payment sheet UI to match POS single-surface checkout.
Deploy Ladill POS / deploy (push) Successful in 1m13s
When Paystack Inline is ready: widen desktop panel for channel sidebar, collapse
to a minimal header, hide footer trust line, and re-pin the checkout iframe to
the sheet body so it does not read as a second modal on top of Ladill chrome.
2026-07-21 23:02:37 +00:00
isaacclad a95f84e0e0 Contain Paystack Inline checkout inside Ladill sheet mount.
Deploy Ladill POS / deploy (push) Successful in 1m20s
Redirect Paystack iframes into the bottomsheet/modal body (where the spinner
is) instead of allowing a second full-viewport Paystack modal on top. Hide
Paystack background dimmer; keep Ladill header/close chrome.
2026-07-21 22:32:01 +00:00
isaacclad 2c763cf46a Fix Paystack Fullscreen permission policy for Inline iframes.
Deploy Ladill POS / deploy (push) Successful in 1m4s
Pre-set allow=fullscreen on Paystack iframes before navigation (createElement
hook + MutationObserver on allow/src/id), re-apply if Paystack overwrites
allow, and send Permissions-Policy HTTP headers so checkout.paystack.com can
use fullscreen inside the in-app sheet.
2026-07-21 22:17:20 +00:00
isaacclad ec8fe8611f Allow Paystack checkout iframes to use fullscreen in POS.
Deploy Ladill POS / deploy (push) Successful in 52s
Patch Inline iframes after mount so fullscreen/payment permissions work
inside the POS payment bottomsheet.
2026-07-21 22:09:58 +00:00
isaacclad dc65bc44ac Fix POS payment sheet host and harden Inline launch.
Deploy Ladill POS / deploy (push) Successful in 42s
Use this.\$store in the host component so the bottomsheet opens, and share
the hardened Paystack sheet sync path used across apps.
2026-07-21 21:55:45 +00:00
isaacclad 26b3201822 Fix POS payment bottomsheet wrap and store reactivity.
Deploy Ladill POS / deploy (push) Successful in 40s
Mirror paymentCheckout into local Alpine state so the teleported sheet opens,
and restore the always-visible bottomsheet/modal shell around Inline.
2026-07-21 21:43:52 +00:00
isaacclad 5c23df9561 Fix POS Paystack double modal and keep checkout in-app.
Pass access_code into the payment sheet, launch Paystack Inline only,
and hide Ladill chrome after Inline loads so register Card/MoMo shows
a single payment interface.
2026-07-21 21:23:21 +00:00
isaacclad ca08f303c0 Restore Paystack Inline in-page sheet/modal; stop separate-browser checkout.
Deploy Ladill POS / deploy (push) Successful in 2m8s
Pass access_code through pay responses and launch PaystackPop from the shared sheet instead of window.open.
2026-07-21 19:12:24 +00:00
isaacclad 497cdfbe8e Open Paystack from the Pay click gesture, not after fetch.
Deploy Ladill POS / deploy (push) Successful in 54s
Paystack blocks iframes, so checkout uses a popup beside the sheet/modal chrome. Opening about:blank on the user tap keeps that window from being blocked after the async initiate response.
2026-07-21 18:13:56 +00:00
isaacclad c9c8278500 Fix Paystack sheet: stop iframe embeds that Paystack blocks.
Deploy Ladill POS / deploy (push) Successful in 38s
Paystack checkout.paystack.com returns X-Frame-Options: SAMEORIGIN, so the shared sheet opened empty. Keep mobile sheet/desktop modal chrome, launch checkout in a named window with a Continue CTA fallback, and escape payment-return via window.opener or top.
2026-07-21 17:35:17 +00:00
isaacclad 4f97b6ff70 Present Paystack checkout in a responsive mobile sheet and desktop modal.
Deploy Ladill POS / deploy (push) Successful in 37s
Standardize customer-facing Ladill Pay checkout shells across products, open them on all viewports, and escape iframe callbacks back to the product flow.
2026-07-21 16:50:07 +00:00
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 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 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
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
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 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 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 50b170b0af Restaurant mode Phase 2: menu depth — categories, stations, modifiers, courses
Deploy Ladill POS / deploy (push) Successful in 35s
Builds on Phase 1 with the menu structure restaurants need:
- Menu setup page (restaurant mode): categories, kitchen stations, and modifier
  groups with options (price deltas).
- Products gain category, kitchen station, default course, and attached modifier
  groups (managed on the product form).
- Ordering: the ticket groups the catalog by category and, when a product has
  modifier groups, opens a picker (respects min/max select) for options + notes +
  course before adding. Effective price = base + modifier deltas (resolved
  server-side; client prices are never trusted).
- Fire-by-course: send the whole tab or just one course to the kitchen.
- KDS: filter by station; each item shows its station, course, modifiers and notes.

Schema additive (pos_categories, pos_stations, pos_modifier_groups, pos_modifiers,
product↔group pivot, pos_sale_line_modifiers; category/station/course columns on
products and lines). PosRestaurantTest covers modifiers, course and station routing;
suite green (11 passed).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 19:58:57 +00:00
isaaccladandClaude Opus 4.8 d9e4b6e06e Add restaurant/café mode: floor, open tabs, and kitchen display (Phase 1)
Deploy Ladill POS / deploy (push) Successful in 30s
Gated by a per-location service_style (retail | restaurant). Restaurant mode adds:
- Floor screen with tables (areas, seats, status) — tap a free table to open a
  dine-in tab; takeaway/counter orders open from the same screen.
- Open tickets (tabs): a sale stays pending while items are added; lines persist
  as you go (posTicket Alpine component posts each change to the server).
- Send-to-kitchen fires un-sent lines; a polling Kitchen Display (KDS) shows
  active tickets and bumps items queued → preparing → ready → served.
- Settlement reuses the existing cash / Ladill Pay flow; paying closes the tab
  and frees the table (PosSaleService::closeTicket, wired into both pay paths).
- Settings gains the mode toggle and a tables manager.

Schema is additive (new pos_tables; service_style on locations; order/kitchen
columns on sales + lines). Retail flow is untouched. Sidebar surfaces Floor +
Kitchen only in restaurant mode. New PosRestaurantTest covers the dine-in
lifecycle end to end; suite green (10 passed).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 08:38:18 +00:00
isaaccladandClaude Opus 4.8 e9a0c92308 Align POS header with other apps: AI assistant, register button, sidebar
Deploy Ladill POS / deploy (push) Successful in 47s
- Add the Afia AI assistant to the header (topbar AI button + slide-over),
  matching every other Ladill app. Ports config/afia.php, AfiaService, a POS
  AiController (pos.ai.chat) scoped to register/sales/products, and includes
  the slide-over in the app layout. The afia() Alpine component already existed.
- Hide the header "Open register" button while on the register page.
- Move Settings to a pinned bottom section of the sidebar, like other apps.
- Commit the updated POS logo + launcher icon assets.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 07:08:43 +00:00
isaaccladandClaude Opus 4.8 b7c7a32ee6 De-fork POS chrome/assets and import CRM products only
Deploy Ladill POS / deploy (push) Successful in 32s
Finish removing the upstream platform fork: drop the Hosting/SSL/Domain
notification classes + their mail views, the email/mailbox/domains/hosting
view trees, the Mini/Afia/search/paystack partials and unused components, and
the now-orphan support helpers (DomainConfig, MailboxPricing,
ResellerClubLegacy), SmsService, and fork configs (afia, hosting, domain,
email, mailbox, qr, mail_brands, notifications, ...). Reparent the
notifications page off the hosting layout onto the POS app layout (it had
referenced undefined hosting./mini. routes). Computed the removable set from a
reachability scan of the POS view graph; kept views reference no removed
routes/services.

Branding: favicon now uses the updated favicon.ico (favicon.svg removed);
signed-out fallback logo points at the POS logo.

CRM import: constrain the catalogue pull to type=product so CRM services are
never imported as POS products (server-side filter + defensive client skip).

Test suite green (8 passed, 29 assertions); all routes resolve and every
remaining Blade compiles.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 00:40:01 +00:00
isaaccladandCursor e5d2b84388 Add Ladill POS v1 — register, Pay checkout, and commerce links.
Deploy Ladill Mini / deploy (push) Successful in 23s
Staff-facing counter register at pos.ladill.com with catalog cart, cash and
MoMo/card checkout via Ladill Pay, CRM timeline/import, invoice prefill, and
Merchant catalog import.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-23 22:52:24 +00:00