Rename My ward to My care unit in nurse station UI.
Deploy Ladill Care / deploy (push) Successful in 40s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-20 15:57:25 +00:00
co-authored by Cursor
parent 45da731561
commit 218023746d
6 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -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. * Not granted to GPs / ambulance solely because they also chart vitals.
* *
* @param list<string> $abilities * @param list<string> $abilities
@@ -21,7 +21,7 @@
@if ($canAdminUnits) @if ($canAdminUnits)
<a href="{{ route('care.care-units.index') }}" class="text-indigo-600 hover:text-indigo-800">Care units</a> <a href="{{ route('care.care-units.index') }}" class="text-indigo-600 hover:text-indigo-800">Care units</a>
@elseif ($canStation) @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 @else
Care units Care units
@endif @endif
@@ -36,7 +36,7 @@
auth()->user() ? app(\App\Services\Care\OrganizationResolver::class)->memberFor(auth()->user()) : null, auth()->user() ? app(\App\Services\Care\OrganizationResolver::class)->memberFor(auth()->user()) : null,
'nursing.station.view' '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 @endif
<span class="rounded-full bg-teal-100 px-2.5 py-0.5 text-xs font-medium text-teal-800"> <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) }} {{ 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="space-y-6">
<div class="flex flex-wrap items-start justify-between gap-4"> <div class="flex flex-wrap items-start justify-between gap-4">
<div> <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"> <p class="mt-1 text-sm text-slate-500">
Patients on units youre rostered or placed on today chart meds, vitals, notes, and handovers. Patients on units youre rostered or placed on today chart meds, vitals, notes, and handovers.
</p> </p>
+1 -1
View File
@@ -33,7 +33,7 @@
} }
if ($permissions->can($member, 'nursing.station.view')) { 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.mar')
|| request()->routeIs('care.care-units.notes') || request()->routeIs('care.care-units.notes')
|| request()->routeIs('care.care-units.handovers*') || request()->routeIs('care.care-units.handovers*')
@@ -120,7 +120,7 @@ class CareMyShiftsAndNavPermissionsTest extends TestCase
->assertOk() ->assertOk()
->assertDontSee('>Care units<', false) ->assertDontSee('>Care units<', false)
->assertDontSee('>Nursing Services<', false) ->assertDontSee('>Nursing Services<', false)
->assertDontSee('>My ward<', false) ->assertDontSee('>My care unit<', false)
->assertSee('My shifts', false); ->assertSee('My shifts', false);
} }
@@ -213,7 +213,7 @@ class CareMyShiftsAndNavPermissionsTest extends TestCase
$this->actingAs($user) $this->actingAs($user)
->get(route('care.nursing.station')) ->get(route('care.nursing.station'))
->assertOk() ->assertOk()
->assertSee('My ward') ->assertSee('My care unit')
->assertSee('No unit assigned for today'); ->assertSee('No unit assigned for today');
$this->actingAs($user) $this->actingAs($user)
@@ -223,7 +223,7 @@ class CareMyShiftsAndNavPermissionsTest extends TestCase
->assertDontSee('>Departments<', false) ->assertDontSee('>Departments<', false)
->assertDontSee('>Nursing Services<', false) ->assertDontSee('>Nursing Services<', false)
->assertDontSee('>Nursing<', false) ->assertDontSee('>Nursing<', false)
->assertSee('>My ward<', false) ->assertSee('>My care unit<', false)
->assertSee('My shifts', false); ->assertSee('My shifts', false);
} }
@@ -305,6 +305,6 @@ class CareMyShiftsAndNavPermissionsTest extends TestCase
$this->actingAs($user) $this->actingAs($user)
->get(route('care.my-shifts')) ->get(route('care.my-shifts'))
->assertOk() ->assertOk()
->assertSee('Open ward'); ->assertSee('Open care unit');
} }
} }