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
import type { Reservation, TripFile } from '../types';
/** A booking's files: the ones uploaded to it and the ones linked to it, trashed files left out. */
export function filesFor(r: Pick<Reservation, 'id'>, files: TripFile[]): TripFile[] {
return files.filter(
(f) => !f.deleted_at && (f.reservation_id === r.id || (f.linked_reservation_ids || []).includes(r.id))
);
}