Add patient SMS/email messaging and fix Meet video visit errors.
Deploy Ladill Care / deploy (push) Successful in 43s

Wire Care to Ladill SMS and Bird management APIs on the patient page, and surface Meet auth/config failures as friendly validation errors instead of a 502 page.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-12 14:14:14 +00:00
co-authored by Cursor
parent 0bb19233e2
commit 2568b8a2f0
12 changed files with 505 additions and 2 deletions
+18
View File
@@ -131,6 +131,24 @@ class CareAppointmentMeetTest extends TestCase
$this->assertSame('room-uuid-2', $appointment->meet_room_uuid);
}
public function test_schedule_meet_shows_friendly_error_when_unauthorized(): void
{
Http::fake([
'meet.test/*' => Http::response(['error' => 'Unauthorized.'], 401),
]);
$appointment = $this->createAppointment();
$this->actingAs($this->user)
->from(route('care.appointments.show', $appointment))
->post(route('care.appointments.schedule-meet', $appointment))
->assertRedirect(route('care.appointments.show', $appointment))
->assertSessionHasErrors('meet');
$appointment->refresh();
$this->assertNull($appointment->meet_room_uuid);
}
protected function createAppointment(string $status = Appointment::STATUS_SCHEDULED): Appointment
{
return Appointment::create([