Commit Graph
28 Commits
Author SHA1 Message Date
isaaccladandCursor de2eab7ef8 Add LadillLink helper for ladl.link public QR paths.
Deploy Ladill Merchant / deploy (push) Successful in 34s
Storefront and landing views use publicPath() so menu, shop, and booking pages resolve asset URLs on ladl.link.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-27 15:28:50 +00:00
isaaccladandCursor eee78aa3d2 Make guest landing-page checkouts email-optional like Ladill Mini.
Deploy Ladill Merchant / deploy (push) Successful in 59s
Drop required buyer email on public merchant forms; require phone for bookings so merchants can reach guests without Ladill accounts.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-27 14:18:45 +00:00
isaaccladandClaude Opus 4.8 24d47ac04e Surface connected domains in Ladill Domains' My Domains
Deploy Ladill Merchant / deploy (push) Successful in 1m36s
Push the customer's connected domain to the central connected-domains registry
so it appears under My Domains (with Transfer in if not registered with Ladill).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 20:16:51 +00:00
isaaccladandClaude Opus 4.8 b2aede5963 Add opt-in custom domains with automatic SSL
Deploy Ladill Merchant / deploy (push) Successful in 29s
Customers can connect their own domain to a merchant page (storefront/event):
add a domain, point an A record (apex + www) to the app server, click Verify —
DNS is checked, then Ladill Domains' central SSL service issues + installs the
Let's Encrypt cert and calls back to flip it live. The custom domain then serves
the mapped page (host resolution on /). Feature-gated: only active when a Domains
SSL API key is set, so this deploy is inert until wired.

- custom_domains table + CustomDomain model
- CustomDomainService (DNS verify, request cert), DomainsSslClient, DnsResolver
- settings UI panel, signed SSL callback receiver, host resolution on /
- feature tests (DNS verify/fail, signed callback, ownership)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 16:59:19 +00:00
isaaccladandClaude Opus 4.8 6119ba3dae Load CRM catalog on the storefront edit form so products can be added
Deploy Ladill Merchant / deploy (push) Successful in 24s
The storefront editor has an 'Add from products' picker (+ per-item photo
upload), but the edit page (storefronts.show) never passed the CRM $catalog to
editor-fields, so the picker was hidden (x-show=catalog.length) — there was no
way to add products to an existing storefront. show() now loads catalogProducts()
and forwards it to the editor, matching the create form.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 09:51:22 +00:00
isaaccladandClaude Opus 4.8 8dbdf171cb Add branded boot splash (Ladill Mail style) on app pages
Deploy Ladill Merchant / deploy (push) Successful in 59s
InjectBootSplash middleware shows a self-branded loading splash once per session
while the app boots, then fades out.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-25 22:14:33 +00:00
isaaccladandClaude Opus 4.8 2ced61fed0 Push paid menu orders to the Ladill POS kitchen
Deploy Ladill Merchant / deploy (push) Successful in 45s
When a menu (food) storefront order is paid, best-effort POST it to the
merchant's Ladill POS kitchen ingest (config/kitchen.php → KITCHEN_API_URL/KEY)
so it lands on their Kitchen Display alongside dine-in tabs. Failures are logged,
never surfaced — order completion is unaffected; POS ignores orders for accounts
that don't run a POS kitchen.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 23:57:30 +00:00
isaaccladandClaude Opus 4.8 b19e2654a1 Add Products page backed by the CRM products API + storefront catalog picker
Deploy Ladill Merchant / deploy (push) Successful in 30s
- New Products page (merchant.products.*) with full CRUD proxied to the Ladill
  CRM products API via a new CrmClient + config/crm.php (owner-scoped, type=product).
- Sidebar gains a Products entry.
- The new storefront form loads the merchant's catalog: each shop/menu section
  gets an "Add from products…" picker that drops a CRM product in as an item
  (name, price, description). Catalog fetch is resilient — empty if CRM is down.

Wires CRM_API_URL + CRM_API_KEY_MERCHANT on the merchant env (matches CRM).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 07:32:58 +00:00
isaaccladandCursor c1f5b029b4 Prefill storefront creation from CRM won-deal links.
Deploy Ladill Merchant / deploy (push) Successful in 23s
Decode CRM prefill tokens so payment storefronts open with deal label and product line items.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-23 20:07:18 +00:00
isaaccladandClaude Opus 4.8 f201632382 Add wallet balance widget to the profile menu (after Billing)
Deploy Ladill Merchant / deploy (push) Successful in 36s
Wallet balance peek rendered as a menu row directly under Billing, backed by
a /wallet/balance endpoint (BillingClient) and guarded by Route::has. Also
opens Afia via a direct window event for reliability.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23 12:26:19 +00:00
isaaccladandClaude Opus 4.8 9800280af0 Platform fee 3.5% (Ladill Pay standard)
Deploy Ladill Merchant / deploy (push) Successful in 39s
Match the platform-wide 3.5% standard: QrSaleOrder::PLATFORM_FEE_RATE 0.055 -> 0.035.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-22 19:34:32 +00:00
isaaccladandCursor 904e76a7a2 Bind app sessions to the platform auth session.
Deploy Ladill Merchant / deploy (push) Successful in 24s
Clear local sessions when auth.ladill.com signs out and ping the platform session from keepalive.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-20 08:26:30 +00:00
isaaccladandCursor 586a04fdad Lower Merchant platform fee from 9% to 5.5%.
Deploy Ladill Merchant / deploy (push) Successful in 25s
Update checkout constant, payout copy, and Afia prompts to match the new Ladill Pay rate.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-19 19:51:34 +00:00
isaaccladandCursor fb60664bce Hide the current page link in the unified profile dropdown.
Deploy Ladill Merchant / deploy (push) Successful in 42s
Skip Home, account, and admin menu items when the user is already on that destination.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-19 10:16:26 +00:00
isaaccladandCursor e8b680059b Unify logged-in profile dropdown with platform account menu.
Deploy Ladill Merchant / deploy (push) Successful in 32s
Wire UserProfileMenu and shared Blade partial into topbar, mobile nav, and layouts so menu items match the account portal (Ladill Mail excluded).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-19 09:33:42 +00:00
isaaccladandCursor f057b3285f Send SSO guests to ladill.com/products/merchant instead of subdomain landings.
Deploy Ladill Merchant / deploy (push) Successful in 38s
Remove interactive OAuth fallback on silent SSO failure and add ladill.marketing_url config so app subdomains open the dashboard when signed in locally.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-12 22:21:58 +00:00
isaaccladandCursor 94fac8fbee Lower sales platform fee from 15% to 9%.
Deploy Ladill Merchant / deploy (push) Successful in 27s
Align merchant settlement and booking checkout with the updated Ladill Pay sales tier.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-11 19:32:24 +00:00
isaaccladandClaude Opus 4.8 ff9002c8e3 Afia: rebrand merchant assistant from QR Plus/Give to Merchant
Deploy Ladill Merchant / deploy (push) Successful in 34s
The merchant app shipped the QR Plus Afia: the chat panel subtitle read
'Give assistant' and the system prompt identified as 'Ladill QR Plus' and
described QR-code features (Link/PDF/WiFi/styling) instead of this app's
storefronts. Rewrite the prompt for Ladill Merchant (storefronts —
shop/menu/booking, orders, payouts, fees) and fix the subtitle to
'Merchant assistant'.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-11 06:14:06 +00:00
isaaccladandClaude Opus 4.8 6cc6751c71 Afia: fix dangling QrTypeCatalog::eventTypes() in chat context
Deploy Ladill Merchant / deploy (push) Successful in 27s
AfiaController::context() called QrTypeCatalog::eventTypes(), which does
not exist on this app's catalog (leftover from the Events-app template) —
every Afia chat 500'd with 'Afia could not respond right now' before the
LLM was ever reached. Use storefrontTypes() (shop/menu/booking), the QR
types this merchant app actually owns.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-10 23:16:13 +00:00
isaaccladandClaude Opus 4.8 00b1644887 Storefront polish + QR share + importer deactivate fix
Deploy Ladill Merchant / deploy (push) Successful in 35s
- Storefronts use Figtree as the default font (shop/menu, booking, book)
- Remove "Powered by Ladill" branding from the storefront header
- Fix storefront logo hiding behind the cover (logo row now relative z-10)
- Add a Share button to storefront QR downloads using the Web Share API
  (native mobile share sheet for image+link; clipboard fallback)
- storefronts:import-legacy: --deactivate-source now also retires the
  platform copy of already-imported (skipped) codes, no --refresh needed

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-10 19:16:48 +00:00
isaaccladandClaude Opus 4.8 9a6fdbd2ae storefronts:import-legacy: add --deactivate-source for single source of truth
Deploy Ladill Merchant / deploy (push) Successful in 53s
After importing, optionally mark the platform copy inactive so Merchant
is the sole live owner and the platform stops double-counting. Public
scans still forward here (the monolith's MerchantQrForwarder routes
shop/menu by type regardless of is_active).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-10 17:13:37 +00:00
isaaccladandClaude Opus 4.8 37425f5ad1 Add storefronts:import-legacy command
One-time importer that copies legacy menu/shop storefronts (and their
products, stored inline in qr_codes.payload.content.sections) from the
shared platform DB into this app's database, so owners who created them
before the Merchant extraction can see/manage them again.

- Maps platform owners to local users by public_id (SSO sub), creating a
  local user stub when missing
- Copies product images from a new read-only `platform_qr` disk
  (PLATFORM_QR_ROOT) to the local `qr` disk
- Idempotent (skips existing short_codes unless --refresh); supports
  --user, --dry-run, --skip-images

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-10 17:06:49 +00:00
isaaccladandClaude Opus 4.8 a939abc2de Per-app logout keeps platform SSO session (quick password-less re-entry).
Deploy Ladill Merchant / deploy (push) Successful in 49s
Local-only sign-out: end this app's session but leave the auth.ladill.com
session intact, so the signed-out page's Sign in again re-auths silently via
prompt=none. Full sign-out of all Ladill apps remains on account.ladill.com.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-10 11:23:25 +00:00
isaaccladandClaude Opus 4.8 f48592077f Block SVG uploads for storefront logos/covers/product images.
Deploy Ladill Merchant / deploy (push) Successful in 24s
SVG can embed JavaScript and would run as stored XSS when served inline on a
public storefront page, and we have no SVG sanitizer. Allow only raster
formats:
- item_images validation: image rule (permits SVG) -> mimes:jpeg,jpg,png,gif,webp
- QrCodeManagerService: reject image/svg+xml / .svg(z) in brand-image and
  item-image storage (defense in depth, since those only checked the image/* prefix)
- file pickers: accept raster mimes only

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-10 10:42:04 +00:00
isaaccladandClaude Opus 4.8 8b68fad82c Build real shop/menu/booking storefronts (replace church giving UI).
Deploy Ladill Merchant / deploy (push) Successful in 1m1s
The storefront create/edit/manage UI and the public storefront page were
give's church-donation flow relabeled. Replace with genuine merchant
storefronts, reusing the QR-core manager + validator (which already build
sections/services content):

- Merchant create: type picker (shop/menu/booking) + per-type editors in a
  shared partial (products/menu items with prices; bookable services with
  days/hours). x-if per type so inputs never collide across types.
- StorefrontController store/update/create now delegate to QrCodeManagerService
  for all three types (was hardcoded church org_type/denomination/collection).
- Storefront show = QR preview + download + live toggle + delete + full editor.
- QrCodeManagerService: shop/menu/booking are free (no QR-wallet gate); drop
  the duplicate church TYPE_SHOP arm in hasContentChanges.
- Public: new storefront catalog+cart view for shop/menu (posts items[] to the
  existing order/Pay flow); route shop+menu to it. Booking already had a real
  public page; church TYPE_SHOP landing branch retired.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-10 10:24:39 +00:00
isaaccladandClaude Opus 4.8 de5bd16219 Fix systemic extraction breakage in authenticated UI.
Deploy Ladill Merchant / deploy (push) Successful in 28s
The give→merchant transform left several independent breakages that 500'd
once a logged-in user hit the pages:

- /storefronts/{create,show,update,...} were wired to Qr\QrCodeController,
  which renders events-lineage qr-codes.* views referencing 14 undefined
  events.* routes. Rewire to StorefrontController (clean storefronts.* views).
- storefronts/show.blade.php @include('give.storefronts.partials.*') — the
  view dir was renamed give→merchant but the include namespace wasn't.
- /payouts + /search queried qr_sale_orders.*_minor; migration created *_ghs.
- Remove dead GiveDonation model (nonexistent give_donations table).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-10 09:42:06 +00:00
isaaccladandClaude Opus 4.8 62b3fcd479 Fix fatal duplicate symbols from church→shop/menu rename.
Deploy Ladill Merchant / deploy (push) Successful in 36s
The customize script's blind TYPE_CHURCH→TYPE_SHOP and churchLogo→menuLogo
replacements created a duplicate QrCode::TYPE_SHOP constant and duplicate
QrScanController::menuLogo()/menuCover() methods — fatal at request time
(crashed /dashboard with 500). The menu* methods already cover TYPE_SHOP,
so drop the redundant church-origin copies.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-10 09:23:00 +00:00
isaaccladandCursor f718b9cfbf Initial Ladill Merchant app with Gitea deploy pipeline.
Shop, menu, and booking storefronts with OIDC SSO, Pay checkout, and merchant.ladill.com deployment workflow.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-09 23:05:21 +00:00