docs: add comprehensive code comments, update README and TASKS, create training and troubleshooting guides

- 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
This commit is contained in:
Marco Gallegos
2026-01-16 18:42:45 -06:00
parent 28e98a2a44
commit 8fc9d3717e
63 changed files with 973 additions and 101 deletions

View File

@@ -12,6 +12,7 @@ import { format } from 'date-fns'
import { es } from 'date-fns/locale'
import { useAuth } from '@/lib/auth/context'
/** @description Booking confirmation and payment page component for completing appointment reservations. */
export default function CitaPage() {
const { user, loading: authLoading } = useAuth()
const router = useRouter()

View File

@@ -7,6 +7,7 @@ import { CheckCircle2, Calendar, Clock, MapPin, User, Mail } from 'lucide-react'
import { format } from 'date-fns'
import { es } from 'date-fns/locale'
/** @description Booking confirmation page component displaying appointment details and important information after successful booking. */
export default function ConfirmacionPage() {
const [bookingDetails, setBookingDetails] = useState<any>(null)
const [loading, setLoading] = useState(true)

View File

@@ -8,6 +8,7 @@ import { Label } from '@/components/ui/label'
import { Mail, CheckCircle } from 'lucide-react'
import { useAuth } from '@/lib/auth/context'
/** @description Login page component for customer authentication using magic link emails. */
export default function LoginPage() {
const { signIn } = useAuth()
const [email, setEmail] = useState('')

View File

@@ -7,6 +7,7 @@ import { Calendar, Clock, MapPin, User, DollarSign } from 'lucide-react'
import { format } from 'date-fns'
import { es } from 'date-fns/locale'
/** @description Customer appointments management page component for viewing and managing existing bookings. */
export default function MisCitasPage() {
const [bookings, setBookings] = useState<any[]>([])
const [loading, setLoading] = useState(false)

View File

@@ -11,6 +11,7 @@ import { format } from 'date-fns'
import { es } from 'date-fns/locale'
import { useAuth } from '@/lib/auth/context'
/** @description Customer profile management page component for viewing and editing personal information and booking history. */
export default function PerfilPage() {
const { user, loading: authLoading } = useAuth()
const router = useRouter()