Commit Graph

6 Commits

Author SHA1 Message Date
Mexus
09a29bb5c1 feat: Add estimaciones, dashboard comparativo, bulk pricing, and enhanced Gantt
- 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>
2026-02-05 23:10:29 +00:00
Mexus
e964e8f0b5 feat: Add catalog import and progress tracking features
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>
2026-02-05 09:00:36 +00:00
Mexus
56e39af3ff feat: Implement complete APU (Análisis de Precios Unitarios) module
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>
2026-02-05 07:14:14 +00:00
Mexus
e1847597d6 docs: Update README with all features and improvements
- Document all modules and functionalities
- Add new API endpoints documentation
- Include PWA installation instructions
- Add changelog with v1.1.0 features
- Update project structure
- Add environment variables for new features
- Document portal client permissions
- Include data models reference

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 03:12:40 +00:00
Mexus
a08e7057e8 feat: Add major features - Mejoras 5-10
- 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>
2026-01-19 03:09:38 +00:00
Mexus
86bfbd2039 feat: Initial commit - Mexus App
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>
2026-01-19 01:10:55 +00:00