How nafeeza-25/sociotels-guest-journey works
Sociotels is a browser-based, simulated lodging-booking prototype with a guest journey and host console. Guests search dates and preferences, browse ranked stays, inspect a property, choose a room and occupancy, enter details, review pricing, attempt mock payment, and reach confirmation; they can then manage a trip, message the house, and leave feedback. The host view exposes the same demo booking data. The graph follows documented routes and source-index references; unsampled implementations are represented by their exact paths, and external map/font services are documented but not traced to specific callers.
Main entry points: main.js Router and shell · api.js Demo operations · property.js Property details · stays.js Stay results
Components 32
Guest booking journey
- Search calendar
src/ui/search.js - Home discovery
src/pages/home.js - Stay results
src/pages/stays.js - Property details
src/pages/property.js - Room selection
src/pages/room.js - Guest details
src/pages/guest.js - Booking review
src/pages/review.js - Mock payment
src/pages/pay.js - Confirmation
src/pages/booked.js
Trip and host operations
- Trip list
src/pages/trips.js - Trip management
src/pages/trip.js - Host console
src/pages/host.js - Workations
src/pages/workations.js
Booking and business logic
- Property catalog
src/data/catalog.js - Demo operations
src/api.js - Pricing engine
src/domain/pricing.js - Availability inventory
src/domain/inventory.js - Occupancy rules
src/domain/occupancy.js - Stay fit ranking
src/domain/fit.js - Community signals
src/domain/community.js - House assistant
src/domain/assistant.js - Booking rules
src/domain/bookings.js
App and shared foundation
- Router and shell
src/main.js - Browser state
src/store.js - Shared UI components
src/ui/components.js - Photo rendering
src/ui/photo.js - Dialogs and toasts
src/ui/overlay.js - Motion helpers
src/ui/motion.js - Date utilities
src/core/dates.js - Formatting helpers
src/core/format.js - Safe HTML
src/core/html.js
Other components
- Guest
Connections 48
- Guest → Router and shell: opens
README.md - Router and shell → Home discovery: routes
src/main.js - Router and shell → Search calendar: mounts
- Router and shell → Stay results: routes
src/main.js - Router and shell → Property details: routes
src/main.js - Router and shell → Room selection: routes
src/main.js - Router and shell → Guest details: routes
src/main.js - Router and shell → Booking review: routes
src/main.js - Router and shell → Mock payment: routes
src/main.js - Router and shell → Confirmation: routes
src/main.js - Router and shell → Trip list: routes
src/main.js - Router and shell → Trip management: routes
src/main.js - Router and shell → Host console: routes
src/main.js - Router and shell → Workations: routes
src/main.js - Search calendar → Browser state: saves search
src/ui/search.js - Stay results → Demo operations: requests stays
src/pages/stays.js - Stay results → Stay fit ranking: ranks matches
src/pages/stays.js - Stay results → Occupancy rules: checks party
src/pages/stays.js - Stay results → Community signals: shows signals
src/pages/stays.js - Property details → Demo operations: loads property
src/pages/property.js - Property details → Stay fit ranking: uses fit
src/pages/property.js - Property details → Pricing engine: shows prices
src/pages/property.js - Property details → Community signals: shows events
src/pages/property.js - Property details → Occupancy rules: checks limits
src/pages/property.js - Room selection → Demo operations: loads options
src/pages/room.js - Room selection → Pricing engine: quotes stay
src/pages/room.js - Room selection → Occupancy rules: checks guests
src/pages/room.js - Guest details → Demo operations: holds units
src/pages/guest.js - Guest details → Browser state: updates draft
src/pages/guest.js - Booking review → Pricing engine: builds quote
src/pages/review.js - Booking review → Demo operations: uses booking data
src/pages/review.js - Mock payment → Demo operations: pays and confirms
src/pages/pay.js - Confirmation → Demo operations: loads booking
src/pages/booked.js - Demo operations → Browser state: reads and saves
src/api.js - Demo operations → Property catalog: looks up rooms
src/api.js - Demo operations → Availability inventory: checks units
src/api.js - Demo operations → Booking rules: creates bookings
src/api.js - Demo operations → Pricing engine: calculates charge
src/api.js - Trip list → Demo operations: loads bookings
- Trip management → Demo operations: manages stay
src/pages/trip.js - Trip management → House assistant: answers questions
src/pages/trip.js - Trip management → Community signals: shows activities
src/pages/trip.js - Host console → Demo operations: handles operations
src/pages/host.js - Host console → Booking rules: uses booking rules
src/pages/host.js - Host console → House assistant: uses replies
src/pages/host.js - Workations → Property catalog: browses properties
src/pages/workations.js - Browser state → Date utilities: anchors dates
src/store.js - Shared UI components → Safe HTML: renders safely
src/ui/components.js