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
113 stars 59 forks source link

Sweep: use imports #137

Closed curtisdelicata closed 5 months ago

curtisdelicata commented 5 months ago

Details

Bug: Bug. Correctly place use imports after the namespace declaration and before the class is defined bug in most files edited by sweep previously.

Checklist - [X] Modify `app/Filament/Resources/GedcomResource.php` ✓ https://github.com/liberu-genealogy/genealogy-laravel/commit/4a8f0648d07b8cd83a6df77158fc4403ad10a1d9 [Edit](https://github.com/liberu-genealogy/genealogy-laravel/edit/sweep/use_imports/app/Filament/Resources/GedcomResource.php#L3-L13) - [X] Running GitHub Actions for `app/Filament/Resources/GedcomResource.php` ✓ [Edit](https://github.com/liberu-genealogy/genealogy-laravel/edit/sweep/use_imports/app/Filament/Resources/GedcomResource.php#L3-L13) - [X] Modify `app/Filament/Resources/DnaResource.php` ! No changes made [Edit](https://github.com/liberu-genealogy/genealogy-laravel/edit/sweep/use_imports/app/Filament/Resources/DnaResource.php#L3-L13) - [X] Running GitHub Actions for `app/Filament/Resources/DnaResource.php` ✗ [Edit](https://github.com/liberu-genealogy/genealogy-laravel/edit/sweep/use_imports/app/Filament/Resources/DnaResource.php#L3-L13)
sweep-ai[bot] commented 5 months ago

🚀 Here's the PR! #142

See Sweep's progress at the progress dashboard!
Sweep Basic Tier: I'm using GPT-4. You have 5 GPT-4 tickets left for the month and 3 for the day. (tracking ID: aaf8ee4f6e)

For more GPT-4 tickets, visit our payment portal. For a one week free trial, try Sweep Pro (unlimited GPT-4 tickets).

[!TIP] I'll email you at genealogysoftwareuk@gmail.com when I complete this pull request!


Actions (click)

GitHub Actions failed

The sandbox appears to be unavailable or down.


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/liberu-genealogy/genealogy-laravel/blob/b8b1007738b8df4411e4b4503c8b781066c22a53/app/Filament/Resources/GedcomResource.php#L2-L14 https://github.com/liberu-genealogy/genealogy-laravel/blob/b8b1007738b8df4411e4b4503c8b781066c22a53/app/Filament/Resources/DnaResource.php#L2-L14 https://github.com/liberu-genealogy/genealogy-laravel/blob/b8b1007738b8df4411e4b4503c8b781066c22a53/config/session.php#L2-L4 https://github.com/liberu-genealogy/genealogy-laravel/blob/b8b1007738b8df4411e4b4503c8b781066c22a53/tests/Unit/Filament/Resources/PersonResourceTest.php#L2-L10

Step 2: ⌨️ Coding

--- 
+++ 
@@ -4,14 +4,14 @@

 use App\Filament\Resources\GedcomResource\Pages;
 use App\Models\Gedcom;
+use Filament\Forms\Components\FileUpload;
 use Filament\Forms\Form;
 use Filament\Resources\Resource;
 use Filament\Tables;
 use Filament\Tables\Table;
-use Filament\Forms\Components\FileUpload;
 use App\Jobs\ImportGedcom;
-use Illuminate\Support\Facades\Storage
-    
+use Illuminate\Support\Facades\Storage;
+
 class GedcomResource extends Resource
 {
     /**

Ran GitHub Actions for 4a8f0648d07b8cd83a6df77158fc4403ad10a1d9:


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/use_imports.


🎉 Latest improvements to Sweep:
  • New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
  • Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
  • Use the GitHub issues extension for creating Sweep issues directly from your editor.

💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request.Something wrong? Let us know.

This is an automated message generated by Sweep AI.