From 680a7e892d16eb901bf4e27d42aec0b07efbd890 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Tue, 18 Aug 2026 20:05:09 +0200 Subject: [PATCH] fix(storage): clarify source path removal impact --- .../views/livewire/project/shared/storages/all.blade.php | 2 ++ tests/Feature/PersistentStorageVolumesLayoutTest.php | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/views/livewire/project/shared/storages/all.blade.php b/resources/views/livewire/project/shared/storages/all.blade.php index e78cb7072..09377dac9 100644 --- a/resources/views/livewire/project/shared/storages/all.blade.php +++ b/resources/views/livewire/project/shared/storages/all.blade.php @@ -163,6 +163,8 @@ class="volumes-col-actions volumes-cell-actions flex flex-wrap items-center just buttonTitle="Remove" submitAction="clearHostPath({{ $id }})" :actions="[ 'Are you sure you want to remove the source path?', + 'The next deployment will use a named Docker volume instead.', + 'Data from the existing host directory will not be copied to the named volume.', 'Use a Directory Mount when you need to mount a host directory.', ]" /> diff --git a/tests/Feature/PersistentStorageVolumesLayoutTest.php b/tests/Feature/PersistentStorageVolumesLayoutTest.php index b6fd9dd74..1a94eda2e 100644 --- a/tests/Feature/PersistentStorageVolumesLayoutTest.php +++ b/tests/Feature/PersistentStorageVolumesLayoutTest.php @@ -209,10 +209,14 @@ function createApplicationWithVolume(array $applicationAttributes = [], array $v it('keeps bind mount source paths out of the add volume form', function () { $storageView = file_get_contents(resource_path('views/livewire/project/service/storage.blade.php')); + $volumesView = file_get_contents(resource_path('views/livewire/project/shared/storages/all.blade.php')); expect($storageView) ->not->toContain('id="host_path"') - ->not->toContain('Swarm Mode detected'); + ->not->toContain('Swarm Mode detected') + ->and($volumesView) + ->toContain('The next deployment will use a named Docker volume instead.') + ->toContain('Data from the existing host directory will not be copied to the named volume.'); }); it('creates named volumes without a host path in swarm mode', function () {