From 959f3d3e14f9aeef904801550f2b70a82d0fa312 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Tue, 21 Jul 2026 13:37:52 +0000 Subject: [PATCH] Fix church giving pages and restore Give in launcher. Allow church QR types to resolve to the public giving landing page again after the Mini-only landing gate regression. Co-authored-by: Cursor --- app/Models/QrCode.php | 1 + config/ladill_launcher.php | 4 ++++ tests/Unit/Models/QrCodeLandingTest.php | 16 ++++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 tests/Unit/Models/QrCodeLandingTest.php diff --git a/app/Models/QrCode.php b/app/Models/QrCode.php index a886aa3..b79e451 100644 --- a/app/Models/QrCode.php +++ b/app/Models/QrCode.php @@ -189,6 +189,7 @@ class QrCode extends Model public function usesLandingPage(): bool { return in_array($this->type, [ + self::TYPE_CHURCH, self::TYPE_PAYMENT, ], true); } diff --git a/config/ladill_launcher.php b/config/ladill_launcher.php index 93ad902..3183cd4 100644 --- a/config/ladill_launcher.php +++ b/config/ladill_launcher.php @@ -18,7 +18,10 @@ $root = config('app.platform_domain', 'ladill.com'); return [ 'apps' => [ + ['name' => 'Merchant', 'url' => 'https://merchant.'.$root.'/sso/connect?redirect='.urlencode('https://merchant.'.$root.'/dashboard'), 'icon' => 'merchant.svg'], ['name' => 'POS', 'url' => 'https://pos.'.$root.'/sso/connect?redirect='.urlencode('https://pos.'.$root.'/dashboard'), 'icon' => 'pos.svg'], + ['name' => 'Mini', 'url' => 'https://mini.'.$root.'/sso/connect?redirect='.urlencode('https://mini.'.$root.'/dashboard'), 'icon' => 'mini.svg'], + ['name' => 'Give', 'url' => 'https://give.'.$root.'/sso/connect?redirect='.urlencode('https://give.'.$root.'/dashboard'), 'icon' => 'give.svg'], ['name' => 'Woo Manager', 'url' => 'https://woo.'.$root.'/sso/connect?redirect='.urlencode('https://woo.'.$root.'/dashboard'), 'icon' => 'woomanager.svg'], ['name' => 'Transfer', 'url' => 'https://transfer.'.$root.'/sso/connect?redirect='.urlencode('https://transfer.'.$root.'/dashboard'), 'icon' => 'transfer.svg'], ['name' => 'Accounting', 'url' => 'https://accounting.'.$root.'/sso/connect?redirect='.urlencode('https://accounting.'.$root.'/dashboard'), 'icon' => 'accounting.svg'], @@ -29,6 +32,7 @@ return [ ['name' => 'Link', 'url' => 'https://link.'.$root.'/sso/connect?redirect='.urlencode('https://link.'.$root.'/dashboard'), 'icon' => 'link.svg'], ['name' => 'Frontdesk', 'url' => 'https://frontdesk.'.$root.'/sso/connect?redirect='.urlencode('https://frontdesk.'.$root.'/dashboard'), 'icon' => 'frontdesk.svg'], ['name' => 'Care', 'url' => 'https://care.'.$root.'/sso/connect?redirect='.urlencode('https://care.'.$root.'/dashboard'), 'icon' => 'care.svg'], + ['name' => 'One', 'url' => 'https://one.'.$root.'/sso/connect?redirect='.urlencode('https://one.'.$root.'/dashboard'), 'icon' => 'one.svg'], ['name' => 'Queue', 'url' => 'https://queue.'.$root.'/sso/connect?redirect='.urlencode('https://queue.'.$root.'/dashboard'), 'icon' => 'queue.svg'], ['name' => 'SMS', 'url' => 'https://sms.'.$root, 'icon' => 'sms.svg'], ['name' => 'Bird', 'url' => 'https://bird.'.$root, 'icon' => 'bird.svg'], diff --git a/tests/Unit/Models/QrCodeLandingTest.php b/tests/Unit/Models/QrCodeLandingTest.php new file mode 100644 index 0000000..c901f40 --- /dev/null +++ b/tests/Unit/Models/QrCodeLandingTest.php @@ -0,0 +1,16 @@ + QrCode::TYPE_CHURCH]); + + $this->assertTrue($qr->usesLandingPage()); + } +}