liberu-genealogy / genealogy-laravel

Full genealogy application using Laravel 11, PHP 8.3, Filament 3.2 and Livewire 3.5
https://www.liberu.net
MIT License
114 stars 59 forks source link

Sweep: fix unable to find component app\Filament\Pages\Apitokens #684

Closed curtisdelicata closed 3 months ago

sweep-ai[bot] commented 3 months ago

🚀 Here's the PR! #686

💎 Sweep Pro: You have unlimited Sweep issues

Actions

Relevant files (click to expand). Mentioned files will always appear here. https://github.com/liberu-genealogy/genealogy-laravel/blob/9edcf15bed990ba43813bf2c8bfcc1e8a0b439f9/app/Providers/Filament/AdminPanelProvider.php#L1-L148 https://github.com/liberu-genealogy/genealogy-laravel/blob/9edcf15bed990ba43813bf2c8bfcc1e8a0b439f9/resources/views/filament/pages/api-tokens.blade.php#L1-L2 https://github.com/liberu-genealogy/genealogy-laravel/blob/9edcf15bed990ba43813bf2c8bfcc1e8a0b439f9/app/Filament/Pages/ApiTokensPage.php#L1-L49

Step 2: ⌨️ Coding

app/Providers/Filament/AdminPanelProvider.php

Remove the non-existent `ApiTokens` page from the `pages()` method.
--- 
+++ 
@@ -1,5 +1,4 @@
 ->pages([
     Pages\Dashboard::class,
     EditProfile::class,
-    ApiTokens::class,
 ])

resources/views/filament/pages/api-tokens.blade.php

Update the `api-tokens.blade.php` file to render the `ApiTokenManager` Livewire component provided by Laravel Jetstream.
--- 
+++ 
@@ -1,3 +1,5 @@
-<x-filament-panels::page>
-    @livewire(Laravel\Jetstream\Http\Livewire\ApiTokenManager::class)
-</x-filament-panels::page>
+<x-filament::page>
+    <x-filament::card>
+        @livewire(\Laravel\Jetstream\Http\Livewire\ApiTokenManager::class)
+    </x-filament::card>
+</x-filament::page>

Step 3: 🔄️ Validating

Your changes have been successfully made to the branch sweep/fix_unable_to_find_component_appfilament. I have validated these changes using a syntax checker and a linter.


[!TIP] To recreate the pull request, edit the issue title or description.

This is an automated message generated by Sweep AI.