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:
Javier Braña
2026-08-28 13:04:28 +02:00
parent 2dccd59385
commit 90630379fb
139 changed files with 2888 additions and 2510 deletions
+16 -15
View File
@@ -2,13 +2,14 @@
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\Project;
use App\Models\Phase;
use App\Models\Layer;
use App\Models\Feature;
use App\Models\Inspection;
use App\Models\InspectionTemplate;
use App\Models\Layer;
use App\Models\Phase;
use App\Models\Project;
use App\Models\User;
use Illuminate\Database\Seeder;
class ProjectExampleSeeder extends Seeder
{
@@ -16,7 +17,7 @@ class ProjectExampleSeeder extends Seeder
{
// Obtener usuario admin
$admin = User::where('email', 'admin@email.com')->first();
if (!$admin) {
if (! $admin) {
$admin = User::first();
}
@@ -56,7 +57,7 @@ class ProjectExampleSeeder extends Seeder
['name' => 'progress', 'label' => 'Progreso de vertido', 'type' => 'percentage', 'required' => true],
['name' => 'calidad', 'label' => 'Calidad del hormigón', 'type' => 'select', 'options' => 'Excelente,Bueno,Regular,Deficiente', 'required' => true],
['name' => 'observaciones', 'label' => 'Observaciones', 'type' => 'textarea', 'required' => false],
]
],
]);
$templateAcero = InspectionTemplate::create([
@@ -65,7 +66,7 @@ class ProjectExampleSeeder extends Seeder
'fields' => [
['name' => 'progress', 'label' => '% de acero colocado', 'type' => 'percentage', 'required' => true],
['name' => 'diametros', 'label' => 'Diámetros verificados', 'type' => 'text', 'required' => false],
]
],
]);
// Crear capa (sin geojson_data)
@@ -88,8 +89,8 @@ class ProjectExampleSeeder extends Seeder
[-3.702, 40.415],
[-3.702, 40.418],
[-3.705, 40.418],
[-3.705, 40.415]
]]
[-3.705, 40.415],
]],
],
'properties' => ['description' => 'Zapata esquina noroeste'],
'template_id' => $templateHormigon->id,
@@ -107,8 +108,8 @@ class ProjectExampleSeeder extends Seeder
[-3.697, 40.415],
[-3.697, 40.418],
[-3.700, 40.418],
[-3.700, 40.415]
]]
[-3.700, 40.415],
]],
],
'properties' => ['description' => 'Zapata lado este'],
'template_id' => $templateAcero->id,
@@ -121,7 +122,7 @@ class ProjectExampleSeeder extends Seeder
'name' => 'Punto de control topográfico',
'geometry' => [
'type' => 'Point',
'coordinates' => [-3.703, 40.4165]
'coordinates' => [-3.703, 40.4165],
],
'properties' => ['tipo' => 'estación total'],
'template_id' => null,
@@ -130,7 +131,7 @@ class ProjectExampleSeeder extends Seeder
]);
// (Opcional) Crear una inspección de ejemplo
\App\Models\Inspection::create([
Inspection::create([
'project_id' => $project->id,
'layer_id' => $layer->id,
'feature_id' => $feature1->id,
@@ -139,8 +140,8 @@ class ProjectExampleSeeder extends Seeder
'data' => [
'progress' => 45,
'calidad' => 'Bueno',
'observaciones' => 'Vertido completado en un 45%, sin fisuras aparentes.'
'observaciones' => 'Vertido completado en un 45%, sin fisuras aparentes.',
],
]);
}
}
}