From b1323e65f4b14990f201e40a4a183fe95d3c1ce0 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 25 Nov 2026 10:30:44 -0500 Subject: [PATCH 1/4] Swap post-Black Friday site banner to Bifrost waitlist Replace the birthday banner shown after the Black Friday sale with a banner linking to the Bifrost waitlist form. Co-Authored-By: Claude Haiku 5.5 Claude-Session: https://claude.ai/code/session_01XhTCe1nCta8TiffsmPn5mM --- .../bifrost-waitlist-banner.blade.php | 39 +++++++++++++++++++ resources/views/components/layout.blade.php | 2 +- .../Feature/BifrostBlackFridayBannerTest.php | 16 +++++++- 3 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 resources/views/components/bifrost-waitlist-banner.blade.php diff --git a/resources/views/components/bifrost-waitlist-banner.blade.php b/resources/views/components/bifrost-waitlist-banner.blade.php new file mode 100644 index 00000000..28522979 --- /dev/null +++ b/resources/views/components/bifrost-waitlist-banner.blade.php @@ -0,0 +1,39 @@ + + {{-- Label --}} +
+ {{-- Icon --}} +
+ + {{-- Call to action --}} + + Get the free guides + + + {{-- Arrow --}} +
+ +
+
diff --git a/resources/views/components/layout.blade.php b/resources/views/components/layout.blade.php index ee8e92f9..343d370f 100644 --- a/resources/views/components/layout.blade.php +++ b/resources/views/components/layout.blade.php @@ -124,7 +124,7 @@ class="min-h-screen overflow-x-clip bg-white font-poppins antialiased selection: @if (now()->isBefore('2026-12-01T08:00:00Z')) @elseif (now()->isBefore('2027-01-01T00:00:00Z')) - + @else @endif diff --git a/tests/Feature/BifrostBlackFridayBannerTest.php b/tests/Feature/BifrostBlackFridayBannerTest.php index e187ff35..59a2b2f8 100644 --- a/tests/Feature/BifrostBlackFridayBannerTest.php +++ b/tests/Feature/BifrostBlackFridayBannerTest.php @@ -43,13 +43,25 @@ public function the_homepage_carries_the_black_friday_banner_until_the_sale_ends } #[Test] - public function the_birthday_banner_comes_back_once_the_sale_ends(): void + public function the_waitlist_banner_replaces_the_black_friday_banner_once_the_sale_ends(): void { $this->travelTo(Carbon::parse('2026-12-01T08:00:00Z')); $this->get('/') ->assertOk() ->assertDontSee('bifrost_black_friday_banner_click', escape: false) - ->assertSee('bifrost_birthday_banner_click', escape: false); + ->assertDontSee('bifrost_birthday_banner_click', escape: false) + ->assertSee('bifrost_waitlist_banner_click', escape: false); + } + + #[Test] + public function the_waitlist_banner_links_to_the_kit_signup_form_in_a_new_tab(): void + { + $this->blade('') + ->assertSee('Ship your PHP app to the App Store without the usual pain.') + ->assertSee('href="https://bifrost-technologies.kit.com/03a1490f56"', escape: false) + ->assertSee('target="_blank"', escape: false) + ->assertSee('rel="noopener"', escape: false) + ->assertSee('bifrost_waitlist_banner_click', escape: false); } } From 4a03e8a3009fc8de3033376cc7d788012297ea36 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 25 Nov 2026 10:41:47 -0500 Subject: [PATCH 2/4] Open a Kit waitlist popup from the site banner and customer dashboard The waitlist banner now opens an in-page modal that posts to the Bifrost Kit form with fetch, instead of sending people to the hosted Kit page. A dismissible waitlist card on the customer dashboard opens the same modal from Dec 1, 08:00 UTC. The Kit endpoints live in services.kit. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01XhTCe1nCta8TiffsmPn5mM --- config/services.php | 9 + .../bifrost-waitlist-banner.blade.php | 15 +- .../bifrost-waitlist-modal.blade.php | 203 ++++++++++++++++++ resources/views/components/layout.blade.php | 1 + .../components/layouts/dashboard.blade.php | 2 + .../livewire/customer/dashboard.blade.php | 44 ++++ .../Feature/BifrostBlackFridayBannerTest.php | 38 +++- tests/Feature/DashboardLayoutTest.php | 26 +++ 8 files changed, 326 insertions(+), 12 deletions(-) create mode 100644 resources/views/components/bifrost-waitlist-modal.blade.php diff --git a/config/services.php b/config/services.php index 0d74bbf0..aa0d8e8e 100644 --- a/config/services.php +++ b/config/services.php @@ -35,6 +35,15 @@ 'key' => env('ANYSTACK_API_KEY'), ], + 'kit' => [ + /* + * The Bifrost waitlist form on Kit. The waitlist modal posts here with fetch and + * reads Kit's JSON reply; the hosted page is the fallback if that request fails. + */ + 'waitlist_subscribe_url' => env('KIT_WAITLIST_SUBSCRIBE_URL', 'https://app.kit.com/forms/10242151/subscriptions'), + 'waitlist_hosted_url' => env('KIT_WAITLIST_HOSTED_URL', 'https://bifrost-technologies.kit.com/03a1490f56'), + ], + 'mailcoach' => [ /* * The public subscribe endpoint for the NativePHP newsletter list. Forms post diff --git a/resources/views/components/bifrost-waitlist-banner.blade.php b/resources/views/components/bifrost-waitlist-banner.blade.php index 28522979..bc14ccdb 100644 --- a/resources/views/components/bifrost-waitlist-banner.blade.php +++ b/resources/views/components/bifrost-waitlist-banner.blade.php @@ -1,10 +1,11 @@ - {{-- Label --}}
-
+ diff --git a/resources/views/components/bifrost-waitlist-modal.blade.php b/resources/views/components/bifrost-waitlist-modal.blade.php new file mode 100644 index 00000000..c5d57566 --- /dev/null +++ b/resources/views/components/bifrost-waitlist-modal.blade.php @@ -0,0 +1,203 @@ +{{-- + Bifrost waitlist modal. Opened from anywhere on the site by dispatching an + `open-bifrost-waitlist-modal` window event, and on load when the URL has + `?waitlist`. The form posts to Kit with fetch and shows Kit's reply in place, + so people never leave the page. If the request itself fails, it points to + the hosted Kit form instead. +--}} +
has('waitlist')) + x-init="show()" + @endif + @open-bifrost-waitlist-modal.window="show()" + @keydown.escape.window="open = false" +> + {{-- Backdrop --}} +
+ + +
diff --git a/resources/views/components/layout.blade.php b/resources/views/components/layout.blade.php index 343d370f..c0121dc1 100644 --- a/resources/views/components/layout.blade.php +++ b/resources/views/components/layout.blade.php @@ -140,6 +140,7 @@ class="mx-auto w-full max-w-5xl px-5 lg:px-3 xl:max-w-7xl 2xl:max-w-360" + diff --git a/resources/views/components/layouts/dashboard.blade.php b/resources/views/components/layouts/dashboard.blade.php index 54dd2366..4f480f8a 100644 --- a/resources/views/components/layouts/dashboard.blade.php +++ b/resources/views/components/layouts/dashboard.blade.php @@ -263,6 +263,8 @@ class="min-h-screen bg-white font-poppins antialiased dark:bg-zinc-900 dark:text + + @livewireScriptConfig diff --git a/resources/views/livewire/customer/dashboard.blade.php b/resources/views/livewire/customer/dashboard.blade.php index 9956497d..115a9f2f 100644 --- a/resources/views/livewire/customer/dashboard.blade.php +++ b/resources/views/livewire/customer/dashboard.blade.php @@ -102,6 +102,50 @@ class="w-full shrink-0 rounded-xl bg-white/70 p-4 ring-1 ring-violet-200 sm:w-au @endif + {{-- Bifrost Waitlist Banner --}} + @unless(now()->isBefore('2026-12-01T08:00:00Z')) +
+ +
+
+ +
+
+

+ Ship your PHP app to the App Store without the usual pain +

+

+ Free, practical guides from the Bifrost team on native builds, signing and getting through store review. +

+
+ +
+
+
+
+ @endunless + {{-- Banners --}}
@feature(App\Features\ShowPlugins::class) diff --git a/tests/Feature/BifrostBlackFridayBannerTest.php b/tests/Feature/BifrostBlackFridayBannerTest.php index 59a2b2f8..b64aa6f8 100644 --- a/tests/Feature/BifrostBlackFridayBannerTest.php +++ b/tests/Feature/BifrostBlackFridayBannerTest.php @@ -55,13 +55,41 @@ public function the_waitlist_banner_replaces_the_black_friday_banner_once_the_sa } #[Test] - public function the_waitlist_banner_links_to_the_kit_signup_form_in_a_new_tab(): void + public function the_waitlist_banner_opens_the_waitlist_modal(): void { $this->blade('') ->assertSee('Ship your PHP app to the App Store without the usual pain.') - ->assertSee('href="https://bifrost-technologies.kit.com/03a1490f56"', escape: false) - ->assertSee('target="_blank"', escape: false) - ->assertSee('rel="noopener"', escape: false) - ->assertSee('bifrost_waitlist_banner_click', escape: false); + ->assertSee('open-bifrost-waitlist-modal', escape: false) + ->assertSee('bifrost_waitlist_banner_click', escape: false) + ->assertDontSee('href=', escape: false); + } + + #[Test] + public function the_waitlist_modal_posts_name_and_email_to_the_kit_form(): void + { + config(['services.kit.waitlist_subscribe_url' => 'https://app.kit.com/forms/123/subscriptions']); + + $this->blade('') + ->assertSee('action="https://app.kit.com/forms/123/subscriptions"', escape: false) + ->assertSee('name="email_address"', escape: false) + ->assertSee('name="fields[first_name]"', escape: false) + ->assertSee('@open-bifrost-waitlist-modal.window', escape: false); + } + + #[Test] + public function the_waitlist_modal_opens_itself_from_the_waitlist_link(): void + { + $this->get('/?waitlist=1') + ->assertOk() + ->assertSee('bifrost-waitlist-modal-heading', escape: false) + ->assertSee('x-init="show()"', escape: false); + } + + #[Test] + public function every_page_carries_the_waitlist_modal(): void + { + $this->get('/') + ->assertOk() + ->assertSee('@open-bifrost-waitlist-modal.window', escape: false); } } diff --git a/tests/Feature/DashboardLayoutTest.php b/tests/Feature/DashboardLayoutTest.php index 72cc1746..d7a536c9 100644 --- a/tests/Feature/DashboardLayoutTest.php +++ b/tests/Feature/DashboardLayoutTest.php @@ -172,6 +172,32 @@ public function test_dashboard_hides_team_card_for_non_ultra_user(): void ->assertDontSee('Create a team'); } + // ======================================== + // Bifrost Waitlist Banner Tests + // ======================================== + + public function test_dashboard_hides_bifrost_waitlist_banner_during_black_friday(): void + { + $this->travelTo(Carbon::parse('2026-12-01T07:59:59Z')); + + Livewire::actingAs(User::factory()->create()) + ->test(Dashboard::class) + ->assertOk() + ->assertDontSee('bifrost_waitlist_dashboard_click', escape: false); + } + + public function test_dashboard_shows_bifrost_waitlist_banner_after_black_friday(): void + { + $this->travelTo(Carbon::parse('2026-12-01T08:00:00Z')); + + Livewire::actingAs(User::factory()->create()) + ->test(Dashboard::class) + ->assertOk() + ->assertSee('Ship your PHP app to the App Store without the usual pain') + ->assertSee('open-bifrost-waitlist-modal', escape: false) + ->assertSee('bifrost_waitlist_dashboard_click', escape: false); + } + // ======================================== // Ultra Upsell Banner Tests // ======================================== From 8fdba63fd022291644c5722dc0396add10abd15f Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 25 Nov 2026 10:58:21 -0500 Subject: [PATCH 3/4] Prefill the waitlist modal for signed-in users The modal takes an optional user and fills in their first name and email, then focuses the submit button so signing up is one click. The site and dashboard layouts pass the signed-in user; guests see empty fields. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01XhTCe1nCta8TiffsmPn5mM --- .../bifrost-waitlist-modal.blade.php | 11 +++++-- resources/views/components/layout.blade.php | 2 +- .../components/layouts/dashboard.blade.php | 2 +- .../Feature/BifrostBlackFridayBannerTest.php | 31 +++++++++++++++++++ 4 files changed, 42 insertions(+), 4 deletions(-) diff --git a/resources/views/components/bifrost-waitlist-modal.blade.php b/resources/views/components/bifrost-waitlist-modal.blade.php index c5d57566..1f62e1a3 100644 --- a/resources/views/components/bifrost-waitlist-modal.blade.php +++ b/resources/views/components/bifrost-waitlist-modal.blade.php @@ -1,9 +1,12 @@ +@props(['user' => null]) + {{-- Bifrost waitlist modal. Opened from anywhere on the site by dispatching an `open-bifrost-waitlist-modal` window event, and on load when the URL has `?waitlist`. The form posts to Kit with fetch and shows Kit's reply in place, so people never leave the page. If the request itself fails, it points to - the hosted Kit form instead. + the hosted Kit form instead. Pass a signed-in `user` to prefill their first + name and email, so signing up is one click. --}}
@@ -162,6 +168,7 @@ class="underline"