From 66b202adfe6b6a3d6d3165323230b04a7307ea60 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Thu, 6 Aug 2026 14:30:06 +0200 Subject: [PATCH] feat(ui): restyle public access domains summary Show configured domain count in a bordered card with helper copy and a Manage link, and update the feature test assertions to match. --- .../project/application/general.blade.php | 32 +++++++++++-------- .../ApplicationInternalAccessSectionTest.php | 5 ++- 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/resources/views/livewire/project/application/general.blade.php b/resources/views/livewire/project/application/general.blade.php index 127595927..bd410696e 100644 --- a/resources/views/livewire/project/application/general.blade.php +++ b/resources/views/livewire/project/application/general.blade.php @@ -30,7 +30,7 @@
$buildPack !== 'dockercompose', ])> -

Public access

+

Public access

@php $domainCount = 0; if ($buildPack === 'dockercompose') { @@ -49,24 +49,28 @@ $domainCount = countDomains($fqdn); } @endphp -
-

- @if ($domainCount === 0) - No domains set. - @elseif ($domainCount === 1) - 1 domain set. - @else - {{ $domainCount }} domains set. - @endif -

- +
+
+ +
+
+

+ {{ $domainCount }} configured {{ Str::plural('domain', $domainCount) }} +

+

+ Domains, DNS checks, and redirect settings +

+
+
+
- - Manage domains + Manage +
diff --git a/tests/Feature/ApplicationInternalAccessSectionTest.php b/tests/Feature/ApplicationInternalAccessSectionTest.php index f0517d8c1..500685654 100644 --- a/tests/Feature/ApplicationInternalAccessSectionTest.php +++ b/tests/Feature/ApplicationInternalAccessSectionTest.php @@ -9,7 +9,10 @@ expect($generalSettings) ->toContain('id="access-section" title="Access"') - ->toContain('

Public access

') + ->toContain('

Public access

') + ->toContain("Str::plural('domain', \$domainCount)") + ->toContain('Domains, DNS checks, and redirect settings') + ->toContain('') ->toContain('not->toContain('wire:init="loadCurrentInternalHostname"') ->and($internalAccessSettings)