Lege Bildfassungen an und liefere sie zwischengespeichert aus (ADR-63)
CI Feature / test (push) Successful in 6m26s
Deploy Test / test (push) Successful in 5m14s
Deploy Test / deploy (push) Successful in 31s

Vorschaubilder entstehen zusätzlich als klein (360 px) und mittel (960 px),
Website-Bilder in den Breiten 640, 1280 und 1920. Auswahl, Listen und Karten
laden die kleinen Fassungen; die Website nutzt srcset. Adressen tragen Größe und
Version und werden dauerhaft zwischengespeichert (ETag, 304). Die Website-Route
läuft ohne Sitzung und Cookies. Bestand füllt sich über die Warteschlange oder
mit media:varianten. Die Optionsliste des CMS fragt nicht mehr je Eintrag ab.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-11-28 09:37:00 +01:00
1 parent 0492133201
commit 63b42b366c
54 files changed
+1033 -82

No files matched your search

+5 -4
View File
@@ -14,6 +14,7 @@
use App\Domain\Catalog\PresentationRole;
use App\Domain\Commerce\ShopCatalog;
use App\Domain\Commerce\ShopMarkers;
use App\Domain\Media\WebsiteMedia;
use App\Filament\Pages\RedaktionelleStammdaten;
use App\Filament\Resources\LicenseArticles\Pages\ViewLicenseArticle;
use App\Models\User;
@@ -135,10 +136,10 @@ public function test_a_released_cover_appears_on_the_tile_as_a_decorative_lazy_i
$released = $this->image('Freigegebenes Titelbild', released: true);
$this->cover($this->konflikte(), $released);
$this->assertSame(route('website.media', $released), $this->card()['image']['url']);
$this->assertSame(app(WebsiteMedia::class)->present($released)->url, $this->card()['image']['url']);
$html = $this->get(route('shop'))->assertOk()->getContent();
$this->assertStringContainsString('src="'.route('website.media', $released).'"', $html);
$this->assertMatchesRegularExpression('#<img src="[^"]+website-medien/'.$released->id.'" alt="" loading="lazy"#', $html, 'Das Bild ist schmückend, der Titel ist der Link.');
$this->assertStringContainsString('src="'.app(WebsiteMedia::class)->present($released)->url.'"', $html);
$this->assertMatchesRegularExpression('#<img src="[^"]+website-medien/'.$released->id.'(\?v=\d+)?" alt="" loading="lazy"#', $html, 'Das Bild ist schmückend, der Titel ist der Link.');
}
public function test_an_unreleased_first_cover_is_skipped_for_the_next_released_one(): void
@@ -147,7 +148,7 @@ public function test_an_unreleased_first_cover_is_skipped_for_the_next_released_
$gallery = $this->image('Galeriebild freigegeben', released: true);
$this->cover($this->konflikte(), $gallery, 'galerie', 2);
$this->assertSame(route('website.media', $gallery), $this->card()['image']['url']);
$this->assertSame(app(WebsiteMedia::class)->present($gallery)->url, $this->card()['image']['url']);
}
public function test_a_film_is_not_used_as_a_cover(): void