Ordne Paket, Rechteprofil, Säulen, Kombinationen und Benutzer in die gemeinsamen Muster ein.
CI Feature / test (push) Successful in 1m0s
Deploy Test / test (push) Successful in 55s
Deploy Test / deploy (push) Successful in 23s

- Gemeinsame Katalog-Objektseite (catalog/objekt): Kopf, Hauptabschnitte,
  Begleitinformation. Angebot, Paket und Rechteprofil nutzen sie; lesbare
  Bezeichnungen zentral in CatalogLabels.
- Paket: eine Maske für erste und geänderte Fassung, bei einer Änderung mit der
  neuesten veröffentlichten Fassung vorbelegt; Wirkung unverändert
  BundleService::publish (frühere Fassungen bleiben veröffentlicht).
- Rechteprofil: erlaubte Handlungen lesbar, Verwendung in Angeboten,
  Fassungen; der doppelte Titel „… ansehen ansehen“ entfällt.
- Fachliche Säulen, Fachliche Kombinationen und Benutzer in der gemeinsamen
  Bestandsliste; Säulen mit Website-Zustand und Medienzahl, Konten mit Status
  und Rollen.
- Gefüllte Filament-Hauptknöpfe überall im Verwaltungsgrün (auch Formularfuß,
  etwa „Speichern“ der Säule).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 5.5 committed 2026-11-20 08:53:25 +01:00
1 parent 3aa1bad859
commit 51d58ac55c
14 files changed
+675 -198

No files matched your search

@@ -5,9 +5,9 @@
use App\Domain\Catalog\Offer;
use App\Domain\Catalog\OfferService;
use App\Domain\Catalog\OfferStatus;
use App\Domain\Catalog\OfferVersion;
use App\Domain\Catalog\StatusValue;
use App\Filament\Resources\Offers\OfferResource;
use App\Filament\Support\CatalogLabels;
use App\Filament\Support\ListsCatalog;
use App\Filament\Support\ReportsDomainRules;
use Filament\Actions\Action;
@@ -63,7 +63,7 @@ protected function catalogRows(): array
if ($active !== null) {
$chips[] = ['label' => 'Fassung '.$active->number.' aktiv', 'ton' => 'gut'];
$chips[] = ['label' => $this->vergabe($active), 'ton' => 'neutral'];
$chips[] = ['label' => CatalogLabels::vergabe($active), 'ton' => 'neutral'];
$zustand[] = 'aktiv';
$text = $active->lines->map(fn ($line): string => ($line->article !== null
? 'Lizenzartikel '.$line->article->code
@@ -94,18 +94,6 @@ protected function catalogRows(): array
return $rows;
}
private function vergabe(OfferVersion $version): string
{
$kind = match ($version->grant_kind) {
'kauf' => 'Kauf',
'auf_abruf' => 'Auf Abruf',
'bei_registrierung' => 'Bei Registrierung',
default => (string) $version->grant_kind,
};
return $version->price_cents === null ? $kind : $kind.' · '.number_format($version->price_cents / 100, 2, ',', '.').' €';
}
protected function zustandOptionen(): array
{
return ['alle' => 'Jeder Zustand', 'aktiv' => 'Mit aktiver Fassung', 'ohne' => 'Ohne aktive Fassung'];