How john-rey-carlo-a-gemao/hacienda-de-luisana works
This snapshot contains Hacienda de LuisAna’s guest-facing React website: visitors explore the property, authenticate, check booking options, submit a booking with payment proof, manage their own stays, message the Admin, and leave reviews. The README also describes a separate Admin mobile app, but its documented lib/ source tree is absent here, so its operational workflows cannot be mapped reliably. Relationships below follow shown imports/calls or README statements; unsampled components are represented only where documented.
Main entry points: App.tsx Website routes · BookingPage.tsx Booking form · DownpaymentPage.tsx Payment proof · firestoreBookings.ts Booking records
Components 21
Guest website
- Website routes
src/App.tsx - Property pages
src/pages/Home.tsx - Property content
src/config/site.ts - Guest messages
src/pages/MessagesPage.tsx - Review submission
src/components/ReviewForm.tsx
Identity and access
- Sign-in UI
src/components/Auth/LoginForm.tsx - Auth context
src/context/AuthContext.tsx - Auth session
src/lib/auth/session.ts
Booking lifecycle
- Booking form
src/pages/BookingPage.tsx - Booking lifecycle
src/lib/booking/actions.ts - Booking records
src/lib/firestoreBookings.ts - Payment proof
src/pages/DownpaymentPage.tsx - Proof OCR
src/lib/payments/ocr.ts - Guest account
src/pages/AccountPage.tsx - Published rates
src/hooks/usePublishedRates.ts
Cloud services
- Rates data
src/lib/ratesDB.ts - Live location
src/hooks/useLiveLocation.ts - Review records
src/lib/reviewsCloud.ts - Firebase
src/lib/firebase.ts - Supabase Storage
src/lib/supabase.ts
Other components
- Guest
Connections 24
- Guest → Website routes: visits
- Website routes → Property pages: routes to
src/App.tsx - Property pages → Property content: presents
- Website routes → Sign-in UI: routes to
src/App.tsx - Sign-in UI → Auth context: uses session
src/components/Auth/LoginForm.tsx - Auth context → Auth session: delegates to
src/context/AuthContext.tsx - Guest → Booking form: requests stay
- Website routes → Booking form: routes to
src/App.tsx - Booking form → Booking lifecycle: checks booking
- Booking form → Booking records: checks availability
- Booking form → Payment proof: continues to payment
- Payment proof → Booking records: submits proof
src/pages/DownpaymentPage.tsx - Payment proof → Proof OCR: checks proof
src/pages/DownpaymentPage.tsx - Payment proof → Supabase Storage: uploads proof
- Booking records → Firebase: reads and writes
src/lib/firestoreBookings.ts - Website routes → Guest account: routes to
src/App.tsx - Guest account → Booking records: manages bookings
- Published rates → Rates data: subscribes
src/hooks/usePublishedRates.ts - Rates data → Firebase: reads rates
- Website routes → Guest messages: routes to
src/App.tsx - Guest messages → Live location: shares location
- Live location → Firebase: streams location
- Review submission → Review records: submits review
src/components/ReviewForm.tsx - Review records → Firebase: stores reviews
src/lib/reviewsCloud.ts