- Implement complete Estimaciones module with CRUD operations
- Create/edit/view estimaciones with partidas selection
- Automatic calculation of accumulated amounts
- State workflow (BORRADOR → ENVIADA → APROBADA → PAGADA)
- Integration with presupuestos and partidas
- Add dashboard comparativo presupuesto vs ejecutado
- Summary cards with totals and variance
- Category breakdown table with progress
- Per-obra comparison table with filters
- Integrated as tab in Reportes page
- Implement bulk price update functionality
- Support for MATERIAL, MANO_OBRA, EQUIPO types
- Percentage or fixed value methods
- Optional cascade recalculation of APUs
- UI dialog in APU list
- Enhance Gantt chart with API integration
- New /api/obras/[id]/programacion endpoint
- Drag & drop to change task dates (persisted)
- Progress bar drag to update completion
- Auto-fetch complete scheduling data
- View mode options and refresh button
- Add order creation from materials explosion
- Material selection with checkboxes
- Create purchase order dialog
- Integration with existing ordenes system
- Create missing UI components (Tabs, Checkbox, Form)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1. Catalog Import (Generadores de Precios):
- ImportacionCatalogo model for tracking import history
- POST /api/importar - Process Excel/CSV files
- GET /api/importar - List import history
- ImportadorCatalogo component with:
- Template download for materials, labor, equipment
- Auto unit mapping (PZA→PIEZA, M2→METRO_CUADRADO, etc.)
- FSR auto-calculation for labor imports
- Import history view
2. Progress Tracking (Control de Avance por Partida):
- AvancePartida model with quantity, percentage, amount tracking
- CRUD API endpoints for avances
- GET /api/avances/resumen - Summary per presupuesto
- ControlAvancePartidas component with:
- Global progress summary cards
- Per-partida progress table with bars
- Register progress dialog
- Auto-calculation of accumulated values
3. Bug fixes:
- ClientDate component to fix hydration mismatch errors
- Date formatting now consistent between server and client
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
High priority features:
- APU CRUD with materials, labor, and equipment breakdown
- Labor catalog with FSR (Factor de Salario Real) calculation
- Equipment catalog with hourly cost calculation
- Link APU to budget line items (partidas)
- Explosion de insumos (consolidated materials list)
Additional features:
- Duplicate APU functionality
- Excel export for explosion de insumos
- Search and filters in APU list
- Price validation alerts for outdated prices
- PDF report export for APU
New components:
- APUForm, APUList, APUDetail
- ManoObraForm, EquipoForm
- ConfiguracionAPUForm
- VincularAPUDialog
- PartidasManager
- ExplosionInsumos
- APUPDF
New UI components:
- Alert component
- Tooltip component
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Mejora 5: Órdenes de Compra integration in obra detail
- Mejora 6: Portal de Cliente with JWT auth for clients
- Mejora 7: Diagrama de Gantt for project visualization
- Mejora 8: Push Notifications with service worker
- Mejora 9: Activity Log system with templates
- Mejora 10: PWA support with offline capabilities
New features include:
- Fotos gallery with upload/delete
- Bitácora de obra with daily logs
- PDF export for reports, gastos, presupuestos
- Control de asistencia for employees
- Client portal with granular permissions
- Gantt chart with task visualization
- Push notification system
- Activity timeline component
- PWA manifest, icons, and install prompt
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sistema de Gestión de Obras de Construcción completo con:
- Dashboard con KPIs y gráficos
- Módulo de obras con fases y tareas
- Control financiero (gastos, presupuestos)
- Gestión de recursos (personal, subcontratistas)
- Inventario de materiales con alertas de stock
- Reportes con exportación CSV
- Autenticación con roles (NextAuth.js v5)
- API REST completa
- Documentación de API y base de datos
- Configuración Docker para despliegue
Stack: Next.js 14+, TypeScript, Tailwind CSS, Prisma, PostgreSQL
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>