fix(ui): normalize S3 endpoints and remove duplicate config warnings

Normalize endpoints on blur and submit, link internal-target errors to settings, and target the S3 submit loading state.
This commit is contained in:
Andras Bacsai
2026-08-14 18:48:34 +02:00
parent a257224bb7
commit b3789d4a36
9 changed files with 127 additions and 31 deletions
@@ -0,0 +1,16 @@
<?php
use App\Livewire\Storage\Create;
it('formats the internal target settings route as a clickable link', function () {
$settingsUrl = route('settings.advanced').'#endpoint-section';
$exception = new RuntimeException("Private target. Configure allowed internal targets: {$settingsUrl}");
$method = new ReflectionMethod(Create::class, 'connectionErrorDescription');
$description = $method->invoke(new Create, $exception);
expect($description)
->toContain('href="'.$settingsUrl.'"')
->toContain('Set them here.')
->not->toContain('targets: '.$settingsUrl);
});