Gate Queue to doctors and land specialty modules on list indexes.
Deploy Ladill Care / deploy (push) Successful in 34s

Hide the patient-flow Queue board from nurses, reception, and other
non-doctors; specialty home routes now render the queue board list
instead of auto-opening the first open visit.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-18 22:53:12 +00:00
co-authored by Cursor
parent 244bb8fba6
commit d422797050
22 changed files with 277 additions and 122 deletions
+13
View File
@@ -58,6 +58,7 @@ class CareNaturalQueueTest extends TestCase
'organization_id' => $this->organization->id,
'user_ref' => $this->owner->public_id,
'role' => 'receptionist',
'branch_id' => null,
]);
$this->branch = Branch::create([
@@ -66,6 +67,10 @@ class CareNaturalQueueTest extends TestCase
'name' => 'Main',
'is_active' => true,
]);
Member::query()->where('user_ref', $this->owner->public_id)->update([
'branch_id' => $this->branch->id,
]);
}
public function test_sidebar_does_not_show_service_queues_nav(): void
@@ -78,6 +83,8 @@ class CareNaturalQueueTest extends TestCase
public function test_service_queues_index_redirects_to_clinical_queue(): void
{
Member::query()->where('user_ref', $this->owner->public_id)->update(['role' => 'doctor']);
$this->actingAs($this->owner)
->get(route('care.service-queues.index'))
->assertRedirect(route('care.queue.index'));
@@ -85,6 +92,8 @@ class CareNaturalQueueTest extends TestCase
public function test_clinical_queue_shows_inline_ops_not_service_counter(): void
{
Member::query()->where('user_ref', $this->owner->public_id)->update(['role' => 'doctor']);
$this->actingAs($this->owner)
->get(route('care.queue.index'))
->assertOk()
@@ -119,6 +128,8 @@ class CareNaturalQueueTest extends TestCase
public function test_integration_off_hides_queue_controls(): void
{
Member::query()->where('user_ref', $this->owner->public_id)->update(['role' => 'doctor']);
$settings = $this->organization->settings;
$settings['queue_integration_enabled'] = false;
$this->organization->update(['settings' => $settings]);
@@ -134,6 +145,8 @@ class CareNaturalQueueTest extends TestCase
{
Http::fake();
Member::query()->where('user_ref', $this->owner->public_id)->update(['role' => 'doctor']);
$practitioner = Practitioner::create([
'owner_ref' => $this->owner->public_id,
'organization_id' => $this->organization->id,