Commit Graph
10 Commits
Author SHA1 Message Date
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 ed21d332d8 Use storefront icon for the Storefronts nav (was the give heart icon).
Deploy Ladill Merchant / deploy (push) Successful in 42s
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-10 11:02:32 +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
isaaccladandClaude Opus 4.8 6cf796fa60 Re-trigger deploy (app dir ownership fixed to deploy:www-data).
Deploy Ladill Merchant / deploy (push) Successful in 35s
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-10 08:51:05 +00:00
isaaccladandClaude Opus 4.8 489d6e9042 Trigger initial Ladill Merchant deploy.
Deploy Ladill Merchant / deploy (push) Failing after 20s
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-10 06:45:10 +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