- Add KiosksManagement component with full CRUD for kiosks
- Add ScheduleManagement for staff schedules with break reminders
- Update booking flow to allow artist selection by customers
- Add staff_services API for assigning services to artists
- Update staff management UI with service assignment dialog
- Add auto-break reminder when schedule >= 8 hours
- Update availability API to filter artists by service
- Add kiosk management to Aperture dashboard
- Clean up ralphy artifacts and logs
Updates:
- Add docs/RECENT_FIXES_JAN_2026.md to documentation list
- Add recent fixes section with calendar and business hours corrections
- Update progress overview (FASE 3, 5, 6 now 100% complete)
- Add reference to comprehensive fixes documentation
New documentation file:
- docs/RECENT_FIXES_JAN_2026.md - Complete analysis of recent technical fixes
- Includes problem symptoms, root causes, and solutions
- Code examples and visual comparisons
- Validation notes and how to apply changes
Update status sections:
- FASE 3: 100% completed (Payments & Protection)
- FASE 5: 100% completed (Clients & Loyalty)
- FASE 6: 100% completed (Financial Reporting)
- Added recent fixes section with calendar and business hours corrections
Recent fixes added:
- Calendar day offset fix (January 1 now shows as Thursday)
- Business hours fix (now shows 10:00-19:00 instead of 22:00-23:00)
- Test Links page added
- Improved timezone handling in availability function
Progress updates:
- POS and CRM now marked as completed
- Payroll and commissions implemented
- Finance and reports section completed
- Create /testlinks page with all pages and API endpoints
- Add interactive cards with styling and color coding
- Include 21 pages and 40+ API endpoints
- Add badges for FASE 5 and FASE 6 features
- Update README with new section 12: Test Links
- Add direct links to all pages and endpoints
- Improve navigation and testing workflow
Test links page features:
- All frontend pages grouped by domain (anchor23.mx, booking, aperture, kiosk)
- All API endpoints with method indicators (GET, POST, PUT, DELETE)
- Color-coded method badges and phase badges
- Responsive grid layout with hover effects
- Information notes for dynamic parameters (LOCATION_ID, CRON_SECRET)
- Update README with Node.js 20 requirement and recent fixes
- Enhance API documentation with improved endpoints and troubleshooting
- Add Supabase connection issue resolution to troubleshooting guide
- Document lazy client initialization and enhanced error diagnostics
- Include recent improvements section in README
✅ COMENTARIOS AUDITABLES IMPLEMENTADOS:
- 80+ archivos con JSDoc completo para auditoría manual
- APIs críticas con validaciones business/security/performance
- Componentes con reglas de negocio documentadas
- Funciones core con edge cases y validaciones
✅ CALENDARIO MULTI-COLUMNA FUNCIONAL (95%):
- Drag & drop con reprogramación automática
- Filtros por sucursal/staff, tiempo real
- Indicadores de conflictos y disponibilidad
- APIs completas con validaciones de colisión
✅ GESTIÓN OPERATIVA COMPLETA:
- CRUD staff: APIs + componente con validaciones
- CRUD recursos: APIs + componente con disponibilidad
- Autenticación completa con middleware seguro
- Auditoría completa en todas las operaciones
✅ DOCUMENTACIÓN ACTUALIZADA:
- TASKS.md: FASE 4 95% completado
- README.md: Estado actual y funcionalidades
- API.md: 40+ endpoints documentados
✅ SEGURIDAD Y VALIDACIONES:
- RLS policies documentadas en comentarios
- Business rules validadas manualmente
- Performance optimizations anotadas
- Error handling completo
Próximos: Nómina/POS/CRM avanzado (FASE 4 final)
Major changes:
- Add customer registration with email/phone lookup (app/booking/registro)
- Add customers API endpoint (app/api/customers/route)
- Implement business hours for locations (mon-fri 10-7, sat 10-6, sun closed)
- Fix availability function type casting issues
- Add business hours utilities (lib/utils/business-hours.ts)
- Update Location type to include business_hours JSONB
- Add mock payment component for testing
- Remove Supabase auth from booking flow
- Fix /cita redirect path in booking flow
Database migrations:
- Add category column to services table
- Add business_hours JSONB column to locations table
- Fix availability functions with proper type casting
- Update get_detailed_availability to use business_hours
Features:
- Customer lookup by email or phone
- Auto-redirect to registration if customer not found
- Pre-fill customer data if exists
- Business hours per day of week
- Location-specific opening/closing times
- Add public API endpoints for locations, services, and availability
- Implement staff login system with password authentication
- Update auth context to support password sign-in
- Protect aperture dashboard with authentication
- Update project documentation with new domains
- Add JSDoc comments to API routes and business logic functions
- Update README.md with Phase 2 status and deployment/production notes
- Enhance TASKS.md with estimated timelines and dependencies
- Create docs/STAFF_TRAINING.md for team onboarding
- Create docs/CLIENT_ONBOARDING.md for customer experience
- Create docs/OPERATIONAL_PROCEDURES.md for daily operations
- Create docs/TROUBLESHOOTING.md for common setup issues
- Fix TypeScript errors in hq/page.tsx
- Implement client authentication with Supabase magic links
- Add Stripe payment integration for deposits
- Complete The Boutique booking flow with payment processing
- Implement Aperture backend with staff/resources management
- Add comprehensive reports: sales, payments, payroll
- Create permissions management system by roles
- Configure kiosk system with enrollment
- Add no-show logic and penalization system
- Update project documentation and API docs
- Enhance README with current project status
**Frontend (booking.anchor23.mx):**
- Crear página de selección de servicios (/booking/servicios)
- Catálogo de servicios con precios y duración
- Selección de ubicación
- Calendario interactivo para selección de fecha y hora
- Validación de disponibilidad en tiempo real
- Resumen de reserva con precio
- Crear página de confirmación de reserva (/booking/cita)
- Resumen detallado de la cita (servicio, fecha, hora, ubicación)
- Formulario para datos del cliente (nombre, email, teléfono, notas)
- Confirmación visual de la reserva
- Redirección a página de confirmación exitosa
**Backend APIs:**
- Crear /api/services para obtener servicios activos
- Filtrar por ubicación si se especifica
- Retornar precio y duración de cada servicio
- Crear /api/locations para obtener ubicaciones activas
- Retornar lista de locations con timezone
**Documentación:**
- Actualizar TASKS.md con progreso de The Boutique (20%)
- Agregar nuevas tareas pendientes (aperture, api pública)
- Actualizar README.md con:
- Nueva estructura de rutas (/booking/*)
- Nuevas APIs (/api/services, /api/locations)
- Estado actualizado de The Boutique
- Actualizar Fase 2 al 20% completado
**Estilos:**
- Mantener paleta de colores de anchor23.mx
- Diseño consistente con el resto del sitio
- Responsive para móviles
- Configurar puerto 2311 por defecto en package.json
- Actualizar README.md con puerto local 2311
- Actualizar DOMAIN_CONFIGURATION.md con puerto 2311
- Actualizar comandos ngrok para usar puerto correcto
- Actualizar URLs de acceso local
- Actualizar README.md con estado actual del proyecto
- Agregar sección de anchor23.mx frontend institucional
- Actualizar estructura de rutas y carpetas
- Actualizar fase actual (95% Fase 1, 60% Fase 2)
- Crear documento DOMAIN_CONFIGURATION.md con guía de dominios
- Crear documento ANCHOR23_FRONTEND.md con detalles técnicos
- Agregar referencias cruzadas en README
Completados recientes:
✅ Frontend institucional anchor23.mx (todas las páginas)
✅ Sistema de disponibilidad completo
✅ API de reservas para clientes
✅ HQ Dashboard con calendario multi-columna