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

@@ -11,6 +11,9 @@ interface BookingConfirmationProps {
onCancel: () => void
}
/**
* BookingConfirmation component that allows confirming a booking by short ID.
*/
export function BookingConfirmation({ apiKey, onConfirm, onCancel }: BookingConfirmationProps) {
const [shortId, setShortId] = useState('')
const [loading, setLoading] = useState(false)

View File

@@ -16,6 +16,9 @@ interface ResourceAssignmentProps {
end_time: string
}
/**
* ResourceAssignment component that displays available resources for booking.
*/
export function ResourceAssignment({ resources, start_time, end_time }: ResourceAssignmentProps) {
const formatDateTime = (dateTime: string) => {
const date = new Date(dateTime)

View File

@@ -13,6 +13,9 @@ interface WalkInFlowProps {
onCancel: () => void
}
/**
* WalkInFlow component that manages the walk-in booking process in steps.
*/
export function WalkInFlow({ apiKey, onComplete, onCancel }: WalkInFlowProps) {
const [step, setStep] = useState<'services' | 'customer' | 'confirm' | 'success'>('services')
const [loading, setLoading] = useState(false)