How hasishinfant/tbo works
TravelSphere is a React travel-companion application spanning destination discovery, itinerary planning, flight and hotel search/booking, assistant chat, and emergency support. The typical journey is to plan a trip, view its itinerary, and continue into booking or travel assistance; emergency support is also a separate capability. The graph focuses on product flows and the flight/hotel search internals visible in the supplied excerpts. Several feature implementations were not sampled, so their connections are omitted or marked unverified.
Main entry points: App.tsx TravelSphere app · TripPlannerPage.tsx Trip planner page · HotelBookingPage.tsx Hotel booking page · ChatPage.tsx Assistant chat
Components 26
Application shell
- TravelSphere app
src/App.tsx - Home and discovery
src/pages/HomePage.tsx - Destination discovery
src/components/destination
Trip planning
- Trip planner page
src/pages/TripPlannerPage.tsx - Trip preferences
src/components/trip-planner/TripPlannerForm.tsx - Itinerary generation
src/services/itineraryService.ts - Itinerary view
src/pages/ItineraryPage.tsx - Itinerary timeline
src/components/itinerary/ItineraryTimeline.tsx
Travel booking
- Hotel booking page
src/pages/HotelBookingPage.tsx - Hotel search form
src/components/hotel/HotelSearchForm.tsx - Hotel search results
src/components/hotel/HotelSearchResults.tsx - Hotel booking workflow
src/services/hotelBookingService.ts - Combined itinerary booking
src/components/booking/CombinedBookingWorkflow.tsx
Travel assistance
- Assistant chat
src/pages/ChatPage.tsx - Chat interface
src/components/chat/ChatContainer.tsx - AI assistant service
src/confidence-engine/services/assistantService.ts - Codex integration
src/services/codexService.ts - Emergency support
src/pages/EmergencyPage.tsx - Emergency requests
src/services/emergencyService.ts
Search and API
- API hooks
src/hooks/useApi.ts - Hotel search service
src/services/hotelSearchService.ts - TBO API client
src/services/api/tboHotelApiClient.ts - Flight search service
src/services/flightSearchService.ts - Tek Travels client
src/services/api/tekTravelsApiClient.ts - Search fallback
src/services/mockFallbackHandler.ts
Other components
- Traveler
Connections 28
- Traveler → TravelSphere app: uses
README.md - TravelSphere app → Home and discovery: routes to
src/App.tsx - TravelSphere app → Trip planner page: routes to
src/App.tsx - TravelSphere app → Itinerary view: routes to
src/App.tsx - TravelSphere app → Assistant chat: routes to
src/App.tsx - TravelSphere app → Emergency support: routes to
src/App.tsx - TravelSphere app → Hotel booking page: routes to
src/App.tsx - Home and discovery → Destination discovery: explores
- Trip planner page → Trip preferences: presents
- Trip planner page → API hooks: uses
- API hooks → Itinerary generation: calls
src/hooks/useApi.ts - Trip planner page → Itinerary view: continues to
README.md - Itinerary view → Itinerary timeline: renders
src/pages/ItineraryPage.tsx - Traveler → Assistant chat: asks for assistance
- Assistant chat → Chat interface: uses
src/pages/ChatPage.tsx - Assistant chat → AI assistant service: gets responses
- AI assistant service → Codex integration: requests AI response
src/confidence-engine/services/assistantService.ts - Emergency support → Emergency requests: submits requests
- Hotel booking page → Hotel search form: presents
- Hotel search form → Hotel search service: searches
src/components/hotel/HotelSearchForm.tsx - Hotel search results → Hotel search service: uses
src/components/hotel/HotelSearchResults.tsx - Hotel search service → TBO API client: calls
src/services/hotelSearchService.ts - Hotel booking page → Hotel booking workflow: continues booking
- Hotel booking page → Flight search service: searches flights
- Flight search service → Tek Travels client: calls
src/services/flightSearchService.ts - Flight search service → Search fallback: uses fallback
src/services/flightSearchService.ts - Hotel search service → Search fallback: uses fallback
src/services/hotelSearchService.ts - Traveler → Combined itinerary booking: books trip