chore: major project cleanup and restructuring

## Dokumentation
- Entfernt AGENTS.md (redundant zu CLAUDE.md)
- Verschoben: 3 Dokumentationen von root → docs/
- Gelöscht: 8 historische Migrations-Pläne aus docs/archive/
- Entfernt: misc/ Ordner komplett (43 Dateien)

## Struktur
- Erstellt: database/queries/ für SQL Test-Queries (4 Dateien)
- Erstellt: database/schemas/ für Schema-Dokumentation (17 Dateien)
  - output_keys_mapping/ (8 CSV-Mappings)
  - migration-diagrams/ (4 Diagramme)

## Code-Qualität
- Formatiert: 7 Style-Issues in 74 Dateien mit Laravel Pint
- Gefixed: Migration für PostgreSQL/SQLite Kompatibilität
- Gefixed: 2 fehlgeschlagene Tests (CSRF + Text-Assertion)

## Tests
- Alle 73 Tests bestehen jetzt (100% Success Rate)
- AuthenticationTest: CSRF-Token Fix für Logout-Test
- CompanySearchTest: Text-Assertion aktualisiert

## Ergebnis
- Root ist sauber (nur CLAUDE.md)
- Dokumentation strukturiert in docs/
- Database-Dateien organisiert in database/
- Code entspricht Style-Guide
- Alle Tests bestehen
This commit is contained in:
2025-11-21 10:00:32 +01:00
parent 3a54f6cba3
commit 1cb38d7080
46 changed files with 112 additions and 5367 deletions
+3 -1
View File
@@ -69,7 +69,9 @@ test('users with two factor enabled are redirected to two factor challenge', fun
test('users can logout', function () {
$user = User::factory()->create();
$response = $this->actingAs($user)->post(route('logout'));
$response = $this->actingAs($user)
->withSession(['_token' => 'test-token'])
->post(route('logout'), ['_token' => 'test-token']);
$response->assertRedirect(route('home'));
+1 -1
View File
@@ -23,7 +23,7 @@ test('company search page displays correctly', function () {
$response = $this->get(route('company-search'));
$response->assertSee('Unternehmensauskunft');
$response->assertSee('Suchen Sie nach Unternehmensinformationen');
$response->assertSee('Einfache Suche für Unternehmensdaten und historische Cases');
});
test('search input is wired to component', function () {
@@ -1,7 +1,6 @@
<?php
use App\Models\User;
use Livewire\Volt\Volt;
it('requires authentication to access upload page', function () {
$response = $this->get('/upload');