From a6f71909fd684d760a50d960db1909fa912b39c2 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Fri, 7 Aug 2026 14:43:04 +0200 Subject: [PATCH] feat(ui): add Open server links on destination cards Link primary and additional destination server cards to their server pages via wire:navigate, and cover the markup in a feature test. --- .../views/livewire/project/shared/destination.blade.php | 6 ++++++ tests/Feature/ApplicationDestinationStatusBadgeTest.php | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/resources/views/livewire/project/shared/destination.blade.php b/resources/views/livewire/project/shared/destination.blade.php index 720e85bdc..a1f7923d3 100644 --- a/resources/views/livewire/project/shared/destination.blade.php +++ b/resources/views/livewire/project/shared/destination.blade.php @@ -33,6 +33,8 @@
+ Open server @if ($hasAdditionalDestinations)
+ Open server @if ($destinationStatus->startsWith('running')) @elseif ($destinationStatus->startsWith(['starting', 'restarting'])) @@ -211,6 +215,8 @@
+ Open server @if ($primaryStatus->startsWith('running')) @elseif ($primaryStatus->startsWith(['starting', 'restarting'])) diff --git a/tests/Feature/ApplicationDestinationStatusBadgeTest.php b/tests/Feature/ApplicationDestinationStatusBadgeTest.php index 11eeba515..9dfbedb56 100644 --- a/tests/Feature/ApplicationDestinationStatusBadgeTest.php +++ b/tests/Feature/ApplicationDestinationStatusBadgeTest.php @@ -8,3 +8,12 @@ it('uses the shared status summary in the primary application server card', func ->toContain('') ->not->toContain('toContain("route('server.show', ['server_uuid' => data_get(\$resource, 'destination.server.uuid')])") + ->toContain("route('server.show', ['server_uuid' => data_get(\$destination, 'server.uuid')])") + ->toContain('Open server'); +});