How pastaisfine/jet2holiday works
jet2holiday is a collaborative, AI-assisted group travel planner. Travellers set preferences, swipe and vote on activities, review generated itinerary options, refine and confirm a shared plan, and can search travel options or coordinate trip tasks. The graph follows the routed screens into documented service and state layers, then shows the storage and routing dependencies visible in the supplied excerpts or SOURCE INDEX. README capabilities such as map and route planning and PDF export are retained where documented, but unsampled implementation links are not asserted.
Main entry points: App.jsx App routing · PlanScreen.jsx Plan editor · groupPlan.js Group planning · HubScreen.jsx Trip hub
Components 26
Traveller experience
- App routing
src/App.jsx - Trip setup
src/pages/SetupStep1Screen.jsx - Trip hub
src/pages/HubScreen.jsx - Task coordination
src/pages/TasksScreen.jsx - Travel search
src/pages/TravelSearchScreen.jsx
Group decisions
- Activity swipes
src/pages/SwipeScreen.jsx - Preference analysis
src/services/preference.js - Preference agent
supabase/functions/preference/index.ts - Invite links
src/lib/inviteLink.js - Activity catalog
src/data/cards.js
Itinerary planning
- Group planning
src/services/groupPlan.js - Plan editor
src/pages/PlanScreen.jsx - Plan collaboration
src/services/planCollaboration.js - Itinerary scheduler
src/lib/scheduler.js - Map and routing
src/services/mapbox.js - Place search
src/services/placesAutocomplete.js - Trip dates
src/utils/date.js
Services and state
- Trip service
src/services/tripService.js - Trip state
src/state/useAppState.js - Authentication
src/context/AuthContext.jsx - Supabase
src/lib/supabase.js - Task agent
src/services/taskAgent.js - Search service
src/services/travelSearch.js - Travel options
src/data/travel.js
Other components
- Traveller
- Travel providers
Connections 34
- Traveller → App routing: uses
- App routing → Trip hub: routes to
src/App.jsx - App routing → Trip setup: routes to
src/App.jsx - App routing → Activity swipes: routes to
src/App.jsx - App routing → Plan editor: routes to
src/App.jsx - App routing → Task coordination: routes to
src/App.jsx - App routing → Travel search: routes to
src/App.jsx - App routing → Authentication: provides auth
src/App.jsx - App routing → Trip state: creates state
src/App.jsx - Trip hub → Trip service: loads trip data
src/pages/HubScreen.jsx - Trip hub → Preference analysis: requests analysis
src/pages/HubScreen.jsx - Trip hub → Group planning: requests planning
src/pages/HubScreen.jsx - Activity swipes → Preference analysis: requests analysis
src/pages/SwipeScreen.jsx - Activity swipes → Activity catalog: uses activities
src/pages/SwipeScreen.jsx - Activity swipes → Trip service: loads trip data
src/pages/SwipeScreen.jsx - Preference analysis → Supabase: reads and writes
src/services/preference.js - Group planning → Supabase: reads and writes
src/services/groupPlan.js - Group planning → Itinerary scheduler: uses scheduling
src/services/groupPlan.js - Group planning → Map and routing: uses routing
src/services/groupPlan.js - Plan editor → Group planning: reroutes and saves
src/pages/PlanScreen.jsx - Plan editor → Plan collaboration: updates suggestions
src/pages/PlanScreen.jsx - Plan editor → Place search: searches places
src/pages/PlanScreen.jsx - Plan editor → Trip dates: parses dates
src/pages/PlanScreen.jsx - Plan editor → Trip service: loads trip data
src/pages/PlanScreen.jsx - Trip service → Supabase: reads and writes
src/services/tripService.js - Trip state → Activity catalog: loads catalog
src/state/useAppState.js - Trip state → Task coordination: loads tasks
src/state/useAppState.js - Task coordination → Task agent: parses requests
src/pages/TasksScreen.jsx - Task coordination → Trip state: updates tasks
- Travel search → Search service: searches options
src/pages/TravelSearchScreen.jsx - Search service → Travel options: uses fallback data
src/services/travelSearch.js - Search service → Travel providers: queries providers
- Traveller → Invite links: shares invites
- Preference analysis → Preference agent: invokes agent