Scout — Full Product Context → feature documentation

Trips

Trips asks "What kind of trip?" and answers it three ways (plan my day, just drive, collect nearby), with a Trip Calendar and trip reminders. Trip boards you plan with friends, and on top of them public trips and Discover, checked opening hours and Before you go, and a trip recap, are built but every one sits behind a flag that is off.

Written from code on feat/trips-feature-module, 2026-11-12; Trips Next phases 3 to 6 added from code on 2026-11-27; brought up to the 2026-11-29 design fixes (the boards home, cards, Where to?, the board, Plan together, On the day and the phase screens) from code the same day. Mobile paths are relative to mobile/, backend paths to backend/, web paths to trips-web/. This one doc replaces three: the shipped Trips (formerly trips-v2.md), trip boards (formerly this file), and what was still live of the legacy path (formerly trips-and-driving.md). How the code is laid out is in the module's README. The web road trip planner at scout-patches.com/trips has its own doc, road-trip-planner; boards' web pages are described here because they share boards' data and API.

Design sources: specs/2026-10-06-unified-trips-design.md, specs/2026-10-06-trip-calendar-design.md, specs/2026-11-04-trips-next-design.md (Trips Next: boards and planning §6.1 to 6.4, then social §6.3, checked facts §6.6, notification buttons §6.7 and the recap §6.8). Plans: plans/2026-10-06-unified-trips.md, plans/2026-11-04-trips-boards-phase-1.md, plans/2026-11-05-trips-planner-phase-2.md, plans/2026-11-12-trips-feature-module.md.

Summary

Trips is one screen with one question: "What kind of trip?". There are always the same three answers, and each opens a map:

Starting any of them makes it the live trip, and Trips then opens on it: On the day for a planned trip, or the drive itself. Every live screen has Route in Maps, which hands the remaining stops, in order, to your maps app as one route. A planned trip sends a leave-by reminder 10 minutes before it is time to leave each stop. The Trip Calendar plans any upcoming day at a time you choose, with the same planner.

Trip boards are built and hidden behind trips_boards (default off). A board is a trip you plan with friends: a title, a cover and an ordered set of pins (patches, places of your own and notes), shared by invite link, which can be turned into a multi-day route on Scout's road router, edited day by day, and started one day at a time as a live trip. No user can reach any of it today.

On top of boards, the later Trips Next phases are built, each behind its own flag and trips_boards, all off:

None of this is reachable by any user today.

Navigate in Scout (a turn-by-turn drive to one patch, from the patch's ⋯ sheet) shares Trips' routing backend but is not a trip and is not in this module; it is described here because no other doc states it.

Status

Shipped, no flag. Trips is the drawer's single Trips row (src/components/navigation/drawerSections.ts:317). /trips shows the question, or the live trip when one is live (src/features/trips/screens/home/TripsRoute.tsx:60-72). The trips_v2 flag that used to choose between this and the legacy path was deleted from both registries on 2026-11-12.

User-facing surfaces

Surface Route / deep link File
The question /trips (scout://trips) with nothing live; /trips-question too. With trips_boards on (it ships off), only /trips-question, which nothing in the app links to src/features/trips/screens/home/TripsHome.tsx:304
Plan my day /trip-plan (scout://trip-plan) src/features/trips/screens/plan-my-day/TripPlanScreen.tsx:546
Just drive /trip-drive; also /trips while a drive is live src/features/trips/screens/drive/TripDriveScreen.tsx:422
Collect nearby /trip-collect src/features/trips/screens/collect/TripCollectScreen.tsx:241
On the day /trips while a planned or Collect nearby trip is live src/features/trips/screens/home/TripLive.tsx:419
Trip Calendar /trip-calendar, from the Calendar pill on the question (Calendar · N, N upcoming planned days) src/features/trips/screens/calendar/TripCalendarScreen.tsx:387, pill at TripsHome.tsx:264
A day's sheet ("Sunday, what kind of day?") /trip-day?date=YYYY-MM-DD, a sheet over the calendar src/features/trips/screens/day/TripDayScreen.tsx:547
Plan my day, date mode /trip-plan?date=…&leave=… (+ From, kind, tripId): Save to <Day>; Delete and Re-plan on a saved day TripPlanScreen.tsx
From the web A section above "What kind of trip?", only with web_saved_trips on (off), signed in, with a saved road trip src/features/trips/components/v2/FromTheWebSection.tsx:14
Trip reminders switch Settings → Notifications → On this device app/notification-settings.tsx:557
Notification taps A tap on a leave-by or patch-ahead opens the trip. With trips_boards on (off), buttons: the patch-ahead's Add to today's route, Not today, Open in Maps; the leave-by's Open in Maps (see "Notification buttons" below) src/features/trips/logic/services/notificationActions.ts:39, notificationCategories.ts
Unlock toast (flag on) On the live Just drive and On the day screens: "South Dakota unlocked at the state line", "City Museum unlocked along the way" src/features/trips/components/v2/TripUnlockToast.tsx:27
Old links /trip-planner → /trip-plan; /road-planner, /trip-stops, /my-trips → /trips src/features/trips/screens/redirects/oldTripLinks.tsx
Navigate in Scout (shared, not Trips) /navigate/<patchId>, from a patch's ⋯ sheet app/navigate/[id].tsx

Trip boards add their own screens (all unreachable with the flag off); they are listed under "The app's board screens": the board and its tabs (Board · Route · Map · Crew), the boards home with Mine · Discover · Shared with you (your saved trips in Mine, your invitations in Shared with you), Plan together (who is on a trip, and what they changed), and the three phase screens /trip-details/[id] (trips_social), /trip-before-you-go/[id] (trips_facts) and /trip-recap/[id] (trips_recap).

Every Trips screen is a map with a panel under it (TripScreen, src/features/trips/components/v2/parts.tsx:395). The panel is not a bottom sheet: it is as tall as what it holds, up to half the screen, and scrolls past that; it cannot be dragged or dismissed; on Plan my day, On the day and Collect nearby a Stops button folds it down to its buttons and back. The map always frames above the panel. Patches use the compass screen's pin (PatchPinMedallion, parts.tsx:91) with the stop number or a collected tick on its corner. Each stop's unlock area is drawn under the route as a brass fill with a dashed edge, fetched per stop (useStopGeofences, src/hooks/useStopGeofences.ts:49), on Plan my day, On the day, Collect nearby and the saved and upcoming patches of Just drive. A stop with no boundary has none drawn.

Every older "plan a day trip" entry point (the Home card, the Build a day trip mission at scout://trip-planner) now lands on Plan my day through the redirect, and /trip-plan records the same opened_trip_planner feature event the old deck did (src/features/trips/screens/routes.tsx:28-31).

How it works

What /trips shows

TripsRoute (src/features/trips/screens/home/TripsRoute.tsx:25) picks, in order:

  1. a day trip live from before Trips v2 (no v2 block): a skeleton while it is adopted (:62-63, see Edge cases);
  2. a live drive: Just drive (:64-65);
  3. any other live trip: On the day (:66-67);
  4. with trips_boards on: the board grid (:68-69);
  5. otherwise the question (:70-71).

It also promotes today's planned day (promoteTodaysPlan) on open and on every return to the foreground (:45-51), and with boards on reads the board calendar when it takes focus (:56-59).

One plan object

Every screen reads a TripPlan built by schedule() (src/features/trips/logic/domain/plan.ts:120): ordered stops, the leg into each (walk or drive), minutes at each stop, and an arrival and leave time for each from a start time. Totals are the sums of the legs as shown (displayMiles, plan.ts:81), leave-by reminders come from it (leaveByTriggers, src/features/trips/logic/services/reminders.ts:42), and Route in Maps reads its remaining stops (routePoints, src/features/trips/logic/domain/trip.ts:145).

Plan my day

Legs

Starting a trip

On the day

Just drive

Notification buttons (behind trips_boards, off)

Trips Next §6.7, approved 2026-11-04. It supersedes the 2026-10-06 call that trip notifications carry no buttons.

Collect nearby

The question

Route in Maps and the maps app

Trip Calendar

Plans any upcoming day at a time you choose, with the same planner. No flag of its own.

From the web (saved road trips, flag off)

Road trips a member saved on the web planner, opened in the app as a Just drive. Behind web_saved_trips (off).

Navigate in Scout (shared, not Trips)

scout://navigate/<patchId> (app/navigate/[id].tsx), from a patch's ⋯ sheet: a throwaway drive to one patch with turn-by-turn, rerouting and the arrival unlock, on the shared drive map (src/components/drive-map/DestinationMap.tsx, TripMap.tsx, ManeuverBanner.tsx). It routes from your first fix, frozen. It saves nothing: no dayTrips entry, no sync, no share card, no trip achievement, and it ends when closed. The destination is always a patch with coordinates. It opens on its Start card ("Scout will route you to …", Start driving) and becomes the driving console when you tap Start, collect the patch, or move more than a quarter mile from where the route starts: the route begins at your own fix, so being on its road is no sign you have set off (isPreDrive startsAtYou, src/components/drive-map/preDrive.ts; until 2026-11-27 it opened mid-drive). Once you have moved off the start it stays the console for the session, even back within the quarter mile (a loop, or GPS jitter at the line): TripMap latches it into started. The Capture Studio drives it with ?sim=1&speed=. Rerouting is gated (src/utils/rerouteGate.ts:13-17): off-route past 0.15 mi, held for 20 s, at most one reroute per 60 s.

The trip maps' camera (TripMap, and the question's TripScreen in src/features/trips/components/v2/parts.tsx) is FieldGuideMap, whose re-frames (applySignal: the panel measuring itself, a recenter, a mode switch) wait for the map's onDidFinishLoadingMap and are caught if native refuses them (src/components/map/cameraCommands.ts). The trip-plan and trip-drive screens were where Sentry SCOUT-K ("Invalid reactTag N, could not find MLRNCamera") came from: the panel's first layout changed the camera in the same pass the map was created. See discovery-surfaces.

Hand-off to the platform maps app (openTurnByTurn, src/utils/maps.ts; the trip map's Directions and every other single-destination "Directions"): maps:?daddr= on iOS, a geo: intent on Android. Refused by the OS (Apple Maps deleted, restrictions, no app for geo:), it opens the maps page on the web instead; if that is refused too it says "Couldn't open Maps" with the coordinates (Sentry SCOUT-D, 2026-11-12). Multi-stop routes (openRouteIn, openRouteInMaps) are separate and unchanged. Covered by src/components/map/__tests__/cameraCommands.test.ts, screen-tests/components/field-guide-map-camera.test.tsx and src/utils/__tests__/openTurnByTurn.test.ts (native-only paths: the RN web E2E suite reaches neither).

Routing (shared by Trips, boards, Navigate and the web planner)

Trip sync

Trips sync for every signed-in account over the same POST /api/sync/push / GET /api/sync/user-data channel patches use, flat into trips / trip_patches (tripSync.ts; collectTripsForSync, tripsSlice.ts). Caps, mirrored client and server (tripSync.ts:121-123, backend/src/sync/dto/sync.dto.ts:87, :100): 250 trips per push, 500 stops per trip, 5,000 stops per push. The v2 block is local only and never sent. A planned day you made is pushed as soon as it is saved; a board-day mirror only once it has gone live (isUnstartedMirror, tripSync.ts:86).

Trip boards (built, behind trips_boards, off)

Everything in this section is unreachable while trips_boards is off, which it is. It is described so the code and its limits are on record.

What the flag gates

Boards, pins, members

A board is a title, a cover and an ordered set of pins: a patch from the catalog, a place of your own (a name and a point dropped on the map), or a note (up to 500 characters). You make one from the grid or straight from a patch with Save to a trip. You share it by invite link as an editor (can add and edit) or a viewer (can look). The owner chooses Only us (members) or Anyone with the link.

Backend, backend/src/trip-boards/:

Trips social on the server (trips_social, off; backend/src/trip-social/)

Spec §6.3 and §6.4. Every route is behind TripsSocialFlagGuard first (trips_social AND trips_boards), so with either off none of this exists. The app's and the web's screens are described under "The app's board screens" and "Boards on the web".

Planning: from a board to days (backend/src/trip-boards/plan.service.ts)

POST :id/plan ("Turn into a route") and POST where-to run the same steps. Every router call comes first and none happens inside the write's transaction, so a failure before the write leaves the board as it was.

  1. Read the visible patch and place pins. Notes stay ideas; a hidden patch, or one at exactly 0,0, stays off the plan. Over 100 places is 400 too_many_stops (plan.service.ts:265) before any route is spent.
  2. Order with drivingCosts (the road matrix up to 20 points, else a highway estimate) and orderStops, from from to to, or wherever is cheapest with no to. The matrix snaps pins to residential-or-better roads, never a track (a backcountry-track snap once ordered Denver + the Utah Mighty 5 backwards).
  3. Walk the trip (planner/arrival.ts): consecutive pairs are warmed into the route cache at most 3 at once, then routed one leg at a time, each starting where the last arrived, to where the road enters each park (below).
  4. Failures. A router that is down on any pair still to route is 502 route_unavailable and nothing is written, so an existing plan stays as it was. Only a 400 or 404 is a refusal. If every pair is refused, also 502; if some are, see "a place with no road". A plan gives up after 240 s (PLAN_BUDGET_MS, :50) with the same 502; finished routes stay cached, so a retry picks up where it stopped.
  5. Split into days (planner/split.ts): by dayCount, else about six hours of driving a day (TARGET_DAY_MIN, split.ts:2), at most 30 days.
  6. Overnights: a day ending on a stop has none. A day cut mid-leg goes by time along the leg's stored steps to the nearest Census place ("Grand Junction, CO"), or "Stop near mile N" with no town in a 2-degree box.
  7. Compose each day from the pairs just routed (RoutingService.compose, routing.service.ts:141), with no whole-day router call, so a long day can't time out with every leg in hand.
  8. Fill (fill: true, the default on where-to only): along each day, up to 3 patch stops per day (FILL_PER_DAY, :35), the patch nearest the road in each third of the day, within the detour, not held by the caller, not pinned, not collected by passing through (NO_STOP_NEEDED_TYPES, planner/stop-types.ts: state, national_forest, forest, street, nps_parkway, river), not a city, never at the day's ends and never past the 200-pin cap. Each goes where it adds least, and every day is routed again.
  9. Write, in one transaction under lockPins, re-reading pins first. replace: true deletes the old days (pins stay; a stop's atMin / dwellMin go with its day); without it, existing days are 409 plan_exists. Dates are startDate + index on the strings.

Routing to where the road enters a park. Crossing a patch's boundary is what unlocks it, and pins sit deep in big parks (measured: Moab to Canyonlands' pin 521 min, to its boundary 154). So a stop whose patch has a polygon is routed to the road's first entry into it. The pin is used when the previous point is already inside, when the entry is within 1 mile of the pin (ENTRY_NEAR_PIN_MI, arrival.ts:12), or with no polygon; polygons are repaired with ST_MakeValid first. If the router refuses the pin, it aims for the polygon's nearest point. The arrival is stored per stop (trip_board_days.arrivals); a stop's lat / lng stay the pin.

A place with no road (an island): a refused leg counts as a highway estimate, is never cut for an overnight, and its day has no route, reads stale and carries routeRefused: true until its stops or start change, or POST days/:dayId/route asks again.

Endpoints. from.current: true stores fromIsCurrent and labels the start with the nearest town. to: { patchId } pins that patch if needed. A board migrated from a saved web route (legacySlug) can only be planned along its own endpoints: 409 legacy_endpoints { from, to }, which the app's form handles by locking From and To and offering Start a new trip (src/features/trips/components/plan/PlanForm.tsx:173, :288).

where-to does all of this for a new board, in one transaction with its creation, so a router failure leaves no board. It counts against the 100-trip cap. The title defaults to <from town> → <to>. No to is 400 nothing_to_plan. A retry is not a second trip: the same owner, from and to within 2 minutes returns the board already made (WHERE_TO_RETRY_MS, :42).

Rerouting (backend/src/trip-boards/day-route.service.ts)

Checked facts on each stop, and park entry (backend/src/trip-boards/stop-facts.ts)

The arrival check and Before you go (trips_facts, off; backend/src/trip-boards/facts/)

Spec §6.6, lab part 2. Behind trips_facts AND trips_boards (TripsFactsFlagGuard, first: either off, the routes don't exist; the app and the web hide everything and /trip-before-you-go/[id] redirects to /trips).

When a day reaches each stop (backend/src/trip-boards/day-schedule.ts)

What a day passes, a better road, what the trip earns

Three reads under /api/me/trip-boards/:id for any joined member. None is on a public route. A day not on the board is 404 day_gone.

Planning limits on routing

The app's board screens (flag on)

Route Screen Notes
/trips Board grid (src/features/trips/screens/home/TripBoardsHome.tsx:277, layout :199) + (new trip) in the top bar and one Where to? pill (:151), the grid's only way in to planning: Plan my day and Just drive are on Where to?'s own screen. Then Mine · Shared with you over a two-column masonry of cards, and "On this phone" (planned days you made, not board mirrors; a row opens the Trip Calendar). A card (components/boards/BoardCard.tsx:20) is the cover photo with its credit top right and a status badge over it (boardBadge, logic/domain/boardCard.ts:22): "Ideas · 7 pins" for a trip with no days, "Upcoming · May 13–17", "On now · May 13–17", "Done · 6 earned" (how many of its patches you hold), "No dates yet"; no badge at all from an older backend that sends no days. Up to four patch arts hang off the cover's bottom edge (only patches that have art), then the title and a meta line, "5 days · 7 patches", "4 patches" or "No pins yet" (boardMeta, :36), with the members' avatars on a shared trip (yours reads "You"). Mine ends with a dashed New trip tile (:161); with no trips at all it says "No trips yet. Start one, or save a place to a trip from any patch." with New trip. Signed out: "Sign in to make a trip and plan it with friends." (:216). Signed in while the session is still loading (a cold start) it shows the skeleton, never the sign-in prompt (logic/hooks/useTripsMember.ts). With trips_social on the tabs are Mine · Discover · Shared with you (:225; the flag going off mid-visit puts you back on Mine). Mine is one grid: your trips, then the trips you saved (newest save first, each with a gold Saved badge, opening Trip details), then the New trip tile (mineItems, :194); saved trips that fail to load say "Couldn't load the trips you saved." with Retry. Shared with you opens with your pending invitations (the Invitations row below), and its count includes them ("Shared with you · 3"); with invitations and nothing shared there is no "Trips friends invite you to show up here." line. Discover (src/features/trips/components/social/DiscoverTab.tsx:37): other people's public trips as cards (SocialTripCard.tsx:21: the cover with its credit and a saves badge, the first four patches' art, the title, and one meta line, "@author · 2 days · 5 patches · you have 3", the "you have" part only when you hold some) that open Trip details. Chips Near you (first, only with a fix: the store's last currentLocation, rounded to two decimals; the server keeps trips within 150 miles) · All · National parks · Weekend · Route 66 · Weird stuff · Cities · You have some already (only signed in). It opens on Near you when there is a fix and on All without one; opened on Near you with nothing near, it switches to All by itself (a chip you picked stays picked). Pages by the server's cursor with Show more; the boards skeleton while loading; "No public trips here yet." when empty; "Couldn't load trips." with Retry
/trips-question today's "What kind of trip?" (app/trips-question.tsx → TripsQuestionRoute, src/features/trips/screens/routes.tsx) Moved off /trips when the flag is on. Nothing in the app links to it (since 2026-11-29, when the grid's "Plan a day or drive" row was removed and Plan my day and Just drive moved to Where to?): it opens only by its address (scout://trips-question), or as the Back target of a plan, collect, drive or calendar screen with nothing behind it (backToQuestion). So with the flag on, Collect nearby and the question's Calendar pill have no door either; the Trip Calendar is reached only from an "On this phone" row, which shows only once a planned day exists. Leads with Back, not the drawer's Menu: the route is on the root stack, outside the drawer (TripsHome mount="stack"; a Menu there opened nothing until 2026-11-12). Opened by its own link, with nothing behind it, Back goes to /trips. It does not turn into a live trip the way /trips does, so a trip started from it (Plan → Start, Collect nearby → Go, Just drive, a From-the-web drive) goes to /trips to show it (src/features/trips/logic/hooks/useTripsNav.ts showLiveTrip, a dismissTo('/trips'); nothing to do when already on /trips). The same goes for Plan my day and Just drive started from Where to?. Only with the flag on. With it off (prod), Plan my day and Collect nearby are also opened from Home, Near Me, the Calendar and Trip Day, and Start/Go go back to where they were opened from, as before (showLiveTrip's flag-off fallback). The plan, collect, drive and calendar screens' Back, with nothing to go back to (a reload, a deep link), lands on the question's own address under the flag (backToQuestion). Until 2026-11-12 Start returned to /trips-question and the live trip stayed hidden underneath (found by trips.spec under --flag trips_boards=on)
/trip-board-new New trip sheet (src/features/trips/screens/board-new/TripBoardNewRoute.tsx:17) Title 1 to 120; a refused name says "That name can't be used", the cap "You've reached 100 trips", else "Couldn't create the trip. Try again." (createErrorCopy, src/features/trips/logic/hooks/useCreateTripBoard.ts:19)
/trip-board/[id] The board (src/features/trips/screens/board/TripBoardScreen.tsx:571) The cover photo edge to edge under the status bar, with its credit and the title on it, and an info line, "You and @jess · 7 pins · no dates yet" (or "Starts Thu, May 13"; "Just you" alone; crewLine, :72) beside the crew's avatars, which opens Plan together. Floating glass buttons: Back, + (editors, on the Board tab: add a patch, note or place), Share (a trip anyone with the link, or the public, can read shares its web page; a private one opens Plan together, where its invite link is made) and ⋯. Then Board · Route · Map · Crew. A patch pin (components/boards/PinCard.tsx) is its place photo with the patch art hanging off its edge, the name, and a byline, "You pinned · SD" (who pinned it, and the patch's state); a note is a paper card. An editor of a trip not yet routed gets one gold Turn into a route, with "Scout orders the 4 places into days. Notes stay on the board." under it (turnIntoRouteNote, :469). Crew is a disabled tab (a screen reader hears "Crew, coming soon"; Segments, :326) unless trips_social is on; with it on, Crew (components/boards/CrewTab.tsx:151, GET /api/me/trip-boards/:id/crew) is headed "Your crew on the Mighty 5" and lists the joined members, most patches first: each one's "held of total" on the trip's patches with a bar and, under it, the names of the patches they hold ("none yet"), and Leads on the one member strictly ahead (nobody on a tie; there is no role chip). Then a line per collection the trip finishes for everyone ("After this trip, both of you finish …"; none, no line) that says how many patches the trip covers for each ("The trip covers every patch each of you is missing: 2 for @jess, 4 for you."; with nobody missing any, "Every one of its N patches."), and who holds which patch (faded = still needs it); a skeleton while it loads, Retry on a failure, and a 404 forgets the trip like the outbox does (the board then says so). `?tab=route
/trip-where-to Where to? (src/features/trips/screens/where-to/WhereToScreen.tsx:26, form PlanForm.tsx:81) From is your fix, else a required search; To a town or patch (3 letters before the server is asked); then one row of chips for the optional start date, day count and detour, "Pick a date" (or the date), "Auto days" (or "2 days") and "Detour 30 min", each opening its control in a sheet (detour 5/15/30/45, default 30, DEFAULT_PLAN_DETOUR, PlanForm.tsx:41; the chips at :296). The call waits up to 280 s (PLAN_TIMEOUT_MS, src/features/trips/logic/api/tripPlan.ts:29) with a rotating waiting state. One call per destination and options; backing out leaves it running and a toast names the trip when it lands. Under the form, Or, no destination (WhereToScreen.tsx:59): Plan my day (opens Plan my day) and Just drive (starts the drive at once, as the question does; useChooseTrip, screens/home/TripsHome.tsx:95). Signed in while the session is still loading, the form's place is a skeleton
/trip-plan/[id] Turn into a route (src/features/trips/screens/board-plan/TripBoardPlanScreen.tsx:28) The places that will be routed, then the same form, with the date, days and detour as a column rather than chips. An existing route asks first ("Replace the route" / "Keep my route", PlanForm.tsx:323-325). Editors only
/trip-day-along/[id]?day= Along the day (src/features/trips/screens/along/AlongScreen.tsx:61) The dial over On the way, no stop needed ("The road runs through it. Unlocks as you drive."; a state says "Unlocks at the state line.") and Worth stopping ("+N min there and back"; Add queues the stop; "Added" only while it really is on that day). Viewers read, no Add
/trip-day-route/[id]?day= Two ways to drive it (src/features/trips/screens/day-route/TwoWaysScreen.tsx:60) Only for a day that was offered one. The map across the top, under a heading capsule, "Day 4 · Torrey to Bryce" (twoWaysHeading, :71): the day's stops and the patches the other road gains as pins, the other road solid and the fastest dotted (the fastest is still drawn when the other road can't be). In the sheet below, the other road (its name, miles and time, a "+3 patches" chip and a "+25 min" chip, and the gained patches as a stack of art) against Fastest. Take it adds each gained patch not already on a day as a stop; it does not save the road
/trip-board-place/[id] Drop a place (src/features/trips/screens/place/PlacePinScreen.tsx:27) A pin held at the map's centre; name it, Save. No place search
/trip-board-members/[id] Plan together (src/features/trips/screens/members/MembersScreen.tsx:501), the trip's title under the heading The people in one list: your own row reads "You"; the owner's second line says "Owner", with no chip; everyone else carries a Can edit / Can view chip, which the owner taps to change the role or remove them. Owner: WHO CAN SEE IT (Only us / Anyone with the link) and one invite action, a Can edit / Can view switch over Copy invite link ("Link copied"; there is no share sheet), which reuses the newest live link for that role made after the latest removal and mints one only when there is none (inviteUrlFor, :146); role changes and removal; everyone but the owner can Leave, and reads who can see it as words. ACTIVITY, for every member (ActivitySection, :383): the trip's latest 30 changes in words, "@jess added Goblin Valley State Park to day 3" with "2 h ago" (your own read "You"; logic/domain/activityLine.ts), "Nothing yet. What anyone adds or changes shows up here." when there are none, and "Couldn't load the activity. Tap to try again." on a failure. With trips_social off, Public and Invite by @handle are disabled "Coming soon" rows. With it on (VisibilitySection, :338): Public is the third visibility option, queued like the others, with "Public puts it on Discover, credited to you. Your start point is shown as the nearest town, never your address." under the switch; a trip a moderator removed is refused (409 removed) and the outbox toasts "This trip was removed by a moderator and can't be public." while the refetch puts the old choice back (outboxRunner.ts, REMOVED_NOT_PUBLIC_COPY). Invite by @handle, first on the screen (components/boards/InviteByHandle.tsx:59): a search field (it takes a whole derived handle, up to 64 letters plus the @, HANDLE_QUERY_MAX; under 3 letters a hint and no request; a pause before each search; 429 says "Too many searches, try again in a minute"; someone already on the trip is listed "On this trip" and can't be picked), Editor / Viewer, Invite (a direct POST; user_gone, already_member and trip_full each say why). A pending invite reads "Invited · hasn't opened it yet" with the invited role's chip, and Cancel for the owner (the same DELETE as a removal, cancelInvite, :230). A non-owner reads Public as "Public"
/trips (boards home, Shared with you) Invitations (components/boards/Invitations.tsx:66, trips_social on) My pending @handle invitations at the top of Shared with you, counted in its tab ("Shared with you · 1"; the home reads them from Mine too, for that count) (GET /api/me/trip-board-invitations; none, no section): the trip, who asked and as what, Accept (joins, then opens the board) and Decline (gone from the list). A trip that filled up says "This trip is full." and keeps the invitation; one the owner cancelled meanwhile leaves the list (useTripInvitations, logic/hooks/useTripInvitations.ts:29)
/trip-invite/[token] Invite (src/features/trips/screens/invite/InviteScreen.tsx:126) "@owner invited you", what you can do, Join trip. Signed out, sign-in comes back here (src/lib/auth-return-to.ts:19)
/trip-details/[id]?comment= Trip details (src/features/trips/screens/details/TripDetailsScreen.tsx:425), trips_social too: with either flag off it redirects to /trips (TripBoardsGate social, src/features/trips/screens/routes.tsx) Opened from a Discover or saved card, a trip notification (comment, mention, copy; ?comment=<id> washes that comment, it does not scroll to it) or its link. The hero is the catalog location photo of the first stop that has one (the details read carries no cover), edge to edge under the status bar with its credit and the title on it; Back, Share (the phone's share sheet with the trip's web page, scout-patches.com/trips/t/<id>, its title above the link) and, for anyone but the owner, ⋯ (Report trip, naming its author) float over it. Then @author (or "A Scout trip" when hidden), "N days · M patches · updated Oct 2", "Based on @author's trip" (opens the original while it is readable; "another scout's trip" when the original hides its author), the description, the stats strip (LIKES · SAVES · FINISHED · COMMENTS), the finishers' avatars ("+N more") over one sentence, "3 scouts collected every patch on this trip. You have 2 of 5." (the second part signed in only), Like, Save (both move at once and go back with "Couldn't save that. Try again." when refused), Copy (opens the new trip, /trip-board/<newId>; at the cap "You've reached 100 trips", else "Couldn't copy the trip. Try again.", copyErrorCopy, src/features/trips/logic/hooks/useTripSocial.ts:19), Open the board for a member, the days ("Day 1 · Tue, Nov 17" and their stops, each with its state and "you have it" on a patch you hold; a trip with no route lists its patches) and Comments · N, most liked first ("Top"), the first four then "See all N comments" (a ?comment= past the fourth opens them all). Comments are community's cards and composer (src/features/trips/components/social/TripComments.tsx:95, :201): one-level replies, likes, report / block / own delete on each comment's ⋯ (reported as post_comment), "At <stop>" over a tagged comment, Author and Finished it badges, stop chips over the composer (tap one to tag the comment, again to untag), and @-mentions from the thread plus people search (3+ letters of a handle). A 404 (private, removed, a blocked author either way) reads "This trip isn't available."; anything else "Couldn't load this trip." with Retry, including the route answering as absent (the server's trips_social off, isRouteAbsent), as on the Crew tab. Signed out (a guest; with no user at all the app sends every screen to the tutorial, and the link comes back here after sign-in, src/lib/auth-return-to.ts:25) it reads the same, without "You have"; Like, Save, Copy, a comment (its draft kept), a comment like and Report open sign-in that returns here
/trip-before-you-go/[id] Before you go (src/features/trips/screens/before-you-go/BeforeYouGoScreen.tsx) Behind trips_facts too (the gate's facts). The trip's list grouped Book ahead (switches for editors), Closures and alerts, Good to know, Not checked yet; each item names its stop and day (a park's NPS alerts, live for the whole trip, read "Zion · NPS alert"), with an icon for what it is about (tickets, parking, getting there, weather, rules, access, pets, food, what to bring, safety; itemIcon); the checked date and sources
/trip-recap/[id] Recap (src/features/trips/screens/recap/TripRecapScreen.tsx) Behind trips_recap too (the gate's recap, screens/routes.tsx:138-143). The route map, "Trip complete · May 13–17" or "So far", three numbers (patches, miles, states), collections completed, patches earned, Share the trip (the card) and, for the owner with trips_social on, Make it public. Opened from "See the recap" on an ended board or the one-time "Your trip's recap is ready" card on Trips (see "The trip recap")
/save-to-trip/[patchId] Save to a trip (src/features/trips/screens/save-to-trip/SaveToTripSheet.tsx:235) Your editable trips in one list, best fit first, each row its cover, its title and a second line: on the best fit "Suggested: 12 mi from Moab, already on it" (its Save chip gold), on the others the trip's status and company, "Upcoming · May 13–17 · with @jess", "Done · Oct 18", "Ideas · 3 pins" (tripStatusLine, screens/save-to-trip/tripStatusLine.ts:24; nothing from an older backend with nobody else on it). "New trip with <patch>" creates and pins in one step

Entry points into Save to a trip: the patch page's photo header (src/components/patch-detail-v3/PhotoHeader.tsx:202-203), the patch ⋯ menu (src/components/patches-v2/PatchActionSheet.tsx:113) and a long-press on a Near Me tile (app/(drawer)/near-me.tsx:217, :278). Save to a trip's order (src/features/trips/logic/domain/suggest.ts): editable boards only; first the board whose nearest pin is closest, within 150 straight-line miles (BEST_FIT_MAX_MI, :6); then by last updated; boards already holding the patch last, marked Saved. The best fit's line says why ("Suggested: 12 mi from Moab, already on it", suggest.ts:56). It makes one request (the trips list), whose cards carry each trip's days and dates for the status lines.

The Route tab (src/features/trips/components/plan/RouteTab.tsx:75, DayCard.tsx:71, GoalCard.tsx:12):

The Map tab (src/features/trips/components/plan/MapTab.tsx:54, MapSheet.tsx, TripMapView, components/v2/parts.tsx:129): the map across the top of the screen, with the trip's name in a heading capsule over it ("Denver → Zion · 5 days", mapHeading, TripBoardScreen.tsx:466), and a sheet over its foot holding the board's tabs, a chip per day ("Day 4 · Sun" on the day shown) and that day as the Route tab draws it, read-only, with Start day N (useDayStart.ts, the Route tab's own rule). One day at a time; the line is the day's route and each pin sits at the stop's own point (they differ for parks). Boards draw pinStyle="bare" pins; Trips' own screens keep the medallion. A day with no line says "No route line for this day yet." (MapTab.tsx:25).

Look. Board screens wear the app's shared parts: Scout.TopBar with glass icon buttons 16 below the safe area, flat brass AccentButton primaries, Scout.Card, Scout.Tabs, Scout.Toggle, Scout.Chip, Scout.Sheet, on the house black with no grid (src/features/trips/components/boards/parts.tsx). Since 2026-11-29 the board, Trip details, the Map tab, Two ways and the recap open edge to edge instead: a photo (TripPhotoHero) or a map from the top of the screen, under the status bar, with the glass buttons floating over it (TripPhotoTopBar), and on the map screens a black sheet over the map's foot (MapSheet). The boards home, Where to?, Along, Two ways, Before you go and the recap wait while a signed-in session is still loading (a cold start) rather than asking the member to sign in (useTripsMember, logic/hooks/useTripsMember.ts).

Offline edits through an outbox

Every board edit (pin add, edit, move or removal, rename, visibility, and stop and day-field edits) is an op in a persisted outbox (src/features/trips/logic/domain/tripBoardOutbox.ts), a pure reducer in the trips slice. Enqueueing edits the cached board or plan at once.

Board days on the Trip Calendar, and Start day N

The server (backend/src/trip-boards/trip-calendar.service.ts, GET /api/me/trip-boards/calendar?from=) answers the dated days, from the phone's local date on, of trips the caller has joined: { tripId, tripTitle, dayId, index, date, startMin, patchIds, origin, fromIsCurrent }. Hidden patches are left out; a day with no visible stop is not listed. Bounded to 120 days ahead, 40 days (CALENDAR_MAX_DAYS, :10) and 25 trips (:12). An unreal from is 400 bad_date (:44).

The phone (src/features/trips/logic/services/calendarMirror.ts) keeps each as a planned day in dayTrips, id board-day-<dayId> (mirrorId, calendar.ts:56), named "<trip> · Day N", leaving at the day's start or 9 AM (DEFAULT_LEAVE_MIN, calendar.ts:43). The existing calendar code then lists it, holds its patches, schedules its head-out reminder and promotes it on its date.

Start day N (startBoardDay, start.ts:153): a gold button under each day with a stop, for any role (nothing is written to the board). It starts the day now through startV2Trip with the day's patch stops in order, from the day's start (dayOriginOf, src/features/trips/logic/domain/dayOrigin.ts:27), saved under the mirror id so a day already on the calendar becomes that trip, and cancels its head-out reminder. Own places unlock nothing and are left out; a day with only own places does not start. The day already live offers Open the live trip; with another trip live it says "Another trip is on. End it to start this day." and refuses (busy, :165).

The trip recap (trips_recap, off; backend/src/trip-boards/recap/)

Spec §6.8 ("Recap when the last day ends or a live trip goes quiet for 24 h"). Behind trips_recap AND trips_boards, both off in both registries. The design is trips-next-lab part 5, "The recap when a trip ends", restyled to the app.

The server (GET /api/me/trip-boards/:id/recap?today=YYYY-MM-DD&tz=<IANA zone>, recap/trip-recap.controller.ts; TripsRecapFlagGuard first, so with either flag off the route answers Nest's unknown-route 404, then auth) answers any joined member (others: the bare 404) with their own recap, worked out on every read and stored nowhere (recap/trip-recap.service.ts):

The app's Recap screen (/trip-recap/[id], src/features/trips/screens/recap/TripRecapScreen.tsx, behind TripBoardsGate recap; either flag off redirects to /trips): the route on a map from the top of the screen (every day's stops as pins, the patches earned ticked, and the days' roads joined, from the cached plan; while the plan loads, a skeleton; no plan, no map), with Back (to the board when nothing is behind it) and Share floating over it, and a sheet over the map's foot holding "Trip complete · May 13–17" (or "So far · …" before the last day has passed, from the server's ended), the title, three numbers (patches, miles, states; no day count, which the dates already say; miles and states are left out when unknown, and states that couldn't be worked out say so), a card per collection completed (its art stacked, the patches this trip earned first, up to six; "<name> complete"; and a second line, "Finished on this trip.", "2 of its 3 on this trip." or "All three in one trip.", completedLine, components/recap/recapCopy.ts:40), the patches earned as a grid of art with no heading, or "No patches collected on this trip's stops during its dates." / the no-dates line, Share the trip, and for the owner with trips_social on and canMakePublic, Make it public (queued through the outbox as Plan together's visibility switch, kind: 'update'; then "Public. Listed on Discover."). The read sends the phone's date and zone (logic/queries/tripRecap.ts, deviceZone), sits under the board's query key (a board refresh re-reads it) and is persisted with the query cache. States: signed out, loading (the house skeleton; also while a signed-in session is still loading), offline with nothing saved, error with Retry.

The share card (components/recap/RecapShareCard.tsx): a 1080×1350 card drawn off-screen and captured by useShareCard (surface trip_recap), like the 50 States card: the wordmark, TRIP RECAP, the title and dates, up to 10 patch arts (+N), the completed collections, the numbers, and the sharer's invite code (InviteCodeLines: "Scout · Invite code K7M2QX" and the invite URL; with no code, scout-patches.com/get). A first share mints the code before the capture. The sheet's text is "<title>, my trip on Scout: <invite link>?src=trip-recap" (SHARE_LINE.tripRecap, inviteUrlFor). On the web build view-shot can't capture, so Share sends the same line and link as text through the browser's share (navigator.share, via React Native Web's Share), or with none copies them and says "Link copied"; no image leaves the web.

When it is offered (components/recap/RecapEntry.tsx, logic/domain/recap.ts):

Boards on the web (trips-web, flag on)

The same boards are pages of the web app at scout-patches.com/trips (trips-web/):

Path Page
/mine Trips: Mine · Shared with you, start an empty trip. /my-trips redirects here with the flag on (app/my-trips/page.tsx:18). With trips_social on too: the tabs Mine · Discover · Shared with you (components/social/TripsTabs.tsx), Invitations (my pending @handle invites, Accept opens the board, Decline drops the row; components/social/Invitations.tsx) and Saved (GET /api/me/trip-board-saves as cards to each trip's /t/<id>; "Trips you save from Discover show up here." when none; left out when it can't be read; components/social/SavedTrips.tsx)
/discover Discover (trips_social, else a 404): other scouts' public trips, readable signed out (app/discover/page.tsx). Filter chips are links (?filter=): All, Near you (a button shown only where the browser has geolocation, asking for it only when pressed, the place rounded to 2 decimals in the URL; components/social/NearYouChip.tsx), National parks, Weekend, Route 66, Weird stuff, Cities, and You have some already signed in only. Cards: art (or the credited cover), title, @author unless hidden, likes · saves, patches · days, "You have N" signed in. More trips follows next one page at a time; "No public trips here yet." when empty. Indexed, canonical to the bare /discover
/b/<id> A board for its members: owner renames in place, the map (a planned board's is the plan's: every day's road and every stop with its patch art, none dimmed, boardMap in lib/board-map.ts; planned with roads but every stop taken off, the roads and the board's two ends; unplanned, its ends and places), pins (move, remove, add a note), MembersPanel (visibility, invite links with Revoke, roles, leave). With trips_social on: the owner's visibility gains Public: listed on Discover, anyone can find it (and the page prints "Public, on Discover: …/t/<id>"), Invite by @handle (people search from 3 letters, pick, Can edit / Can view, Invite; components/social/InviteByHandle.tsx), and pending invites listed as "Invited · Can …" with Cancel (the existing member DELETE)
/b/<id>/plan The route, in the planner layout: a bar with From, To, Dates (the first to the last day's date, else "From" the plan's start or the first day's own date, else "No dates yet"; datesLabel) and the detour, the goal card and each day as a timeline in a scrolling column, and the map of all days. Editors get every plan edit as buttons (no drag): a stop's Up, Down, Day N and Remove sit behind its ⋯ button, which stays open while you work on that stop (components/plan/DayCard.tsx); Along, Two ways and Plan again. Every member gets Route in Google Maps on each day: Google's directions link from where the day starts (the trip's start; else the day before's overnight or last stop), through its stops where the road reaches each, to where it ends (its overnight; the trip's end on the last day), at most 9 stops after the start as the app's hand-off (lib/route-in-maps.ts). Where to? keeps its waiting state until the new trip's page has opened
/b/new Where to?: a start and a place; lands on the new trip's plan
/i/<token> Invite: Open in Scout (a scout://trip-invite/<token> link) and Join on the web
/t/<id> The link view: a migrated or planner-saved trip as before; an app board shared by link as PublicBoardView (title, description, endpoint labels, patch pins, author only if shown). With trips_social on, an app board renders from GET /api/trip-boards/:id/details instead (components/social/TripDetailsView.tsx): the patch art, title, "A trip by @handle" unless hidden, "Based on @author's trip" (a link while the original is readable), the stats row (likes · saves · finished · comments), the finished scouts' avatars, "You have N of M" signed in, the days and their patch stops (the patches when unplanned), and the comments beside them ("At <stop>" tags, Author / Finished it badges, one level of replies). Like, Save and Copy to my trips are sign-in links signed out (back to this page); signed in they toggle on the server's answer and Copy lands on the new trip's /b/<id>. The composer has @-mention autocomplete (people search, 3+ letters; only mentions still in the text are sent) and an optional stop tag; a comment's like and its author's Delete. Report trip (the moderation reasons) for signed-in non-owners. Never a coordinate, note, own place or member: the client components get stop names only. Unreadable (private to you, blocked, removed) is the existing not-found page. Its card (app/t/[id]/opengraph-image) is the trip's own only when public (title, author, art); a link or private trip gets the hub's
route pages Flag on: the planner layout and MapLibre map; a save lands on a board and the button says "Save to a trip" (components/SaveBar.tsx:51)

The saved_routes migration

backend/prisma/migrations/20261105130000_trip_boards_from_saved_routes/ copied every saved_routes row onto a board with the same id (so /trips/t/<id> and older app builds keep working), visibility = 'link', hide_author = true, the endpoints and detour, legacy_slug, legacy_marker_ids, one owner member and one patch pin per saved stop. It is re-runnable and not behind the flag. saved_routes stays, unread. SavedRoutesService (backend/src/road-trips/saved-routes.service.ts) now reads and writes boards with a legacy_slug. Pins carry source (route or board) and on_route: the saved-routes API reads only route stops, and a re-save never removes a board pin. npm run saved-routes:reconcile (run by the deploy after the restart) carries over saves made by the old backend in the minutes between migration and restart.

Data model

On the device (persisted store, MMKV): the trips slice src/features/trips/logic/store/tripsSlice.ts, composed by src/domain/store.ts:68.

On the server:

API surface

Route Role Answers
GET /api/me/trip-boards — { mine, shared } cards; each carries the first four patch pins that have art, dayCount, startDate / endDate (the first and last day's dates, null without days or dates) and youHave (how many of its patch pins the caller holds), for the card's status badge (backend/src/trip-boards/dto/trip-board.dto.ts:58-66)
POST /api/me/trip-boards — 201 board; 400 bad_title / blocked_term; 409 limit
GET /api/me/trip-boards/places?q= — up to 8 towns and patches; 400 bad_query
POST /api/me/trip-boards/where-to — 201 { board, plan }; 409 limit; 400 nothing_to_plan; 502 route_unavailable
GET /api/me/trip-boards/calendar?from= joined dated days; 400 bad_date
GET / PATCH / DELETE /api/me/trip-boards/:id viewer / owner / owner the board; public is 400 not_yet with trips_social off, 409 removed on a removed trip
POST /api/me/trip-boards/:id/pins editor 201 pin (clientOpId idempotent); 404 patch_not_found; 409 already_pinned / trip_full_pins
PATCH / DELETE /api/me/trip-boards/:id/pins/:pinId editor 404 pin_gone
GET /api/me/trip-boards/:id/activity?cursor= viewer 30 per page
POST / GET / DELETE /api/me/trip-boards/:id/invites[/:inviteId] owner invite (predatesRemoval on the list); 404 invite_gone
PATCH / DELETE /api/me/trip-boards/:id/members/:userId owner, or yourself 400 owner_role_fixed / owner_cannot_leave
POST /api/me/trip-board-invites/:token/accept — the board; 404 invite_gone; 409 trip_full
POST /api/me/trip-boards/:id/members (trips_social) owner 201 { userId, handle, avatarUrl, role, state: 'invited' }; 400 bad_role / cannot_invite_self; 404 user_gone; 409 already_member / trip_full
GET /api/me/trip-board-invitations (trips_social) — [{ tripId, title, role, owner: { userId, handle }, invitedAt }], newest first
POST /api/me/trip-boards/:id/invitation/accept / …/decline (trips_social) the invitee accept: the board, 404 invite_gone, 409 trip_full; decline: 204, 404 invite_gone
GET /api/trip-board-invites/:token, GET /api/trip-boards/:id/public none preview; link view (never members, notes, places, activity or coordinates)
GET /api/people/search?q= (trips_social; backend/src/people/people.controller.ts:26) signed in [{ userId, handle, avatarUrl }], up to 8; 400 bad_query; 60 a minute per member
GET /api/trip-boards/discover?filter=&lat=&lng=&cursor= (trips_social; trip-social.controller.ts:41) none (optional auth) { items: SocialTripCard[], next }; 400 bad_filter / bad_cursor / bad_coordinates; 60/min per IP
GET /api/trip-boards/:id/details (trips_social; :53) anyone the read rule lets in TripDetailsDto (see "Trips social on the server"); a malformed or unreadable id 404
GET /api/trip-boards/:id/comments (trips_social; :59) anyone the read rule lets in the comments, with stopPatchId, isAuthor, finishedIt
PUT / DELETE /api/me/trip-boards/:id/like, …/save (trips_social; :77-103) signed in, can read { liked, likeCount } / { saved, saveCount }; 404 unreadable
GET /api/me/trip-board-saves (trips_social; :105) signed in saved trips as cards with savedAt, newest first
POST /api/me/trip-boards/:id/copy (trips_social; :110) signed in, can read 201 { id, title, copiedFrom: { tripId, handle } }; 409 limit
POST /api/me/trip-boards/:id/comments (trips_social; :118) signed in, can read 201 the thread; body { text (≤500), parentId?, mentions? (≤20), stopPatchId? }; 400 bad_stop
DELETE /api/me/trip-boards/:id/comments/:commentId (trips_social; :126) the comment's author or an admin { success: true }; 404 a comment the caller can't see
PUT / DELETE /api/me/trip-boards/:id/comments/:commentId/like (trips_social; :133-145) signed in, can read { likeCount }
GET /api/me/trip-boards/:id/crew (trips_social; :147) joined member { patches, members, finishesForEveryone }
GET / POST /api/me/trip-boards/:id/plan viewer / editor PlanDto; plan body { from, to?, startDate?, dayCount? (1-30), detourMin?, fill?, replace? }; 409 plan_exists / legacy_endpoints / trip_full_pins; 502 route_unavailable. Without detourMin the board's, else 15 (plan.service.ts:133); both forms send 30
POST /api/me/trip-boards/:id/days, PATCH / DELETE …/days/:dayId, POST …/days/:dayId/route editor add, edit, remove, re-route a day; 409 trip_full_days (30)
POST / DELETE …/days/:dayId/stops[/:stopId], PUT …/stops/order, POST …/stops/:stopId/move editor stop edits; 409 already_planned / stale_order; 400 stops_mismatch
GET …/days/:dayId/along, …/alternative, GET …/goal viewer as above
PATCH …/days/:dayId/stops/:stopId editor { dwellMin?, atMin? } (number or null) → the day (DayDto); 400 bad_dwell_min / bad_at_min; 404 stop_gone / day_gone
GET /api/me/trip-boards/:id/before-you-go (trips_facts) viewer { today, bookAhead, closures, goodToKnow, notChecked, checkedOn, stale, sources, arrivals, records, ticks } (items { key, kind, title, text, url, where: { stopId, patchId, name, dayIndex, date }, ticked }; arrivals { status, label, detail, arrival, venues, conflict, groundsConflict, keep, shiftMin, shiftFor, stale, checkedOn, fixes, noFix })
GET /api/me/trip-boards/:id/recap?today=&tz= (trips_recap) viewer { tripId, title, firstDate, lastDate, days, miles, states, earned: [{ patchId, name, artUrl, collectedAt }], totalPatchStops, completed: [{ collectionId, name }], ended, canMakePublic }; 400 bad_date / bad_tz (see "The trip recap")
PUT / DELETE /api/me/trip-boards/:id/checklist/:itemKey (trips_facts) editor { itemKey, ticked: true, at, by } / { itemKey, ticked: false }; 400 bad_item; 404 item_gone (tick only)

Every trips_social, trips_facts and trips_recap route also needs trips_boards; with either flag off it answers Nest's unknown-route 404 before auth. Social writes share the boards' 300-an-hour member bucket. Reporting a trip is the shared POST /api/moderation/reports with target trip_board.

Plan edits write one activity row each; a reroute writes none. routeStale on the wire is true when the stored flag is set or the routed stop ids differ from the visible stops (isDayStale, backend/src/trip-boards/plan-mappers.ts:70); while stale, per-stop legs are null.

Key files

Configuration and flags

Setting Where Default
trips_boards both registries (src/config/feature-flags.ts:99, backend/src/admin/feature-flag-definitions.ts:112) off
web_saved_trips both registries; From the web, and the web planner's Save off
trips_social both registries (src/config/feature-flags.ts:104, backend/src/admin/feature-flag-definitions.ts:119); people search, invite by @handle, public trips, Discover, trip details, likes, saves, copies, comments, Crew, Finished, Report trip and the six trip notification types (with trips_boards). Web: socialOn in trips-web/lib/flags.ts off
trips_facts both registries (feature-flags.ts:110, feature-flag-definitions.ts:127); the arrival check, its fixes and Before you go (with trips_boards). Web: factsOn in trips-web/lib/flags.ts off
trips_recap both registries (feature-flags.ts:116, feature-flag-definitions.ts:135); the trip recap, its share card and the ways into it (with trips_boards; "Make it public" also needs trips_social). The web reads no recap flag: it has no recap off
Trip notification switches Settings → Notifications, six inbox and six push (notifyTrip*, pushTrip*), shown only with trips_social and trips_boards on on
trips_tab backend registry only (feature-flag-definitions.ts:49) off; nothing reads it in any build
Trip reminders Settings → Notifications (tripRemindersEnabled) on
Lengths PLAN_LENGTHS, plan.ts:20 3 hr / 5 mi, Half day / 10 mi, Full day / 25 mi (the radius is a preference: with nothing inside it, the budget alone decides, planPool)
Detour (Just drive) DETOUR_OPTIONS, ahead.ts:16 15 min (5, 15, 30, 45)
Reminder lead LEAVE_LEAD_MIN, reminders.ts:23 10 min
VALHALLA_URL backend env, optional unset means ORS only; it changes the router for every caller, so it is its own rollout step
ORS_API_KEY backend env required for any routing
Planner ORS budget PLANNER_ORS_DAILY_CAP 400 a day (the web planner keeps 800)

Turning trips_boards on also needs the gateway's read timeout raised to 300 s for /trips and the backend's /api, or a long plan is cut at the gateway (the pages then fall back to reading the plan back). Analytics: the trip lifecycle events (trackTripCreated, trackTripStarted, trackTripFinished), the feature events day_trip_started, road_trip_started, trip_stops_reordered, opened_trip_planner, and the five trip_board_* events (see analytics-events.md).

Edge cases and known limits

What this feature does NOT do

Tests that cover it

A trip started from the flag-on question shows (2026-11-12): __tests__/screens/trips-question.test.tsx pairs both branches (trips_boards on at /trips-question: Just drive calls dismissTo('/trips'); off at /trips: nothing navigates). It was seen failing without showLiveTrip with Number of calls: 0. trip-plan.test.tsx and trip-collect.test.tsx pair Start and Go the same way: flag on, dismissTo('/trips'); flag off, opened from another screen, back() and no dismissTo (seen failing with Received number of calls: 0 before the flag-off fallback, 2026-11-16). e2e-rn-web/specs/flows/trips/trips.spec.ts runs today's Trips journeys under either flag: with trips_boards on, openTrips opens /trips-question by its address (the grid has had no door to it since 2026-11-29) and "back at the start of Trips" is the board grid. Before this, a flag-on run failed 11 of 12, and 7 of those failures were this bug.

Open questions