How shiran009/travel-web works
Voyageur is a client-side travel discovery and trip-planning interface. Visitors search curated destinations, inspect trip details, create bookings or custom itineraries, then review and manage reservations; the app also presents flights, stays, travel essentials, wishlists, and reviews. The sampled sources show local UI state and browser storage rather than a backend or external booking service. The graph follows the app’s documented imports and sampled component behavior; some component wiring is supported by the SOURCE INDEX rather than complete source excerpts.
Main entry points: App.tsx App State & Routing · formatters.ts Pricing & Date Helpers · travelData.ts Travel Reference Data · travel.ts Travel Types
Components 20
Application Shell
- App State & Routing
src/App.tsx - Travel Types
src/types/travel.ts - Pricing & Date Helpers
src/utils/formatters.ts - Toast Notifications
src/components/Toast.tsx
Travel Discovery
- Navigation & Currency
src/components/Navbar.tsx - Search Controls
src/components/HeroSearch.tsx - Destination Results
src/components/DestinationsGrid.tsx - Destination Card
src/components/DestinationCard.tsx - Destination Details
src/components/DestinationDetailModal.tsx
Trip Planning
- Booking Flow
src/components/BookingModal.tsx - Booking Management
src/components/MyBookingsModal.tsx - Custom Itinerary
src/components/ItineraryBuilder.tsx - Stays & Flights
src/components/StaysAndFlights.tsx - Travel Essentials
src/components/TravelEssentialsModal.tsx - Wishlist
src/components/WishlistModal.tsx
Travel Content
- Curated Destinations
src/data/destinations.ts - Travel Reference Data
src/data/travelData.ts - Traveler Reviews
src/components/ReviewsSection.tsx - Footer
src/components/Footer.tsx
Other components
- Traveler
Connections 31
- Traveler → App State & Routing: uses
- App State & Routing → Navigation & Currency: renders
src/App.tsx - App State & Routing → Search Controls: renders
src/App.tsx - App State & Routing → Destination Results: renders
src/App.tsx - App State & Routing → Destination Details: renders
src/App.tsx - App State & Routing → Booking Flow: renders
src/App.tsx - App State & Routing → Booking Management: renders
src/App.tsx - App State & Routing → Custom Itinerary: renders
src/App.tsx - App State & Routing → Stays & Flights: renders
src/App.tsx - App State & Routing → Travel Essentials: renders
src/App.tsx - App State & Routing → Wishlist: renders
src/App.tsx - App State & Routing → Traveler Reviews: renders
src/App.tsx - App State & Routing → Footer: renders
src/App.tsx - App State & Routing → Toast Notifications: renders
src/App.tsx - App State & Routing → Curated Destinations: loads data
src/App.tsx - App State & Routing → Travel Reference Data: loads data
src/App.tsx - App State & Routing → Travel Types: uses types
src/App.tsx - App State & Routing → Pricing & Date Helpers: uses helpers
src/App.tsx - Destination Results → Destination Card: renders
src/components/DestinationsGrid.tsx - Destination Card → Pricing & Date Helpers: formats prices
src/components/DestinationCard.tsx - Destination Details → Pricing & Date Helpers: formats prices
src/components/DestinationDetailModal.tsx - Booking Flow → Pricing & Date Helpers: formats booking
src/components/BookingModal.tsx - Booking Flow → Curated Destinations: reads add-ons
src/components/BookingModal.tsx - Booking Management → Pricing & Date Helpers: formats dates
src/components/MyBookingsModal.tsx - Custom Itinerary → Travel Reference Data: loads activities
src/components/ItineraryBuilder.tsx - Custom Itinerary → Pricing & Date Helpers: formats plan
src/components/ItineraryBuilder.tsx - Stays & Flights → Travel Reference Data: loads options
src/components/StaysAndFlights.tsx - Travel Essentials → Travel Reference Data: loads guidance
src/components/TravelEssentialsModal.tsx - Traveler Reviews → Travel Types: uses review type
src/components/ReviewsSection.tsx - Curated Destinations → Travel Types: uses types
src/data/destinations.ts - Travel Reference Data → Travel Types: uses types
src/data/travelData.ts