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
123 stars 55 forks source link

Sweep: add missing livewire components to app/Http/Livewire for laravel jetstream implementation inside of filament 3. Mainly apitokens, CreateTeam.php, EditProfile.php, #674

Closed curtisdelicata closed 6 months ago

sweep-ai[bot] commented 6 months ago

🚀 Here's the PR! #676

💎 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/52416054bee93790d7d65a6edebfd4c07700275a/app/Providers/AppServiceProvider.php#L1-L38 https://github.com/liberu-genealogy/genealogy-laravel/blob/52416054bee93790d7d65a6edebfd4c07700275a/app/Providers/FilamentServiceProvider.php#L1-L28 https://github.com/liberu-genealogy/genealogy-laravel/blob/52416054bee93790d7d65a6edebfd4c07700275a/resources/views/filament/pages/api-tokens.blade.php#L1-L2 https://github.com/liberu-genealogy/genealogy-laravel/blob/52416054bee93790d7d65a6edebfd4c07700275a/resources/views/filament/pages/edit-profile.blade.php#L1-L34 https://github.com/liberu-genealogy/genealogy-laravel/blob/52416054bee93790d7d65a6edebfd4c07700275a/resources/views/filament/pages/edit-team.blade.php#L1-L10 https://github.com/liberu-genealogy/genealogy-laravel/blob/52416054bee93790d7d65a6edebfd4c07700275a/app/Http/Livewire/CreateTeam.php#L1-L26

Step 2: ⌨️ Coding

app/Http/Livewire/ApiTokens.php

Create the `ApiTokens` Livewire component file.
<?php

namespace App\Http\Livewire;

use Livewire\Component;

class ApiTokens extends Component
{
    public function render()
    {
        return view('livewire.api-tokens');
    }
}

app/Http/Livewire/EditProfile.php

Create the `EditProfile` Livewire component file.
<?php

namespace App\Http\Livewire;

use Livewire\Component;

class EditProfile extends Component
{
    public function render()
    {
        return view('livewire.edit-profile');
    }
}

app/Http/Livewire/EditProfile.php

Create the `EditProfile` Livewire component file.
<?php

namespace App\Http\Livewire;

use Livewire\Component;

class EditProfile extends Component
{
    public function render()
    {
        return view('livewire.edit-profile');
    }
}

app/Providers/AppServiceProvider.php

Add imports for the new Livewire components.
--- 
+++ 
@@ -8,5 +8,8 @@
 use \App\Http\Livewire\DescendantChartComponent;
 use App\Http\Livewire\PedigreeChart;
 use App\Http\Livewire\PeopleSearch;
+use App\Http\Livewire\ApiTokens;
+use App\Http\Livewire\CreateTeam;
+use App\Http\Livewire\EditProfile;
 use Filament\Facades\Filament;
 use Illuminate\Database\Eloquent\Builder;

app/Providers/AppServiceProvider.php

Register the new Livewire components.
--- 
+++ 
@@ -3,8 +3,9 @@
         // Register Livewire components here
         Livewire::component('devilliers-report', DevilliersReport::class);
         Livewire::component('descendant-chart-component', DescendantChartComponent::class);
-        Livewire::component('people-search', PeopleSearch::class) ; // Register the new Livewire component
-        Livewire::component('pedigree-chart', PedigreeChart::class) ;
-
-        
+        Livewire::component('people-search', PeopleSearch::class);
+        Livewire::component('pedigree-chart', PedigreeChart::class);
+        Livewire::component('api-tokens', ApiTokens::class);
+        Livewire::component('create-team', CreateTeam::class);
+        Livewire::component('edit-profile', EditProfile::class);
     }

Step 3: 🔄️ Validating

Your changes have been successfully made to the branch sweep/add_missing_livewire_components_to_appht. 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.