How krishna-prasad-ceo/travellimitexceeded works
Purpose and Scope
Travel Limit Exceeded (TLE) is a React single-page travel-planning frontend. It supports AI-assisted itinerary creation from free-form prompts or photos, trip discovery, trip detail/planning views, and collaborative participation workflows. This branch contains the Vite frontend; the Spring Boot backend described in the README is not present in this tree.
Application Bootstrap and Navigation
The browser app mounts through index.tsx and is orchestrated by App.tsx. App.tsx is the primary client-side control boundary: it selects pages/views based on application state and coordinates shared navigation. The global navigation surface is implemented in components/Navbar.tsx; initial presentation and visual entry behavior are handled by components/IntroAnimation.tsx and components/Hero.tsx.
Authentication and Backend Boundary
Authentication and hosted data access are centered on Supabase via supabaseClient.ts. Login and registration are isolated UI entry points in components/LoginPage.tsx and components/RegisterPage.tsx. Supabase provides the frontend-facing boundary for Authentication, PostgreSQL-backed data, and realtime collaboration events; the separate Java/Spring backend is referenced by the README but absent from this checkout.
Trip Creation Paths
Trip creation has two AI-assisted inputs:
• Text-led planning: components/CreateTripPage.tsx gathers trip intent and routes into planning behavior exposed by components/TripPlanner.tsx.
• Image-led planning: components/PhotoToTrip.tsx accepts travel imagery and turns it into a draft trip concept.
Both rely on geminiService.ts, the integration boundary for Google Gemini. Generated results become editable structured itinerary data rather than final booking actions.
Itinerary and Trip Lifecycle
components/TripPlanner.tsx is the likely central editing workspace for refining AI-generated or manually created plans. components/ItineraryView.tsx renders the day-by-day itinerary representation, while components/TripDetailsPage.tsx provides the broader persisted-trip view. Shared domain shapes are defined in types.ts, which should remain the contract between UI state, Gemini output normalization, and Supabase/backend payloads.
Discovery, Ownership, and Collaboration
Trip discovery and personal trip management are separated into components/ExploreTripsPage.tsx and components/MyTripsPage.tsx. Collaboration is represented explicitly by components/TripParticipantsPage.tsx, where creator-controlled membership/join-request behavior belongs. Realtime updates from Supabase are architecturally important for reflecting participant and trip availability changes without polling.
Runtime and External Services
The frontend runs on React, TypeScript, and Vite, configured by package.json and vite.config.ts; production hosting is stated as Netlify. Visual interactions use Tailwind CSS plus GSAP, Framer Motion, and React Three Fiber/Drei per the README. External dependencies with material product impact are Supabase (auth, PostgreSQL, realtime), Google Gemini (text/image itinerary generation), and the separately maintained Java 17/Spring Boot service.
Main entry points: App.tsx App Controller · TripPlanner.tsx Trip Planner · supabaseClient.ts Supabase Client · TripDetailsPage.tsx Trip Details
Components 21
Client App
- Browser Bootstrap
index.tsx - App Controller · Selects active pages and coordinates shared navigation.
App.tsx - Global Navigation
components/Navbar.tsx - Intro Animation
components/IntroAnimation.tsx - Hero
components/Hero.tsx - Login
components/LoginPage.tsx - Registration
components/RegisterPage.tsx - Vite Runtime
vite.config.ts
Trip Experience
- Text Trip Creation
components/CreateTripPage.tsx - Photo Trip Creation
components/PhotoToTrip.tsx - Trip Planner · Refines generated or manually created trip plans.
components/TripPlanner.tsx - Itinerary View
components/ItineraryView.tsx - Trip Details
components/TripDetailsPage.tsx - Trip Discovery
components/ExploreTripsPage.tsx - My Trips
components/MyTripsPage.tsx - Participants · Manages membership and join requests.
components/TripParticipantsPage.tsx - Trip Domain Contract · Shared contract for UI state, generated plans, and persisted payloads.
types.ts
Service Boundaries
- Google Gemini · Generates text- and image-led itinerary drafts.
geminiService.ts - Supabase Client · Frontend boundary for authentication, data, and realtime subscriptions.
supabaseClient.ts - Supabase Platform
- External Spring Backend · Referenced by the README but absent from this checkout.
Connections 32
- Browser Bootstrap → App Controller: mounts
- Vite Runtime → Browser Bootstrap: serves
- App Controller → Global Navigation: renders
- App Controller → Intro Animation: renders
- App Controller → Hero: renders
- App Controller → Login: navigates to
- App Controller → Registration: navigates to
- App Controller → Text Trip Creation: navigates to
- App Controller → Photo Trip Creation: navigates to
- App Controller → Trip Discovery: navigates to
- App Controller → My Trips: navigates to
- Text Trip Creation → Trip Planner: starts planning
- Photo Trip Creation → Trip Planner: creates draft
- Text Trip Creation → Google Gemini: sends prompt
- Photo Trip Creation → Google Gemini: sends image
- Google Gemini → Trip Planner: returns itinerary draft
- Trip Planner → Itinerary View: renders plan
- Trip Planner → Trip Details: persists trip
- Trip Details → Participants: manages collaborators
- Trip Discovery → Trip Details: opens trip
- My Trips → Trip Details: opens owned trip
- Trip Planner → Trip Domain Contract: uses
- Google Gemini → Trip Domain Contract: normalizes to
- Trip Details → Trip Domain Contract: uses
- Login → Supabase Client: authenticates
- Registration → Supabase Client: registers
- Trip Planner → Supabase Client: stores trip
- Trip Discovery → Supabase Client: loads trips
- My Trips → Supabase Client: loads owned trips
- Participants → Supabase Client: membership and realtime
- Supabase Client → Supabase Platform: accesses
- Supabase Platform → Participants: realtime updates