fix(storage): split S3 endpoint input and persist stopped status

Persist exited status across application, database, service, and preview stop paths, and reuse the split host/port/path input for S3 endpoints with linked validation feedback.
This commit is contained in:
Andras Bacsai
2026-08-15 11:46:49 +02:00
parent ec8a24d178
commit 2677e47138
12 changed files with 132 additions and 30 deletions
@@ -5,14 +5,18 @@ use Tests\TestCase;
uses(TestCase::class);
it('normalizes S3 endpoints without a Livewire blur request', function () {
$view = file_get_contents(resource_path('views/livewire/storage/create.blade.php'));
it('uses the shared split URL input without a Livewire blur request', function () {
$createView = file_get_contents(resource_path('views/livewire/storage/create.blade.php'));
$editView = file_get_contents(resource_path('views/livewire/storage/form.blade.php'));
expect($view)
expect($createView)
->not->toContain('wire:model.blur="endpoint"')
->toContain('x-on:blur')
->toContain('const hasScheme')
->toContain('dispatchEvent');
->toContain('<x-forms.domain-input id="endpoint"')
->toContain('host-label="Host"')
->toContain('host-placeholder="minio.internal or 192.168.1.50"')
->and($editView)
->toContain('<x-forms.domain-input id="endpoint"')
->toContain('@can(\'update\', $storage)');
});
it('normalizes endpoints again on the backend', function (string $endpoint, string $expected) {