UI: Agentur-Angaben im Profil, Firmen-Typ-Auswahl entfernt

A5 des Umbaus Agentur-Attribution → User-Profil: Kunden-Profil erhält
den Abschnitt „Agentur-Angaben" (Feld Agentur-/Verteilername, öffentlich
als Übermittler sichtbar). Firma-Anlegen (Kunde + Admin) und
Admin-Firma-Bearbeiten kommen ohne Typ-Feld aus — Neuanlagen sind immer
type=company. Firmen-Übersicht zeigt kein Typ-Label mehr. Admin-User-
Formulare pflegen agency_name; die Detailseite zeigt den Übermittler
als Badge. CompanyFactory erzeugt keine zufälligen Agentur-Typen mehr.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Kevin Adametz 2026-07-08 09:44:17 +00:00
parent 0b3c6ccac9
commit 26ce2544f0
13 changed files with 98 additions and 90 deletions

View file

@ -45,7 +45,6 @@ test('save erstellt eine Firma und ordnet sie dem User als Owner zu', function (
->test('customer.press-kits.create')
->set('name', 'Neue Brauerei AG')
->set('portal', 'presseecho')
->set('type', 'company')
->set('email', 'kontakt@brauerei.de')
->call('save')
->assertHasNoErrors()
@ -57,6 +56,9 @@ test('save erstellt eine Firma und ordnet sie dem User als Owner zu', function (
expect($company)->not->toBeNull()
->and($company->owner_user_id)->toBe($customer->id)
->and($company->portal->value)->toBe('presseecho')
// Ohne Typ-Feld immer Newsroom: der Übermittler („Agentur") lebt
// seit dem Attributions-Umbau im Profilfeld users.agency_name.
->and($company->type?->value)->toBe('company')
->and($company->email)->toBe('kontakt@brauerei.de')
->and($company->is_active)->toBeTrue();
@ -96,7 +98,6 @@ test('save akzeptiert Portal Both', function () {
->test('customer.press-kits.create')
->set('name', 'Beide Portale GmbH')
->set('portal', 'both')
->set('type', 'company')
->call('save')
->assertHasNoErrors();