The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
fix(tours): export only what is imported, and keep the planner page at its size
Maurice75d8351fecfd
diff --git a/client/src/components/Tours/library/TourLibraryDialog.tsx b/client/src/components/Tours/library/TourLibraryDialog.tsxindex 58030fed7..59e04d8f6 100644--- a/client/src/components/Tours/library/TourLibraryDialog.tsx+++ b/client/src/components/Tours/library/TourLibraryDialog.tsx@@ -267,7 +267,7 @@ function Preview({ library }: { library: TourLibrary }) {* list on the left, the chosen tour on the right; the copy is made only by the* button in its foot.*/-export function TourLibraryDialog({ library }: { library: TourLibrary }) {+function TourLibraryDialog({ library }: { library: TourLibrary }) {const { t } = useTranslation();const labelId = useId();if (!library.open) return null;diff --git a/client/src/components/Tours/planner/tourPlannerFacts.ts b/client/src/components/Tours/planner/tourPlannerFacts.tsindex 88ab2bdc0..e9dbc01e1 100644--- a/client/src/components/Tours/planner/tourPlannerFacts.ts+++ b/client/src/components/Tours/planner/tourPlannerFacts.ts@@ -116,5 +116,3 @@ export function tourPlannerFacts(input: TourPlannerFactsInput) {},};}--export type TourPlannerFacts = ReturnType<typeof tourPlannerFacts>;diff --git a/client/src/components/Tours/planner/useTourRevisionGuard.ts b/client/src/components/Tours/planner/useTourRevisionGuard.tsindex 45e91ec64..8a679c9cc 100644--- a/client/src/components/Tours/planner/useTourRevisionGuard.ts+++ b/client/src/components/Tours/planner/useTourRevisionGuard.ts@@ -66,5 +66,3 @@ export function useTourRevisionGuard(initial: number | null = null) {return { base, baseRef, conflict, remote, adopt, notice, refuse, takeOver, dismissConflict, dismissRemote };}--export type TourRevisionGuard = ReturnType<typeof useTourRevisionGuard>;diff --git a/client/src/components/Tours/poi/useTourPoiSearch.ts b/client/src/components/Tours/poi/useTourPoiSearch.tsindex 1d233e4ea..0a0ccf1cb 100644--- a/client/src/components/Tours/poi/useTourPoiSearch.ts+++ b/client/src/components/Tours/poi/useTourPoiSearch.ts@@ -16,7 +16,7 @@ import type { TourPlannerController } from '../planner/useTourPlanner';/** What is ticked when a type is searched for the first time: the three most asked. */const STARTING_CATEGORIES = (type: PlannableTourType) => TOUR_POI_CATEGORIES_BY_TYPE[type].slice(0, 3);-export const DEFAULT_CORRIDOR_M = 500;+const DEFAULT_CORRIDOR_M = 500;type SearchStatus = 'idle' | 'loading' | 'ready' | 'error' | 'offline';diff --git a/client/src/pages/TripPlannerPage.tsx b/client/src/pages/TripPlannerPage.tsxindex c78dc6cbb..bdbac0f3a 100644--- a/client/src/pages/TripPlannerPage.tsx+++ b/client/src/pages/TripPlannerPage.tsx@@ -681,8 +681,7 @@ function TripPlannerPageDesktop(): React.ReactElement | null {canEdit={canPlaceEdit}canAssign={canDayEdit}tours={tours}- days={days}- loading={toursLoading}+ days={days} loading={toursLoading}onAssignToDay={(placeId, dayId) => handleAssignToDay(placeId, dayId)}onDeleteTour={handleDeleteTour}gpxImport={tourGpxImport}diff --git a/server/src/nest/tours/tour-gpx-export.service.ts b/server/src/nest/tours/tour-gpx-export.service.tsindex f06a36917..b33ab328e 100644--- a/server/src/nest/tours/tour-gpx-export.service.ts+++ b/server/src/nest/tours/tour-gpx-export.service.ts@@ -19,7 +19,7 @@ const PADDLE_ACTIVITY: Record<PaddleBoatType, string> = {other: 'paddling',};-export function gpxActivityOf(type: string, boat: string | null): string {+function gpxActivityOf(type: string, boat: string | null): string {if (type === 'kayak') return PADDLE_ACTIVITY[(boat ?? 'other') as PaddleBoatType] ?? PADDLE_ACTIVITY.other;return type === 'hike' ? 'hiking' : type;}