mirror of
https://github.com/marcogll/AnchorOS.git
synced 2026-03-15 18:24:31 +00:00
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:
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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('')
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user