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(ci): list the packing share pair, and read a stored costs mode through its enum
Mauricec2c0535d52ba
diff --git a/client/scripts/feature-pairs.json b/client/scripts/feature-pairs.jsonindex ab047accc..9d29fe857 100644--- a/client/scripts/feature-pairs.json+++ b/client/scripts/feature-pairs.json@@ -578,6 +578,12 @@"desktop": ["src/components/Packing/usePackingListPanel.ts"],"mobile": ["src/mobile/screens/trip/tabs/MPackingListTab.tsx"]},+ {+ "feature": "Packing list: sharing of a whole list",+ "hooks": ["src/components/Packing/usePackingCategorySharing.ts"],+ "desktop": ["src/components/Packing/usePackingListPanel.ts"],+ "mobile": ["src/mobile/screens/trip/tabs/MPackingListTab.tsx"]+ },{"feature": "Packing list: usePackingImport","hooks": ["src/components/Packing/usePackingImport.ts"],@@ -1087,6 +1093,7 @@"src/mobile/screens/trip/tabs/MCollabTab.tsx": "Phone collab sub tab router that reuses the desktop CollabLinks component.","src/mobile/screens/trip/tabs/MFilesBoard.tsx": "Markup only; the trip's files as tiles and the picked file's preview on a wide window, with the files and their actions handed in through props from MFilesTab.","src/mobile/screens/trip/tabs/MListsTab.tsx": "Phone router between the packing and to-do bodies, with no logic of its own.",+ "src/mobile/screens/trip/tabs/MPackingCategorySharingSheet.tsx": "Markup only; the sheet that shares a whole list, with its state from usePackingCategorySharing handed in through props by MPackingListTab.","src/mobile/screens/trip/tabs/MReceiptScanButton.tsx": "Already shares useReceiptScan and ReceiptScanModal with the desktop CostsPanel.","src/mobile/screens/trip/tabs/MReservationCardParts.tsx": "Markup only: the title, actions, date, files and delete sheet parts both phone booking tabs draw.","src/mobile/screens/trip/tabs/MTodoSidebar.tsx": "Markup only; the to-do filters as a pane beside the tasks on a wide window, with the filter state and the counts handed in through props from useTodoView.",diff --git a/server/src/nest/trips/trips.service.ts b/server/src/nest/trips/trips.service.tsindex fd601009b..a2050154a 100644--- a/server/src/nest/trips/trips.service.ts+++ b/server/src/nest/trips/trips.service.ts@@ -1,6 +1,6 @@import { Injectable } from '@nestjs/common';import { EntityManager } from '@mikro-orm/core';-import { Trips } from '../../db/entities/Trips.entity';+import { Trips, TripsCostsMode } from '../../db/entities/Trips.entity';import { Days } from '../../db/entities/Days.entity';import { JourneyEntries } from '../../db/entities/JourneyEntries.entity';import { Users } from '../../db/entities/Users.entity';@@ -34,7 +34,6 @@ import {type DayGridRemoval,type TrekWsPayload,type TrekWsTripEventName,- type TripCostsMode,type TripUpdateRequest,} from '@trek/shared';import { RealtimeService } from '../realtime/realtime.service';@@ -474,8 +473,9 @@ export class TripsService {const newCurrency = currency || trip.currency;const newArchived = is_archived !== undefined ? (is_archived ? 1 : 0) : trip.is_archived;const newCover = cover_image !== undefined ? cover_image : trip.cover_image;- // The column's CHECK holds a stored trip to the two modes.- const newCostsMode = costs_mode ?? (trip.costs_mode as TripCostsMode);+ // A stored trip is read as one of the two modes the column allows.+ const storedCostsMode = trip.costs_mode === TripsCostsMode.TOTALS ? TripsCostsMode.TOTALS : TripsCostsMode.SPLIT;+ const newCostsMode = costs_mode ?? storedCostsMode;const oldReminder = (trip as any).reminder_days ?? 3;const newReminder = reminder_days !== undefined? (Number(reminder_days) >= 0 && Number(reminder_days) <= 30 ? Number(reminder_days) : oldReminder)