From 856720970748844b7abd956358f1c813e13a2ed0 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Sun, 12 Jul 2026 18:40:04 +0000 Subject: [PATCH] Use generic copy on messaging Integrations screens. Drop wallet/brand marketing language so credential setup reads as neutral configuration. Co-authored-by: Cursor --- .../Care/IntegrationsController.php | 8 +++--- .../views/care/integrations/edit.blade.php | 26 +++++++++---------- resources/views/care/patients/show.blade.php | 2 +- resources/views/care/settings/edit.blade.php | 2 +- .../Feature/CareMessagingIntegrationsTest.php | 5 ++-- 5 files changed, 22 insertions(+), 21 deletions(-) diff --git a/app/Http/Controllers/Care/IntegrationsController.php b/app/Http/Controllers/Care/IntegrationsController.php index 7223ce6..247b862 100644 --- a/app/Http/Controllers/Care/IntegrationsController.php +++ b/app/Http/Controllers/Care/IntegrationsController.php @@ -60,7 +60,7 @@ class IntegrationsController extends Controller return back()->withInput()->with('error', $result['error'] ?? 'Could not save SMS credentials.'); } - return back()->with('success', 'Ladill SMS connected. Outbound patient SMS will use your key and sender ID.'); + return back()->with('success', 'SMS credentials saved.'); } public function disconnectSms(Request $request, MessagingCredentialsService $credentials): RedirectResponse @@ -78,7 +78,7 @@ class IntegrationsController extends Controller $organization->id, ); - return back()->with('success', 'Ladill SMS disconnected.'); + return back()->with('success', 'SMS disconnected.'); } public function saveBird(Request $request, MessagingCredentialsService $credentials): RedirectResponse @@ -113,7 +113,7 @@ class IntegrationsController extends Controller return back()->withInput()->with('error', $result['error'] ?? 'Could not save Bird credentials.'); } - return back()->with('success', 'Ladill Bird connected. Outbound patient email will use your key and from address.'); + return back()->with('success', 'Email credentials saved.'); } public function disconnectBird(Request $request, MessagingCredentialsService $credentials): RedirectResponse @@ -131,7 +131,7 @@ class IntegrationsController extends Controller $organization->id, ); - return back()->with('success', 'Ladill Bird disconnected.'); + return back()->with('success', 'Email disconnected.'); } public function previewSenders(Request $request, CustomerSmsClient $sms): JsonResponse diff --git a/resources/views/care/integrations/edit.blade.php b/resources/views/care/integrations/edit.blade.php index 9334f08..f711db7 100644 --- a/resources/views/care/integrations/edit.blade.php +++ b/resources/views/care/integrations/edit.blade.php @@ -1,9 +1,9 @@

- Connect your own Ladill SMS - and Ladill Bird - API keys so patient messages bill your wallets and send under your brand. + Configure SMS + and email + credentials for outbound messaging.

@if (! $canManage) @@ -11,7 +11,7 @@ @endif
- + @if ($credential->hasValidSms())
Connected · key {{ $credential->sms_api_key_prefix }}… · sender {{ $credential->sms_sender_id }} @@ -50,13 +50,13 @@
- +
@@ -64,7 +64,7 @@ @endif - + @if ($credential->hasValidBird())
Connected · key {{ $credential->bird_api_key_prefix }}… · from @@ -110,13 +110,13 @@
- +
diff --git a/resources/views/care/patients/show.blade.php b/resources/views/care/patients/show.blade.php index 84f009c..e2b1e10 100644 --- a/resources/views/care/patients/show.blade.php +++ b/resources/views/care/patients/show.blade.php @@ -145,7 +145,7 @@ @if ($canManage)

Message patient

-

Uses your connected Ladill SMS / Bird credentials. Manage integrations

+

Requires SMS and email credentials. Manage integrations

@if (! ($messagingSmsReady ?? false) || ! ($messagingEmailReady ?? false))

@if (! ($messagingSmsReady ?? false) && ! ($messagingEmailReady ?? false)) diff --git a/resources/views/care/settings/edit.blade.php b/resources/views/care/settings/edit.blade.php index 2b4920d..99366f7 100644 --- a/resources/views/care/settings/edit.blade.php +++ b/resources/views/care/settings/edit.blade.php @@ -41,7 +41,7 @@ @if ($canManage) - + Open messaging integrations → diff --git a/tests/Feature/CareMessagingIntegrationsTest.php b/tests/Feature/CareMessagingIntegrationsTest.php index b22fb2f..bdf34c2 100644 --- a/tests/Feature/CareMessagingIntegrationsTest.php +++ b/tests/Feature/CareMessagingIntegrationsTest.php @@ -61,8 +61,9 @@ class CareMessagingIntegrationsTest extends TestCase $this->actingAs($this->user) ->get(route('care.integrations')) ->assertOk() - ->assertSee('Ladill SMS') - ->assertSee('Ladill Bird'); + ->assertSee('SMS') + ->assertSee('Email') + ->assertSee('credentials for outbound messaging'); } public function test_saving_sms_credentials_encrypts_key(): void