Optimierung Phase 1: Aufraeumen / toter Code

1.1 Prototyp admin/users/table entfernt: Route (war durch admin/users/{id}
    ohnehin unerreichbar) + Volt-Komponente table.blade.php geloescht,
    ADMIN_ROUTES.md aktualisiert; Regressions-Test in PanelConsolidationTest.
1.2 16 tote Legacy-Wrapper-Views unter resources/views/admin/* geloescht
    (nutzten alte Route-Parameter, nirgends via view/@include/@livewire
    gerendert); admin.dashboard + .md-Doku behalten.
1.3 Tote Helfer entfernt: EnsureUserIsAdmin redundantes loadMissing('roles'),
    ungenutzter statusColor-Key aus with() in admin PR edit/show,
    LegacyInvoicePdfController Laufzeit-Schema::hasColumn (Spalte existiert
    seit Migration) inkl. Schema-Import.

Volle Suite gruen (794 passed, 1 skipped).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Kevin Adametz 2026-06-19 08:27:12 +00:00
parent c7bd940f28
commit 554a731a24
25 changed files with 9 additions and 329 deletions

View file

@ -3,6 +3,7 @@
use App\Models\Plan;
use App\Models\User;
use Database\Seeders\RolesAndPermissionsSeeder;
use Illuminate\Support\Facades\Route;
use Tests\TestCase;
beforeEach(function (): void {
@ -10,6 +11,10 @@ beforeEach(function (): void {
$this->seed(RolesAndPermissionsSeeder::class);
});
test('the removed admin users table prototype route no longer exists', function () {
expect(Route::has('admin.users.table'))->toBeFalse();
});
test('legacy customer dashboard URL redirects to me dashboard', function () {
/** @var TestCase $this */
$this->get('/customer')