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(map): support multi-category filter on map view
jubnl1d9a6acc01af
diff --git a/client/src/components/Planner/PlacesSidebar.tsx b/client/src/components/Planner/PlacesSidebar.tsxindex bc959f0d4..d9534bd39 100644--- a/client/src/components/Planner/PlacesSidebar.tsx+++ b/client/src/components/Planner/PlacesSidebar.tsx@@ -28,7 +28,7 @@ interface PlacesSidebarProps {onDeletePlace: (placeId: number) => voiddays: Day[]isMobile: boolean- onCategoryFilterChange?: (categoryId: string) => void+ onCategoryFilterChange?: (categoryIds: Set<string>) => voidonPlacesFilterChange?: (filter: string) => voidpushUndo?: (label: string, undoFn: () => Promise<void> | void) => void}@@ -105,8 +105,7 @@ const PlacesSidebar = React.memo(function PlacesSidebar({setCategoryFiltersLocal(prev => {const next = new Set(prev)if (next.has(catId)) next.delete(catId); else next.add(catId)- // Notify parent with first selected or empty- onCategoryFilterChange?.(next.size === 1 ? [...next][0] : '')+ onCategoryFilterChange?.(next)return next})}@@ -257,7 +256,7 @@ const PlacesSidebar = React.memo(function PlacesSidebar({)})}{categoryFilters.size > 0 && (- <button onClick={() => { setCategoryFiltersLocal(new Set()); onCategoryFilterChange?.('') }} style={{+ <button onClick={() => { setCategoryFiltersLocal(new Set()); onCategoryFilterChange?.(new Set()) }} style={{display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 4,width: '100%', padding: '6px 10px', borderRadius: 6, border: 'none', cursor: 'pointer',background: 'transparent', fontFamily: 'inherit', fontSize: 11, color: 'var(--text-faint)',diff --git a/client/src/pages/TripPlannerPage.tsx b/client/src/pages/TripPlannerPage.tsxindex e519243ee..069fce146 100644--- a/client/src/pages/TripPlannerPage.tsx+++ b/client/src/pages/TripPlannerPage.tsx@@ -206,7 +206,7 @@ export default function TripPlannerPage(): React.ReactElement | null {useTripWebSocket(tripId)- const [mapCategoryFilter, setMapCategoryFilter] = useState<string>('')+ const [mapCategoryFilter, setMapCategoryFilter] = useState<Set<string>>(new Set())const [mapPlacesFilter, setMapPlacesFilter] = useState<string>('all')const [expandedDayIds, setExpandedDayIds] = useState<Set<number> | null>(null)@@ -239,7 +239,7 @@ export default function TripPlannerPage(): React.ReactElement | null {return places.filter(p => {if (!p.lat || !p.lng) return false- if (mapCategoryFilter && String(p.category_id) !== String(mapCategoryFilter)) return false+ if (mapCategoryFilter.size > 0 && !mapCategoryFilter.has(String(p.category_id))) return falseif (hiddenPlaceIds.has(p.id)) return falseif (plannedIds && plannedIds.has(p.id)) return falsereturn true