fix(application): defer Docker Compose loading and preserve domains

Load the compose file only after the user confirms its location, initialize the default compose path when switching build packs, and retain existing application domains.
This commit is contained in:
Andras Bacsai
2026-08-31 21:12:28 +02:00
parent c97649bda2
commit ff8b019296
4 changed files with 47 additions and 21 deletions
@@ -13,6 +13,14 @@ test('compose actions are grouped with the application details header', function
->toContain('Reload compose');
});
test('compose file loading waits for the user to confirm the file location', function () {
$view = file_get_contents(resource_path('views/livewire/project/application/general.blade.php'));
expect($view)
->toContain('x-on:click="$wire.dispatch(\'loadCompose\', false)"')
->not->toContain('x-init="$wire.dispatch(\'loadCompose\', true)"');
});
test('docker compose heading separates its title and action', function () {
$view = file_get_contents(resource_path('views/livewire/project/application/general.blade.php'));