Problem 1 - Pill invisible due to missing Tailwind shades:
tailwind.config.js only defined primary-50/100/500/600/700/900.
The pill used border-primary-300 and hover:border-primary-500 which are
defined, but border-primary-200 was missing (used on container). Adding
primary-200 (#bfdbfe), primary-300 (#93c5fd), primary-400 (#60a5fa).
Problem 2 - Pill hidden on mobile (Results panel):
After itinerary loads, mobilePanel switches to 'results', so ChatPanel
(and anything inside it) is display:none. Pill was rendered inside
ChatPanel's scroll area so mobile users on the Results panel never saw it.
Fix: Lifted the pill OUT of ChatPanel entirely and into App.tsx:
- Desktop: sticky bar at the bottom of the chat column (below ChatPanel,
above nothing — always visible in the left panel)
- Mobile: persistent strip above the bottom nav bar, rendered OUTSIDE
the chat/results panel switching logic so it is visible on EVERY panel
ChatPanel no longer owns the pill; onNew…
fix: block 'Who are you?' type questions; make plan-new-trip pill always visible
HolidayPilot
cac0ae1
Off-topic guard (App.tsx):
- Add NON_DESTINATION_WORDS set (question words, modal verbs, pronouns, common
English words like Who/What/How/Tell/Can/Are/I/You etc.)
- Capital-letter heuristic now only triggers on words NOT in NON_DESTINATION_WORDS
so 'Who are you?', 'Tell me a joke', 'Can you help me?', 'What is 2+2' are all
correctly blocked; proper nouns like 'Tokyo', 'Paris', 'Bordeaux' still pass
- 40/40 test cases pass
Plan-a-new-trip pill (ChatPanel.tsx):
- Move pill out of the scrollable messages area into a sticky bar between the
message list and the text input — it is now always visible when hasItinerary=true
regardless of scroll position or mobile/desktop layout
- Removed loading gate so it persists even while the user waits for a response
fix: 'test' blocked, plan-new-trip pill visible, Taiwan stays in Taiwan
HolidayPilot
aef6f8f
Off-topic guard (App.tsx):
- Add 200+ KNOWN_DESTINATIONS set so lowercase names like 'taiwan', 'bali',
'london' pass through without needing a capital letter
- Replace blanket <=4 words bypass with: check destinations list + capital-letter
heuristic; only passes if at least one word is a known destination or proper noun
- Fix CONVERSATIONAL_RE: removed '[a-z]+\s+\d+' (was matching 'testing 123');
added 'next/this month/week/year/summer/...' and 'in <month>' patterns
- Fix cook regex: 'cooking|baked?' -> 'cook(ing|ed)?' to also catch 'cook pasta'
- 29/29 test cases pass
Plan-a-new-trip button (ChatPanel.tsx):
- Move prominent pill INSIDE the message scroll area so it is visible immediately
after the itinerary loads, without requiring the user to find the form footer
- Add flex-shrink-0 to form to prevent layout compression on small screens
Taiwan boundary fix (cities.py):
- Use Overpass area() filter keyed on OSM relation/way ID instead of raw bbox
-- the bbox for Taiwan inc…
fix: allow single-word destinations (Taiwan, Bali etc) through off-topic guard
HolidayPilot
825487e
Short messages (<=4 words) with no explicit off-topic signal now pass through to
the backend instead of being blocked. Single destination names like 'Taiwan',
'Bali', 'South Korea' have no travel keyword but are clearly valid inputs in a
travel chatbot context. Off-topic keywords (bitcoin, netflix, etc.) are still
blocked even when short.
fix: off-topic guard now catches 'test' and all unrecognised input
HolidayPilot
ace3ca1
Changed isOffTopic() from opt-out (only blocking known bad patterns) to opt-in
(requiring known-good patterns) so anything without travel context is caught:
- TRAVEL_RE: add 'go to', 'want to go', 'like to go', 'backpacking', 'getaway',
'escape', 'wander', 'abroad', 'overseas', 'international', 'domestic'
- CONVERSATIONAL_RE: new regex covering yes/no/ok, budget amounts with currency
symbols ($1500, €500), 'around/about/roughly/approximately N ...' phrases,
time replies ('maybe next month', 'roughly 3 weeks'), greetings, traveler counts
- Default fallback changed to return true — anything not matching TRAVEL_RE or
CONVERSATIONAL_RE is treated as off-topic (catches 'test', gibberish, etc.)
- 26/26 test cases pass
feat: off-topic guard, new trip button
HolidayPilot
bd28a3d
App.tsx:
- Add isOffTopic() with TRAVEL_RE allowlist + OFF_TOPIC_RE blocklist; travel keywords always pass through, clearly unrelated topics (cooking, crypto, programming, sports, etc.) are answered locally with a polite redirect, no API call made
- Add handleNewTrip() that resets all state (messages, tripId, itinerary, budget, steps) back to initial
- Header shows 'New Trip' button next to 'Export PDF' when itinerary is active
ChatPanel.tsx:
- Accept onNewTrip and hasItinerary props
- Render '✦ Plan a new trip' pill button above the input bar when an itinerary is active
fix: duplicate day title prefix, map resets on new search
HolidayPilot
79fe0aa
ItineraryView: day.title already contains 'Day N — ...' prefix from backend (calendar.py:493),
so only render day.title directly instead of prepending 'Day {day.day} — ' again.
App.tsx: key={itinerary.trip_id} didn't change between searches in same session.
Add mapKey counter (incremented each time a new itinerary arrives) and pass it as
a prop through ResultsPanel to force Leaflet DOM remount on every new search.
flights.py:
- Add CHC (Christchurch), WLG (Wellington), ZQN (Queenstown), BNE/PER/ADL (AU) airports
- Add _COUNTRY_GATEWAYS dict mapping country names → primary airport (handles 'New Zealand' → AKL, 'Australia' → SYD, etc.)
- Rewrite _find_airport_by_city: exact IATA → exact city → partial match → country gateway fallback
App.tsx:
- Hamburger dropdown now uses fixed positioning (useRef to calculate top from button's BoundingClientRect) so it is never clipped by any overflow:hidden ancestor
- Remove overflow:hidden from mobile wrapper divs (was causing dropdown to be invisible)
- Add semi-transparent backdrop to close the dropdown on outside tap
fix: hamburger menu, location links always visible, ResultsPanel at module-level
HolidayPilot
bbd033c
- App.tsx: ResultsPanel is now a module-level component (prevents React unmounting/remounting on every state change); hamburger menu replaces scrollable tab bar on mobile — tapping shows a full-width drawer listing all 5 tabs with tick indicator; mobile panels are now hidden/shown via CSS (display:flex/none) so ResultsPanel state (open tab, scroll position) is preserved when switching Chat↔Results
- ItineraryView.tsx: location 📍 link is now shown regardless of whether start_time is set (previously it was buried inside start_time && ...); mapsUrl computed once using lat/lon when available, name-search fallback; touch target padded to min-h-[28px] for reliable mobile tapping
fix: map refresh, flight destination validation, mobile layout and location links
HolidayPilot
6c0c5f1
- MapView: add key={trip_id} to force full remount on new itinerary (fixes stale Leaflet container)
- flights.py: use IATA codes in Google Flights booking URL; improve _find_airport_by_city to strip country suffixes and do exact-before-partial matching
- App.tsx: full mobile-responsive layout with bottom nav (Chat/Results panels), auto-switch to results on mobile when itinerary arrives, scrollable tabs
- ItineraryView.tsx: make 📍 location text a clickable Google Maps link (lat/lon-based when available, name-based fallback)
Fix map: bundle Leaflet via npm instead of CDN, add invalidateSize
Heng
fd80f28
Multi-city touring route with local city names and route map
Heng
b01eb66
- Add city discovery service (finds major cities in destination via OSM)
- Activities/food/hotels agents search each city separately
- Calendar assigns days to cities with nearest-neighbor routing
- Day titles show local city name (e.g. 'Exploring Tokyo' not 'Japan')
- Each itinerary item displays its city location
- Travel items added between cities with distance/time estimates
- Hotels selected per city (best rated in each)
- Leaflet map tab showing numbered city markers and route polyline
- Google Maps directions link for the full touring route
- City route summary banner on map page
Fix regenerate button, budget display, PDF export, weather tab
Heng
d265153
- Regenerate: add error feedback instead of silent catch
- Route agent: handle regeneration context (no 'gathered' key)
- Budget: remove 'within budget' meter, show per-person cost breakdown
- PDF: fix day.items Jinja2 resolution bug (dict.items method conflict)
- PDF: fix traveler count to use num_adults + num_children
- Weather tab: render forecasts from itinerary day data
- Schema: add cost_per_person and num_travelers to BudgetBreakdown
Fix: travelers question, clickable items, day-only regenerate, PDF download
Heng
b77bf10
- num_adults defaults to None so planner asks how many people
- Bare number (1-20) sets num_adults when field is missing
- Itinerary item titles are clickable Google Maps links (blue with arrow)
- Regenerate only rebuilds targeted day, keeps all other days intact
- Download button exports PDF (was HTML), only shown when itinerary exists
- Regenerate button shows loading state while processing
Remove budget question, add Google Maps links to itinerary items, fix regenerate button
Heng
6af5d9b
- Remove budget_total from required planner fields; cost breakdown shown after generation
- Pass booking_url through calendar agent to ItineraryItem for activities and restaurants
- Add booking_url to frontend ItineraryItem type and render as clickable Google Maps link
- Fix regenerate button: pass onItineraryUpdated callback so optimize response updates state
- Update tests to match new flow (budget no longer required)
Fix: all days planned, origin/travelers questions, bare budget numbers, food with Google Maps links
Heng
8e45b1e
Fix: DatePicker cross-month date selection
Heng
8cee1d6
Add calendar date picker for travel date selection
Heng
3ce8bd4
HolidayPilot: multi-agent holiday planner with real live APIs
Heng
dd75a48
- 10 specialized agents: planner, flights, hotels, activities, food, weather, route, budget, calendar, monitoring
- Real APIs: Nominatim (geocoding), Open-Meteo (weather), Overpass/OSM (POIs, restaurants, hotels), OSRM (routing)
- Flight estimation with 75+ real airports and Google Flights booking links
- React + Vite + TypeScript + Tailwind CSS frontend
- FastAPI + Pydantic v2 backend
- Docker deployment (HuggingFace Spaces compatible)
- 18/18 tests passing with live API data