Simplify unplaced-patient copy on nursing charts.
Deploy Ladill Care / deploy (push) Successful in 1m9s
Deploy Ladill Care / deploy (push) Successful in 1m9s
Keep a short patient-focused empty state and unit links without explaining nurse duty. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -142,25 +142,15 @@
|
|||||||
@else
|
@else
|
||||||
<div class="rounded-xl border border-dashed border-slate-200 px-3 py-3 text-slate-600">
|
<div class="rounded-xl border border-dashed border-slate-200 px-3 py-3 text-slate-600">
|
||||||
<p class="font-medium text-slate-800">This patient is not on a care unit right now.</p>
|
<p class="font-medium text-slate-800">This patient is not on a care unit right now.</p>
|
||||||
@if (($nurseDutyUnits ?? collect())->isNotEmpty())
|
<p class="mt-2 flex flex-wrap gap-3">
|
||||||
<p class="mt-1 text-sm text-slate-500">
|
@forelse ($nurseDutyUnits ?? [] as $dutyUnit)
|
||||||
You are on duty at
|
<a href="{{ route('care.nursing.station', ['unit' => $dutyUnit->id]) }}" class="text-sm font-medium text-indigo-600 hover:text-indigo-800">
|
||||||
{{ $nurseDutyUnits->pluck('name')->join(', ') }} —
|
Open {{ $dutyUnit->name }}
|
||||||
this chart is about the patient’s placement, not yours.
|
</a>
|
||||||
</p>
|
@empty
|
||||||
<p class="mt-2 flex flex-wrap gap-3">
|
<a href="{{ route('care.nursing.station') }}" class="text-sm font-medium text-indigo-600 hover:text-indigo-800">My care unit</a>
|
||||||
@foreach ($nurseDutyUnits as $dutyUnit)
|
@endforelse
|
||||||
<a href="{{ route('care.nursing.station', ['unit' => $dutyUnit->id]) }}" class="text-sm font-medium text-indigo-600 hover:text-indigo-800">
|
</p>
|
||||||
Open {{ $dutyUnit->name }}
|
|
||||||
</a>
|
|
||||||
@endforeach
|
|
||||||
</p>
|
|
||||||
@else
|
|
||||||
<p class="mt-1 text-sm text-slate-500">
|
|
||||||
Ask a charge nurse to place them, or open
|
|
||||||
<a href="{{ route('care.nursing.station') }}" class="font-medium text-indigo-600 hover:text-indigo-800">My care unit</a>.
|
|
||||||
</p>
|
|
||||||
@endif
|
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|||||||
@@ -408,9 +408,8 @@ class CareMyShiftsAndNavPermissionsTest extends TestCase
|
|||||||
->get(route('care.patients.show', $patient))
|
->get(route('care.patients.show', $patient))
|
||||||
->assertOk()
|
->assertOk()
|
||||||
->assertSee('This patient is not on a care unit right now.')
|
->assertSee('This patient is not on a care unit right now.')
|
||||||
->assertSee('You are on duty at')
|
|
||||||
->assertSee('Medical Ward')
|
|
||||||
->assertSee('Open Medical Ward')
|
->assertSee('Open Medical Ward')
|
||||||
|
->assertDontSee('You are on duty at')
|
||||||
->assertDontSee('Not placed on a care unit right now.');
|
->assertDontSee('Not placed on a care unit right now.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user