livewire: Volt entfernt — Komponenten als Livewire-4-Single-File-Components, Route::livewire(), Livewire::test(); livewire/volt deinstalliert

- 83 Komponenten: Livewire\Volt\Component → Livewire\Component
- 73 Routen (admin, auth, customer): Volt::route() → Route::livewire()
- 88 Testdateien: Volt::test/actingAs → Livewire::test/actingAs
- VoltServiceProvider gelöscht; composer remove livewire/volt
- config/livewire.php auf v4-Schlüssel (component_layout, component_placeholder,
  component_locations, make_command: SFC ohne ⚡). Der alte Schlüssel layout war
  wirkungslos; alle gerouteten Komponenten setzen ihr Layout selbst.
- CLAUDE.md, AGENTS.md, boost.json, .cursorrules, Skill volt-development
- Roadmap: erledigt; Larastan erfasst SFCs weiterhin nicht (Blade-Dateien)

Suite 2.325 grün, einer übersprungen; Larastan und Pint ohne Meldung;
route:cache und view:cache laufen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kevin Adametz 2026-10-06 13:59:36 +00:00
parent 5782297dca
commit 2cde7284a1
186 changed files with 889 additions and 1075 deletions

View file

@ -9,7 +9,7 @@ use App\Services\Company\CompanyRemovalService;
use App\Services\PressRelease\PressReleaseService;
use App\Support\WebPageCache;
use Database\Seeders\RolesAndPermissionsSeeder;
use Livewire\Volt\Volt as LivewireVolt;
use Livewire\Livewire;
use Tests\TestCase;
/**
@ -309,7 +309,7 @@ test('admin can remove a press release with 410 from the edit page', function ()
$release = goneTestRelease();
$this->actingAs(goneTestAdmin());
LivewireVolt::test('admin.press-releases.edit', ['id' => $release->id])
Livewire::test('admin.press-releases.edit', ['id' => $release->id])
->call('markGone')
->assertRedirect(route('admin.press-releases.index'));
@ -322,7 +322,7 @@ test('admin can remove a newsroom with 410 from the edit page', function () {
$release = goneTestRelease($company);
$this->actingAs(goneTestAdmin());
LivewireVolt::test('admin.companies.edit', ['id' => $company->id])
Livewire::test('admin.companies.edit', ['id' => $company->id])
->set('goneIncludesPressReleases', true)
->call('markGone')
->assertRedirect(route('admin.companies.index'));
@ -340,7 +340,7 @@ test('admin can lift a press release removal from the edit page', function () {
app(PressReleaseService::class)->markGone($release);
$this->actingAs(goneTestAdmin());
LivewireVolt::test('admin.press-releases.edit', ['id' => $release->id])
Livewire::test('admin.press-releases.edit', ['id' => $release->id])
->assertSee('410-Entfernung aufheben')
->call('restoreGone')
->assertRedirect(route('admin.press-releases.edit', $release->id));
@ -354,7 +354,7 @@ test('admin can lift a newsroom removal from the edit page', function () {
app(CompanyRemovalService::class)->markGone($company);
$this->actingAs(goneTestAdmin());
LivewireVolt::test('admin.companies.edit', ['id' => $company->id])
Livewire::test('admin.companies.edit', ['id' => $company->id])
->assertSee('410-Entfernung aufheben')
->call('restoreGone')
->assertRedirect(route('admin.companies.edit', $company->id));

View file

@ -6,7 +6,7 @@ use App\Models\Company;
use App\Models\PressRelease;
use App\Support\WebPageCache;
use Illuminate\Support\Facades\Cache;
use Livewire\Volt\Volt as LivewireVolt;
use Livewire\Livewire;
use Tests\TestCase;
function makeCategoryWithSlug(Portal $portal, string $name, string $slug, ?int $parentId = null): Category
@ -333,7 +333,7 @@ test('the press release feed today filter matches the reference day via range co
'published_at' => now()->subDays(11)->setTime(9, 0),
]);
LivewireVolt::test('web.press-release-feed', ['portal' => Portal::Presseecho->value, 'language' => 'de'])
Livewire::test('web.press-release-feed', ['portal' => Portal::Presseecho->value, 'language' => 'de'])
->call('setTimeframe', 'today')
->assertSee('Meldung am Stichtag')
->assertDontSee('Meldung vom Vortag');

View file

@ -14,7 +14,7 @@ use App\Models\User;
use Database\Seeders\RolesAndPermissionsSeeder;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\DB;
use Livewire\Volt\Volt as LivewireVolt;
use Livewire\Livewire;
use Tests\TestCase;
/**
@ -229,7 +229,7 @@ test('customer panel shows view and share stats for the owner', function () {
$this->actingAs($customer);
LivewireVolt::test('customer.press-releases.show', ['id' => $release->id])
Livewire::test('customer.press-releases.show', ['id' => $release->id])
->assertSee('Aufrufe')
->assertSee('42')
->assertSee('Geteilt')

View file

@ -5,7 +5,7 @@ use App\Models\Category;
use App\Models\Company;
use App\Models\PressRelease;
use Illuminate\Support\Str;
use Livewire\Volt\Volt;
use Livewire\Livewire;
use Tests\TestCase;
function createSearchableRelease(string $title, array $attributes = [], ?Category $category = null, ?Company $company = null): PressRelease
@ -50,7 +50,7 @@ test('the search component filters by query and resets', function () {
createSearchableRelease('Solarpark geht ans Netz');
createSearchableRelease('Neue Geschäftsführung berufen');
Volt::test('web.search', ['portal' => Portal::Businessportal24->value, 'language' => 'de'])
Livewire::test('web.search', ['portal' => Portal::Businessportal24->value, 'language' => 'de'])
->set('q', 'Solarpark')
->assertSee('Solarpark geht ans Netz')
->assertDontSee('Neue Geschäftsführung berufen')
@ -64,7 +64,7 @@ test('multi-word queries match releases containing all words in any order', func
createSearchableRelease('Solarpark geht ans Netz');
createSearchableRelease('Solarpark-Projekt angekündigt');
Volt::test('web.search', ['portal' => Portal::Businessportal24->value, 'language' => 'de'])
Livewire::test('web.search', ['portal' => Portal::Businessportal24->value, 'language' => 'de'])
->set('q', 'Netz Solarpark')
->assertSee('Solarpark geht ans Netz')
->assertDontSee('Solarpark-Projekt angekündigt');
@ -76,7 +76,7 @@ test('the search matches company names and keywords', function () {
createSearchableRelease('Quartalszahlen veröffentlicht', company: $company);
createSearchableRelease('Neue Geschäftsführung berufen', ['keywords' => 'Logistik, Automatisierung']);
Volt::test('web.search', ['portal' => Portal::Businessportal24->value, 'language' => 'de'])
Livewire::test('web.search', ['portal' => Portal::Businessportal24->value, 'language' => 'de'])
->set('q', 'Windkraft Nord')
->assertSee('Quartalszahlen veröffentlicht')
->assertDontSee('Neue Geschäftsführung berufen')
@ -96,7 +96,7 @@ test('the search component filters by category', function () {
createSearchableRelease('Windkraft-Ausbau beschleunigt', category: $energie);
createSearchableRelease('Quartalszahlen veröffentlicht', category: $finanzen);
Volt::test('web.search', ['portal' => Portal::Businessportal24->value, 'language' => 'de'])
Livewire::test('web.search', ['portal' => Portal::Businessportal24->value, 'language' => 'de'])
->call('selectCategory', 'energie')
->assertSee('Windkraft-Ausbau beschleunigt')
->assertDontSee('Quartalszahlen veröffentlicht');