Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix(ui): render domain guidance below the section header

Andras Bacsai2c6208c8ce60
diff --git a/resources/views/livewire/project/application/domains.blade.php b/resources/views/livewire/project/application/domains.blade.php
index b1a35cb214..4ad08944e1 100644
--- a/resources/views/livewire/project/application/domains.blade.php
+++ b/resources/views/livewire/project/application/domains.blade.php
@@ -49,7 +49,7 @@
}"
@open-edit-domain.window="openEditDomain($event.detail.index, $event.detail.url, $event.detail.service)"
@edit-domain-saved.window="closeEditDomain()">
- <x-application.settings-section id="domains-section" title="Domains" :helper="$helperText">
+ <x-application.settings-section id="domains-section" title="Domains">
@can('update', $application)
<x-slot:actions>
<x-forms.button wire:click="checkAllDns" wire:loading.attr="disabled" wire:target="checkAllDns,checkDomainDns">
@@ -78,6 +78,10 @@
</x-callout>
@endcannot
+ <p class="text-sm text-neutral-500 dark:text-fg-dim">
+ {{ $helperText }}
+ </p>
+
</x-application.settings-section>
{{-- Toolbar --}}
diff --git a/tests/Feature/ApplicationDomainsTest.php b/tests/Feature/ApplicationDomainsTest.php
index 224f9c5459..2c4c2c679a 100644
--- a/tests/Feature/ApplicationDomainsTest.php
+++ b/tests/Feature/ApplicationDomainsTest.php
@@ -1263,6 +1263,14 @@ it('uses the compact service domains layout for compose applications', function
->not->toContain('title="No domains for this service"');
});
+it('shows domain guidance in the application domains section', function () {
+ $view = file_get_contents(resource_path('views/livewire/project/application/domains.blade.php'));
+
+ expect($view)
+ ->toContain('<p class="text-sm text-neutral-500 dark:text-fg-dim">')
+ ->toContain('{{ $helperText }}');
+});
+
it('does not render a last checked column in the domains table', function () {
$view = file_get_contents(resource_path('views/livewire/project/application/domains.blade.php'));
$row = file_get_contents(resource_path('views/livewire/project/application/partials/domain-row.blade.php'));