54 lines
2.2 KiB
Markdown
54 lines
2.2 KiB
Markdown
# Phase 6 — Auth-Cleanup
|
|
|
|
> Ungenutzte Starter-Kit-Layouts und Debug-Views entfernen,
|
|
> die seit der Hub-Auth-Umstellung (Phase 0) keine Verwendung
|
|
> mehr haben.
|
|
|
|
**Status**: ✅ abgeschlossen · **Aufwand**: ~30 min · **Risiko**: niedrig
|
|
|
|
---
|
|
|
|
## Inventur
|
|
|
|
### Aktiv genutzt (BEHALTEN)
|
|
|
|
| Datei | Genutzt von |
|
|
|---|---|
|
|
| `components/layouts/app.blade.php` | Wrapper → `app.sidebar` |
|
|
| `components/layouts/app/sidebar.blade.php` | primäres Portal-Layout (alle Volt-Pages) |
|
|
| `components/layouts/auth/pressekonto.blade.php` | login, register, forgot-password, verify-email, confirm-password, reset-password |
|
|
|
|
### Ungenutzt (ENTFERNT)
|
|
|
|
| Datei | Grund |
|
|
|---|---|
|
|
| `components/layouts/auth.blade.php` | dünner Wrapper auf `auth.simple` — nirgends als Layout referenziert (außer `login-simple` + `test-simple` Debug, die ebenfalls weg sind) |
|
|
| `components/layouts/auth/simple.blade.php` | Starter-Kit-Rest, hardcoded `class="dark"` |
|
|
| `components/layouts/auth/split.blade.php` | Starter-Kit-Rest, hardcoded `class="dark"` |
|
|
| `components/layouts/auth/card.blade.php` | Starter-Kit-Rest, hardcoded `class="dark"` |
|
|
| `components/layouts/app/header.blade.php` | alternatives App-Layout (Top-Bar statt Sidebar), wird vom Wrapper nie aufgerufen, hardcoded `class="dark"` |
|
|
| `livewire/auth/login-simple.blade.php` | Debug-Volt-Login („Log in to your account"-Englisch) ohne Route, nutzte `<x-layouts.auth>` |
|
|
| `test-simple.blade.php` | Debug-Page „Diese Seite funktioniert ohne Volt/Livewire" ohne Route |
|
|
|
|
### Aktualisiert
|
|
|
|
- `_docs/FORTIFY-SANCTUM-SETUP.md`: Code-Beispiel von
|
|
`components.layouts.auth` auf `components.layouts.auth.pressekonto`
|
|
umgestellt (alter Wert verwies auf die soeben gelöschte
|
|
Wrapper-Datei).
|
|
|
|
## Verifikation
|
|
|
|
- `rg "auth\.(simple|split|card)"` und
|
|
`rg "app\.header"` → 0 Treffer in `resources/` und `routes/`
|
|
- Build, Pint, alle relevanten Tests grün
|
|
|
|
## Lessons Learned
|
|
|
|
- Mit der Anti-Flash-Bridge aus Phase 5 wären die hardcoded
|
|
`class="dark"`-Layouts sowieso zur Stolperfalle für
|
|
Light-Mode-User geworden, falls sie je reaktiviert werden.
|
|
Lösung: weg damit.
|
|
- Hub-Auth-Pages laufen seit Phase 0 ausschließlich über
|
|
`auth/pressekonto.blade.php`. Die Starter-Kit-Layouts waren
|
|
schon damals tote Last.
|