fix(care): point Messaging settings at suite defaults, not API keys
Deploy Ladill Care / deploy (push) Successful in 35s
Deploy Ladill Care / deploy (push) Successful in 35s
Care still linked to Integrations for Bird/SMS credentials after zero-config suite messaging. Update copy and readiness checks so suite platform keys count as ready; Account Messaging is primary, product keys are advanced.
This commit is contained in:
@@ -145,15 +145,20 @@
|
||||
@if ($canManage)
|
||||
<section class="rounded-2xl border border-slate-200 bg-white p-6" x-data="{ tab: 'sms' }">
|
||||
<h2 class="text-sm font-semibold uppercase tracking-wide text-slate-500">Message patient</h2>
|
||||
<p class="mt-1 text-xs text-slate-500">Requires SMS and email credentials. <a href="{{ route('care.integrations') }}" class="text-teal-700 underline">Manage integrations</a></p>
|
||||
<p class="mt-1 text-xs text-slate-500">
|
||||
Uses suite messaging by default (no API keys).
|
||||
<a href="{{ $messagingSettingsUrl ?? '#' }}" class="text-teal-700 underline" target="_blank" rel="noopener">Account messaging settings</a>
|
||||
·
|
||||
<a href="{{ route('care.integrations') }}" class="text-slate-500 underline">Advanced keys</a>
|
||||
</p>
|
||||
@if (! ($messagingSmsReady ?? false) || ! ($messagingEmailReady ?? false))
|
||||
<p class="mt-3 rounded-lg border border-amber-200 bg-amber-50 px-3 py-2 text-xs text-amber-800">
|
||||
@if (! ($messagingSmsReady ?? false) && ! ($messagingEmailReady ?? false))
|
||||
Connect SMS and Bird in Integrations before messaging patients.
|
||||
Messaging is not available yet. Bind a mailbox under Account → Messaging once platform keys are configured, or connect product keys under Integrations.
|
||||
@elseif (! ($messagingSmsReady ?? false))
|
||||
Connect Ladill SMS in Integrations to enable SMS.
|
||||
SMS is not available (platform SMS key missing and no product SMS credentials).
|
||||
@else
|
||||
Connect Ladill Bird in Integrations to enable email.
|
||||
Email is not available (platform email key missing and no Bird credentials). Set a mailbox under Account → Messaging when suite email is live.
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user