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): hide application domains on compose resource cards

Andras Bacsai7d5c9fdbe136
diff --git a/resources/views/livewire/project/service/resource-card.blade.php b/resources/views/livewire/project/service/resource-card.blade.php
index be026313a2..fe976180da 100644
--- a/resources/views/livewire/project/service/resource-card.blade.php
+++ b/resources/views/livewire/project/service/resource-card.blade.php
@@ -38,13 +38,6 @@
</p>
@endif
- @if ($isApplication && $resource->fqdn)
- <div class="mt-2 min-w-0">
- <span class="min-w-0 truncate text-xs text-neutral-500 dark:text-fg-dim">
- {{ $resource->fqdn }}
- </span>
- </div>
- @endif
</div>
</div>
@@ -91,9 +84,6 @@
</div>
<div class="min-w-0">
<div class="truncate text-[13px] font-semibold text-black dark:text-fg">{{ $resourceName }}</div>
- @if ($isApplication && $resource->fqdn)
- <div class="truncate text-[11px] text-neutral-500 sm:hidden dark:text-fg-faint">{{ $resource->fqdn }}</div>
- @endif
</div>
</div>
<div class="hidden truncate font-mono text-xs text-neutral-500 sm:block dark:text-fg-faint">
diff --git a/tests/Feature/ServiceComposeResourcesViewSwitcherTest.php b/tests/Feature/ServiceComposeResourcesViewSwitcherTest.php
index c859edc378..6bcf25af16 100644
--- a/tests/Feature/ServiceComposeResourcesViewSwitcherTest.php
+++ b/tests/Feature/ServiceComposeResourcesViewSwitcherTest.php
@@ -54,3 +54,10 @@ it('distinguishes domain management from resource settings', function () {
->toContain('title="Resource settings" aria-label="Resource settings"')
->not->toContain('title="Edit domains" aria-label="Edit domains"');
});
+
+it('does not display application domains on compose resource cards', function () {
+ $resourceCard = file_get_contents(resource_path('views/livewire/project/service/resource-card.blade.php'));
+
+ expect($resourceCard)
+ ->not->toContain('{{ $resource->fqdn }}');
+});