feat: Add kiosk management, artist selection, and schedule management

- 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
This commit is contained in:
Marco Gallegos
2026-01-21 13:02:06 -06:00
parent 24e5af3860
commit d27354fd5a
71 changed files with 3353 additions and 2701 deletions

View File

@@ -2,7 +2,15 @@ import { NextRequest, NextResponse } from 'next/server'
import { supabase } from '@/lib/supabase/client'
/**
* @description Public API - Retrieves basic availability information
* @description Public API endpoint providing basic location and service information for booking availability overview
* @param {NextRequest} request - HTTP request with required query parameter: location_id
* @returns {NextResponse} JSON with location details and list of active services, plus guidance to detailed availability endpoint
* @example GET /api/public/availability?location_id=123e4567-e89b-12d3-a456-426614174000
* @audit BUSINESS RULE: Provides high-level availability info; detailed time slots available via /api/availability/time-slots
* @audit SECURITY: Public endpoint; no authentication required; returns only active locations and services
* @audit Validate: Ensures location_id is provided and location is active
* @audit PERFORMANCE: Single query fetches location and services with indexed lookups
* @audit AUDIT: High-volume public endpoint; consider rate limiting in production
*/
export async function GET(request: NextRequest) {
try {