chore: cleanup dead code + format with Pint
- Remove unused FeaturesController (empty stubs, no routes) - Remove ConvertSpatialFile CLI command (unused; service used in LayerManager) - Remove MigrateGeojsonToFeatures CLI command (one-shot migration, not referenced) - Remove .claude/worktrees/ (11 old agent worktrees from June) - Apply Laravel Pint formatting across 219 files (style only, no functional changes) Tests: 101 passing (319 assertions) API routes: unchanged (8 routes intact)
This commit is contained in:
@@ -4,7 +4,6 @@ namespace Tests\Feature;
|
||||
|
||||
use App\Livewire\Phases\PhaseList;
|
||||
use App\Livewire\Phases\PhaseTable;
|
||||
use App\Models\Phase;
|
||||
use App\Models\Project;
|
||||
use App\Models\User;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
@@ -17,6 +16,7 @@ class PhaseManagementTest extends TestCase
|
||||
use RefreshDatabase;
|
||||
|
||||
private User $user;
|
||||
|
||||
private Project $project;
|
||||
|
||||
protected function setUp(): void
|
||||
@@ -30,15 +30,15 @@ class PhaseManagementTest extends TestCase
|
||||
$this->user->givePermissionTo(['manage phases', 'edit projects']);
|
||||
|
||||
$this->project = Project::create([
|
||||
'reference' => 'PH-1',
|
||||
'name' => 'Proyecto Fases',
|
||||
'address' => 'Calle 1',
|
||||
'lat' => 40.0,
|
||||
'lng' => -3.0,
|
||||
'start_date' => now()->toDateString(),
|
||||
'reference' => 'PH-1',
|
||||
'name' => 'Proyecto Fases',
|
||||
'address' => 'Calle 1',
|
||||
'lat' => 40.0,
|
||||
'lng' => -3.0,
|
||||
'start_date' => now()->toDateString(),
|
||||
'end_date_estimated' => now()->addMonths(3)->toDateString(),
|
||||
'status' => 'in_progress',
|
||||
'created_by' => $this->user->id,
|
||||
'status' => 'in_progress',
|
||||
'created_by' => $this->user->id,
|
||||
]);
|
||||
$this->project->users()->attach($this->user->id, ['role_in_project' => 'supervisor']);
|
||||
}
|
||||
@@ -59,10 +59,10 @@ class PhaseManagementTest extends TestCase
|
||||
->assertHasNoErrors();
|
||||
|
||||
$this->assertDatabaseHas('phases', [
|
||||
'project_id' => $this->project->id,
|
||||
'name' => 'Cimentación',
|
||||
'color' => '#ff0000',
|
||||
'order' => 2,
|
||||
'project_id' => $this->project->id,
|
||||
'name' => 'Cimentación',
|
||||
'color' => '#ff0000',
|
||||
'order' => 2,
|
||||
'progress_percent' => 30,
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user