Commit Graph

6 Commits

Author SHA1 Message Date
Marco Gallegos
b0ea5548ef docs: Complete HIGH priority documentation tasks
TASK 4.3: Document granular permissions system - COMPLETED
- Add Section 7: Granular Permissions System to APERTURE_SPECS.md
- Define flexible permission system for any user
- Only admin can assign permissions (independent of user roles)
- 8 permission categories with 30+ individual permissions
- Database schema: user_permissions table with RLS
- API endpoints for checking and assigning permissions
- Helper functions: hasPermission(), hasPermissions(), isAdmin()
- UI components: PermissionChecker, MultiPermissionChecker
- Admin panel for permission management

TASK 4.5: Update APERTURE_SQUARE_UI.md with Radix UI - COMPLETED
- Add Section 3: Radix UI Components Used
- Document all Radix UI packages installed
- Radix components styled with Square UI tokens
- Section 5: Square UI styling examples for each component
- Section 6: Accessibility guidelines (Radix UI support)
- Code examples for Button, Dialog, Tooltip with Square UI
- Complete dashboard page example with Radix UI components

TASK 4.2: Update globals.css with complete variables - COMPLETED
- Add all Square UI color variables to :root
- Add UI component shadows (sm, md, lg, xl)
- Add UI border colors
- Add UI text colors (primary, secondary, tertiary)
- Add UI state colors (success, warning, error, info)
- Add UI radiuses (sm, md, lg, xl, 2xl, full)
- Add UI text sizes (xs, sm, base, lg, xl, 2xl, 3xl, 4xl, 5xl)
- Maintain backward compatibility with anchor23.mx colors

Impact:
- Complete Square UI design system foundation
- All color variables centralized in globals.css
- Ready for Radix UI integration
- Supports both anchor23.mx and Aperture styling

Files Modified:
- docs/APERTURE_SPECS.md (added granular permissions section)
- docs/APERTURE_SQUARE_UI.md (added Radix UI documentation)
- app/globals.css (added complete Square UI variables)

Next: FASE 1 - Componentes Base con Radix UI
2026-01-17 11:01:49 -06:00
Marco Gallegos
583a25a6f6 feat: implement customer registration flow and business hours system
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
2026-01-17 00:29:49 -06:00
Marco Gallegos
cf2d8f9b4d feat: Agregar botones Book Now y Memberships al navbar
**Navbar Principal (anchor23.mx):**
- Reemplazar botón único "Solicitar Membresía" por dos botones:
  - "Book Now" → /booking/servicios (The Boutique)
  - "Memberships" → /membresias
- Mantener estructura limpia con 2 botones en nav-actions

**The Boutique (booking.anchor23.mx):**
- Crear layout específico con navbar personalizada
- Navbar incluye: logo, "Book Now", "Memberships", "Mis Citas", "Perfil"
- Estilos .booking-header y .booking-nav para header personalizado
- Compartir estilos base con anchor23.mx

**Páginas The Boutique:**
- /booking/servicios - Selección de servicios con calendario interactivo
- /booking/cita - Confirmación de reserva con formulario de cliente
- /booking/confirmacion - Página de confirmación por código (short_id)
- API endpoints para servicios y ubicaciones

**Estilos:**
- Mantener paleta de colores de anchor23.mx (Bone White, Soft Cream, Membresías)
- Consistencia visual entre anchor23.mx y The Boutique
- Responsive para móviles
2026-01-16 16:21:46 -06:00
Marco Gallegos
c864f47382 style: Ajustar estilos según site_requirements.md
- Aplicar paleta de colores específica (Bone White, Soft Cream, Mocha Taupe, Deep Earth, Charcoal Brown)
- Eliminar colores saturados, gradientes y sombras duras
- Usar fuente serif Playfair Display para headings
- Aumentar márgenes y espaciado (grid amplio, espacio negativo dominante)
- Ajustar copy de landing page según especificaciones
  - Subtítulo: "Belleza anclada en exclusividad"
  - Fundamento: Texto completo de site_requirements
  - Servicios: Descripciones actualizadas
- Actualizar servicios page con descripciones correctas
- Layout: Ritmo vertical lento, sin UI densa
2026-01-16 15:58:28 -06:00
Marco Gallegos
bf607f7aa6 feat: Implementar frontend completo de anchor23.mx
- Crear landing page con hero, fundamento, servicios y testimoniales
- Crear página de servicios con grid y descripciones
- Crear página de historia con filosofía de la marca
- Crear página de contacto con formulario
- Crear página de franchises con solicitud
- Crear página de membresías con 3 tiers (Gold, Black, VIP)
- Crear páginas de Privacy Policy y Legal
- Implementar header y footer global
- Estilos con Tailwind CSS según especificaciones
- HTML semántico y estructura clara
- Conversión silenciosa hacia booking.anchor23.mx
2026-01-16 15:45:28 -06:00
Marco Gallegos
accf0e81e1 feat: Implementar sistema de disponibilidad y corregir errores de kiosko
- Agregar API routes de disponibilidad (blocks, staff, time-slots, staff-unavailable)
- Corregir autenticación en availability routes (reemplazar get_current_user_role con validación Bearer)
- Corregir DELETE en blocks/route.ts para usar query parameters
- Corregir errores de tipos en kiosk routes (supabase → supabaseAdmin)
- Agregar layout raíz de Next.js y estilos globales
- Agregar componente Badge UI
- Corregir tipos TypeScript en WalkInFlow
- Instalar dependencias necesarias (@radix-ui/*, class-variance-authority, etc)
- Agregar migraciones de disponibilidad
2026-01-16 15:12:57 -06:00