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:
@@ -24,11 +24,12 @@ class GlobalTemplatesTest extends TestCase
|
||||
private function project(User $owner, string $ref = 'P'): Project
|
||||
{
|
||||
$p = Project::create([
|
||||
'reference' => $ref, 'name' => 'P-' . $ref, 'address' => 'x', 'lat' => 40, 'lng' => -3,
|
||||
'reference' => $ref, 'name' => 'P-'.$ref, 'address' => 'x', 'lat' => 40, 'lng' => -3,
|
||||
'start_date' => now()->toDateString(), 'end_date_estimated' => now()->addMonth()->toDateString(),
|
||||
'status' => 'in_progress', 'created_by' => $owner->id,
|
||||
]);
|
||||
$p->users()->attach($owner->id, ['role_in_project' => 'supervisor']);
|
||||
|
||||
return $p;
|
||||
}
|
||||
|
||||
@@ -124,8 +125,8 @@ class GlobalTemplatesTest extends TestCase
|
||||
$admin->givePermissionTo('manage templates');
|
||||
|
||||
$csv = "group,name,label,question,type,required,options,min,max,step,help\n"
|
||||
. "Dimensiones,altura,Altura (m),¿Cumple la cota?,decimal,1,,0,100,0.1,Medir con flexómetro\n"
|
||||
. "Acabados,ok,¿Acabado?,,boolean,0,,,,,\n";
|
||||
."Dimensiones,altura,Altura (m),¿Cumple la cota?,decimal,1,,0,100,0.1,Medir con flexómetro\n"
|
||||
."Acabados,ok,¿Acabado?,,boolean,0,,,,,\n";
|
||||
$file = UploadedFile::fake()->createWithContent('plantilla.csv', $csv);
|
||||
|
||||
$cmp = Livewire::actingAs($admin)
|
||||
@@ -159,7 +160,7 @@ class GlobalTemplatesTest extends TestCase
|
||||
$user = User::factory()->create();
|
||||
$project = $this->project($user, 'M');
|
||||
|
||||
$assigned = InspectionTemplate::create(['name' => 'Asignada', 'fields' => []]);
|
||||
$assigned = InspectionTemplate::create(['name' => 'Asignada', 'fields' => []]);
|
||||
$unassigned = InspectionTemplate::create(['name' => 'Otra', 'fields' => []]);
|
||||
$project->inspectionTemplates()->attach($assigned->id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user