Adrian Flores Cortes
|
765a639004
|
refactor(frontend): Extract common components and types
- Create src/types/ with organized type files:
- api.types.ts, auth.types.ts, construction.types.ts
- estimates.types.ts, hse.types.ts, common.types.ts
- Create src/utils/ with utilities:
- formatters.ts (formatCurrency, formatDate, etc.)
- validators.ts (isValidEmail, isValidRFC, etc.)
- constants.ts (status options, color maps)
- Create src/components/common/ with reusable components:
- DataTable, Modal, ConfirmDialog
- FormField (TextInput, SelectField, TextareaField)
- StatusBadge, SearchInput, PageHeader
- ActionButtons, LoadingSpinner, EmptyState
- Refactor pages to use common components:
- FraccionamientosPage: 385 -> 285 lines
- PresupuestosPage: 412 -> 297 lines
- IncidentesPage: 741 -> 253 lines
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-02-03 09:02:57 -06:00 |
|
Adrian Flores Cortes
|
f3d91433fe
|
[MAI-002] feat: Implement frontend Proyectos module
- API services: 5 files (fraccionamientos, etapas, manzanas, lotes, prototipos)
- React Query hooks: useConstruccion.ts with 25+ hooks
- Pages: 6 pages for CRUD operations
- FraccionamientosPage, FraccionamientoDetailPage
- EtapasPage, ManzanasPage, LotesPage, PrototiposPage
- Components: LoteStatusBadge, HierarchyBreadcrumb
- AdminLayout with sidebar navigation
- Auth store with Zustand + persist
- React Query provider + react-hot-toast setup
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-01-25 10:04:54 -06:00 |
|