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:
parent
0b3c6ccac9
commit
26ce2544f0
13 changed files with 98 additions and 90 deletions
|
|
@ -1242,7 +1242,6 @@ test('admin can create and edit company with persisted data', function () {
|
|||
|
||||
LivewireVolt::test('admin.companies.create')
|
||||
->set('portal', 'presseecho')
|
||||
->set('type', 'company')
|
||||
->set('company_name', 'Persist GmbH')
|
||||
->set('email', 'info@persist-gmbh.de')
|
||||
->set('phone', '04099999')
|
||||
|
|
@ -1264,7 +1263,6 @@ test('admin can create and edit company with persisted data', function () {
|
|||
LivewireVolt::test('admin.companies.edit', ['id' => $company->id])
|
||||
->set('company_name', 'Persist GmbH Updated')
|
||||
->set('portal', 'businessportal24')
|
||||
->set('type', 'agency')
|
||||
->set('email', 'office@persist-gmbh.de')
|
||||
->set('phone', '04077777')
|
||||
->set('website', 'https://updated-persist.de')
|
||||
|
|
@ -1279,7 +1277,8 @@ test('admin can create and edit company with persisted data', function () {
|
|||
$company->refresh();
|
||||
expect($company->name)->toBe('Persist GmbH Updated');
|
||||
expect($company->portal?->value)->toBe('businessportal24');
|
||||
expect($company->type?->value)->toBe('agency');
|
||||
// Kein Typ-Feld mehr: Firmen sind seit dem Attributions-Umbau immer Newsrooms.
|
||||
expect($company->type?->value)->toBe('company');
|
||||
expect($company->email)->toBe('office@persist-gmbh.de');
|
||||
expect($company->is_active)->toBeFalse();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue