From d0574f4d917f42a5464bebdc5e453ade16d43557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Fr=C3=B6hlich?= Date: Fri, 17 Oct 2025 09:20:35 +0200 Subject: [PATCH] Company Search added --- .cursor/mcp.json | 2 +- .cursor/rules/laravel-boost.mdc | 4 +-- .mcp.json | 2 +- AGENTS.md | 4 +-- boost.json | 5 ++-- package-lock.json | 2 +- resources/views/company-search.blade.php | 28 +++++++++++++++++++ .../components/layouts/app/sidebar.blade.php | 1 + routes/web.php | 4 +++ tests/Feature/CompanySearchTest.php | 17 +++++++++++ 10 files changed, 59 insertions(+), 10 deletions(-) create mode 100644 resources/views/company-search.blade.php create mode 100644 tests/Feature/CompanySearchTest.php diff --git a/.cursor/mcp.json b/.cursor/mcp.json index 01738d7..b1916bd 100644 --- a/.cursor/mcp.json +++ b/.cursor/mcp.json @@ -13,7 +13,7 @@ "/Applications/Herd.app/Contents/Resources/herd-mcp.phar" ], "env": { - "SITE_PATH": "/Users/bobmolitor/Herd/trusted_ai" + "SITE_PATH": "/Users/sebastianfrohlich/Herd/frontend" } } } diff --git a/.cursor/rules/laravel-boost.mdc b/.cursor/rules/laravel-boost.mdc index c201137..088ba02 100644 --- a/.cursor/rules/laravel-boost.mdc +++ b/.cursor/rules/laravel-boost.mdc @@ -11,7 +11,7 @@ The Laravel Boost guidelines are specifically curated by Laravel maintainers for ## Foundational Context This application is a Laravel application and its main Laravel ecosystems package & versions are below. You are an expert with them all. Ensure you abide by these specific packages & versions. -- php - 8.4.13 +- php - 8.4.1 - laravel/fortify (FORTIFY) - v1 - laravel/framework (LARAVEL) - v12 - laravel/prompts (PROMPTS) - v0 @@ -213,7 +213,7 @@ avatar, badge, brand, breadcrumbs, button, callout, checkbox, dropdown, field, h ## Livewire Core - Use the `search-docs` tool to find exact version specific documentation for how to write Livewire & Livewire tests. -- Use the `php artisan make:livewire [Posts\\CreatePost]` artisan command to create new components +- Use the `php artisan make:livewire [Posts\CreatePost]` artisan command to create new components - State should live on the server, with the UI reflecting it. - All Livewire requests hit the Laravel backend, they're like regular HTTP requests. Always validate form data, and run authorization checks in Livewire actions. diff --git a/.mcp.json b/.mcp.json index 01738d7..b1916bd 100644 --- a/.mcp.json +++ b/.mcp.json @@ -13,7 +13,7 @@ "/Applications/Herd.app/Contents/Resources/herd-mcp.phar" ], "env": { - "SITE_PATH": "/Users/bobmolitor/Herd/trusted_ai" + "SITE_PATH": "/Users/sebastianfrohlich/Herd/frontend" } } } diff --git a/AGENTS.md b/AGENTS.md index c933307..6311c9a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -8,7 +8,7 @@ The Laravel Boost guidelines are specifically curated by Laravel maintainers for ## Foundational Context This application is a Laravel application and its main Laravel ecosystems package & versions are below. You are an expert with them all. Ensure you abide by these specific packages & versions. -- php - 8.4.13 +- php - 8.4.1 - laravel/fortify (FORTIFY) - v1 - laravel/framework (LARAVEL) - v12 - laravel/prompts (PROMPTS) - v0 @@ -210,7 +210,7 @@ avatar, badge, brand, breadcrumbs, button, callout, checkbox, dropdown, field, h ## Livewire Core - Use the `search-docs` tool to find exact version specific documentation for how to write Livewire & Livewire tests. -- Use the `php artisan make:livewire [Posts\\CreatePost]` artisan command to create new components +- Use the `php artisan make:livewire [Posts\CreatePost]` artisan command to create new components - State should live on the server, with the UI reflecting it. - All Livewire requests hit the Laravel backend, they're like regular HTTP requests. Always validate form data, and run authorization checks in Livewire actions. diff --git a/boost.json b/boost.json index 7386aa5..ab2a345 100644 --- a/boost.json +++ b/boost.json @@ -1,13 +1,12 @@ { "agents": [ + "claude_code", "codex", - "cursor", - "phpstorm" + "cursor" ], "editors": [ "claude_code", "cursor", - "phpstorm", "vscode" ], "guidelines": [], diff --git a/package-lock.json b/package-lock.json index 4fa0707..287b2d8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "trusted_ai", + "name": "frontend", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/resources/views/company-search.blade.php b/resources/views/company-search.blade.php new file mode 100644 index 0000000..6e3da99 --- /dev/null +++ b/resources/views/company-search.blade.php @@ -0,0 +1,28 @@ + +
+
+ {{ __('Unternehmensauskunft') }} + {{ __('Suchen Sie nach Unternehmensinformationen') }} +
+ +
+ +
+ +
+
+ +
+
+ +
+
+
+ +
+
+
diff --git a/resources/views/components/layouts/app/sidebar.blade.php b/resources/views/components/layouts/app/sidebar.blade.php index fde9943..f490313 100644 --- a/resources/views/components/layouts/app/sidebar.blade.php +++ b/resources/views/components/layouts/app/sidebar.blade.php @@ -14,6 +14,7 @@ {{ __('Dashboard') }} + {{ __('Unternehmensauskunft') }} diff --git a/routes/web.php b/routes/web.php index 1fec66d..a9fb23a 100644 --- a/routes/web.php +++ b/routes/web.php @@ -12,6 +12,10 @@ Route::view('dashboard', 'dashboard') ->middleware(['auth', 'verified']) ->name('dashboard'); +Route::view('company-search', 'company-search') + ->middleware(['auth', 'verified']) + ->name('company-search'); + Route::middleware(['auth'])->group(function () { Route::redirect('settings', 'settings/profile'); diff --git a/tests/Feature/CompanySearchTest.php b/tests/Feature/CompanySearchTest.php new file mode 100644 index 0000000..979c6f7 --- /dev/null +++ b/tests/Feature/CompanySearchTest.php @@ -0,0 +1,17 @@ +get(route('company-search')); + $response->assertRedirect(route('login')); +}); + +test('authenticated users can visit the company search page', function () { + $user = User::factory()->create(); + $this->actingAs($user); + + $response = $this->get(route('company-search')); + $response->assertSuccessful(); + $response->assertSee('Unternehmensauskunft'); +});