Commit Graph
2 Commits
Author SHA1 Message Date
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