How services-hls/haritha-resorts works
This is a browser-based hotel/property management application: users sign in, choose a global or property-specific view, and work with dashboards and operational pages. Its domain spans room inventory and booking, guest management, billing, restaurant orders, amenities, reporting, and property settings. The sampled code shows route protection and property selection, plus in-memory property state and mock records; it does not establish persistence beyond authentication in local storage. Page-level data wiring beyond the sampled excerpts is therefore left unspecified.
Main entry points: App.tsx Application routes · AuthContext.tsx Authentication state · PropertyContext.tsx Property state and filters · mockData.ts Mock records
Components 22
Access and navigation
- Application routes
src/App.tsx - Sign in
src/pages/Login.tsx
Portfolio views
- Global dashboard
src/pages/GlobalDashboard.tsx - Property dashboard
src/pages/property/PropertyDashboard.tsx - Portfolio filters
src/components/layout/GlobalFilterBar.tsx
Property operations
- Rooms and details
src/pages/property/RoomsManagement.tsx - Room details
src/pages/property/RoomDetails.tsx - Booking management
src/pages/property/BookingManagement.tsx - Daily schedule
src/pages/property/DayView.tsx - Booking form
src/components/BookingFormModal.tsx - Booking calendar
src/components/BookingCalendar.tsx - Guest management
src/pages/property/GuestManagement.tsx - Billing and payments
src/pages/property/BillingPayments.tsx - Restaurant orders
src/pages/property/RestaurantOrders.tsx - Amenities management
src/pages/property/AmenitiesManagement.tsx - Reports
src/pages/property/Reports.tsx - Property settings
src/pages/property/Settings.tsx
Shared state and records
- Authentication state
src/contexts/AuthContext.tsx - Mock records
src/data/mockData.ts - Property state and filters
src/contexts/PropertyContext.tsx
Other components
- Operator
- Browser local storage
Connections 20
- Operator → Application routes: uses
- Application routes → Authentication state: provides auth
- Application routes → Property state and filters: provides property state
- Application routes → Sign in: routes to
- Application routes → Global dashboard: routes to
- Application routes → Property dashboard: routes to
- Application routes → Rooms and details: routes to
- Application routes → Room details: routes to
- Application routes → Booking management: routes to
- Application routes → Daily schedule: routes to
- Application routes → Guest management: routes to
- Application routes → Billing and payments: routes to
- Application routes → Restaurant orders: routes to
- Application routes → Amenities management: routes to
- Application routes → Reports: routes to
- Application routes → Property settings: routes to
- Authentication state → Mock records: reads users
- Authentication state → Browser local storage: reads and writes
- Property state and filters → Mock records: initializes from
- Portfolio filters → Property state and filters: reads and updates