Rename My ward to My care unit in nurse station UI.
Deploy Ladill Care / deploy (push) Successful in 40s
Deploy Ladill Care / deploy (push) Successful in 40s
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -657,7 +657,7 @@ class CarePermissions
|
||||
}
|
||||
|
||||
/**
|
||||
* Bedside nurse station (My ward) — floor + ward nursing roles with clinical vitals.
|
||||
* Bedside nurse station (My care unit) — floor + ward nursing roles with clinical vitals.
|
||||
* Not granted to GPs / ambulance solely because they also chart vitals.
|
||||
*
|
||||
* @param list<string> $abilities
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
@if ($canAdminUnits)
|
||||
<a href="{{ route('care.care-units.index') }}" class="text-indigo-600 hover:text-indigo-800">Care units</a>
|
||||
@elseif ($canStation)
|
||||
<a href="{{ route('care.nursing.station', ['unit' => $unit->id]) }}" class="text-indigo-600 hover:text-indigo-800">My ward</a>
|
||||
<a href="{{ route('care.nursing.station', ['unit' => $unit->id]) }}" class="text-indigo-600 hover:text-indigo-800">My care unit</a>
|
||||
@else
|
||||
Care units
|
||||
@endif
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
auth()->user() ? app(\App\Services\Care\OrganizationResolver::class)->memberFor(auth()->user()) : null,
|
||||
'nursing.station.view'
|
||||
))
|
||||
<a href="{{ route('care.nursing.station', ['unit' => $entry->care_unit_id]) }}" class="rounded-lg bg-slate-900 px-2.5 py-1 text-xs font-semibold text-white hover:bg-slate-800">Open ward</a>
|
||||
<a href="{{ route('care.nursing.station', ['unit' => $entry->care_unit_id]) }}" class="rounded-lg bg-slate-900 px-2.5 py-1 text-xs font-semibold text-white hover:bg-slate-800">Open care unit</a>
|
||||
@endif
|
||||
<span class="rounded-full bg-teal-100 px-2.5 py-0.5 text-xs font-medium text-teal-800">
|
||||
{{ config('care.roster_entry_statuses.'.$entry->status, $entry->status) }}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<x-app-layout title="My ward">
|
||||
<x-app-layout title="My care unit">
|
||||
<div class="space-y-6">
|
||||
<div class="flex flex-wrap items-start justify-between gap-4">
|
||||
<div>
|
||||
<h1 class="text-2xl font-semibold text-slate-900">My ward</h1>
|
||||
<h1 class="text-2xl font-semibold text-slate-900">My care unit</h1>
|
||||
<p class="mt-1 text-sm text-slate-500">
|
||||
Patients on units you’re rostered or placed on today — chart meds, vitals, notes, and handovers.
|
||||
</p>
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
}
|
||||
|
||||
if ($permissions->can($member, 'nursing.station.view')) {
|
||||
$nav[] = ['name' => 'My ward', 'route' => route('care.nursing.station'), 'active' => request()->routeIs('care.nursing.station')
|
||||
$nav[] = ['name' => 'My care unit', 'route' => route('care.nursing.station'), 'active' => request()->routeIs('care.nursing.station')
|
||||
|| (request()->routeIs('care.care-units.mar')
|
||||
|| request()->routeIs('care.care-units.notes')
|
||||
|| request()->routeIs('care.care-units.handovers*')
|
||||
|
||||
@@ -120,7 +120,7 @@ class CareMyShiftsAndNavPermissionsTest extends TestCase
|
||||
->assertOk()
|
||||
->assertDontSee('>Care units<', false)
|
||||
->assertDontSee('>Nursing Services<', false)
|
||||
->assertDontSee('>My ward<', false)
|
||||
->assertDontSee('>My care unit<', false)
|
||||
->assertSee('My shifts', false);
|
||||
}
|
||||
|
||||
@@ -213,7 +213,7 @@ class CareMyShiftsAndNavPermissionsTest extends TestCase
|
||||
$this->actingAs($user)
|
||||
->get(route('care.nursing.station'))
|
||||
->assertOk()
|
||||
->assertSee('My ward')
|
||||
->assertSee('My care unit')
|
||||
->assertSee('No unit assigned for today');
|
||||
|
||||
$this->actingAs($user)
|
||||
@@ -223,7 +223,7 @@ class CareMyShiftsAndNavPermissionsTest extends TestCase
|
||||
->assertDontSee('>Departments<', false)
|
||||
->assertDontSee('>Nursing Services<', false)
|
||||
->assertDontSee('>Nursing<', false)
|
||||
->assertSee('>My ward<', false)
|
||||
->assertSee('>My care unit<', false)
|
||||
->assertSee('My shifts', false);
|
||||
}
|
||||
|
||||
@@ -305,6 +305,6 @@ class CareMyShiftsAndNavPermissionsTest extends TestCase
|
||||
$this->actingAs($user)
|
||||
->get(route('care.my-shifts'))
|
||||
->assertOk()
|
||||
->assertSee('Open ward');
|
||||
->assertSee('Open care unit');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user