Every row of the reorder dialog, and of the days sheet on a phone, now has a delete button. It first asks, and the question lists what goes with the day: planned places stay in the place list, notes and day texts are deleted, bookings stay without a day, a stay that checks in or out on the day is cancelled with its booking and expense (shown in the danger tone), and on a dated trip the later days and their bookings move one date earlier or the trip ends a day earlier. The server side moved from a bare DELETE into DayRemovalService, which REST, the delete_day tool and the plugin RPC all use. It closes the numbering, keeps the dates on their positions like a reorder, re-stamps the moved bookings, shifts the road trip boundaries, cancels touching stays through the accommodations domain, refuses the last day of a trip, and fans out day:deleted, day:reordered and trip:updated so collaborators renumber and see the new day count and end date. The trip query moved into a leaf file so the days domain can read it without a module cycle. On the client the delete is online only, runs optimistically through the days slice with the same reducer collaborators apply, and the ConfirmDialog gained a slot for extra content, an Escape that only closes itself, and the danger and accent tokens.
7.2 KiB
Day Plans and Notes
The Day Plan sidebar lets you organize places into days, add free-form notes, and manage the order of your itinerary.
The Day Plan sidebar
The Day Plan sidebar is the left panel in the trip planner. Each trip day is shown as a collapsible section. Expanded or collapsed state is saved per trip in localStorage (key: day-expanded-{tripId}), so your layout is preserved across page reloads and between browser sessions on that device.
Day timeline
Each day shows a merged, time-ordered list of:
- Assigned places — with time, category icon, and action buttons
- Day notes — with their selected icon and optional time
- Reservations and transports — non-hotel types (flights, trains, cars, cruises) appear inline; hotels appear in the Day Detail panel
Items are sorted by their time or position index.
Assigning places to a day
- Drag and drop — drag a place from the right-hand Places sidebar and drop it onto a day section or between existing items.
- Add button — click a day header to select it, then click the + on a place in the right-hand Places sidebar; the place is assigned to the selected day straight away.
- Mobile — tap the Add Place button inside an expanded day section to open an inline search panel; find the place and tap it to assign.
You can also reorder places within a day, or move them to a different day, by dragging and dropping inside the sidebar.
To remove a place from a day, right-click the entry in the day timeline and choose Remove from day, or select the place and use the Remove from Day button in the place detail panel. On mobile, switch the plan screen to Plan and tap the X next to the place. Deleting the place itself, from the same right-click menu, removes it from every day.
Multi-day reservations
A reservation that spans multiple days appears in each relevant day with a phase label:
| Reservation type | Start day | Middle days | End day |
|---|---|---|---|
| Flight | Departure | In transit | Arrival |
| Car | Pickup | Active | Return |
| Parking | Drop-off | Not shown | Pickup |
| Other | Start | Ongoing | End |
Car rentals that are in the "Active" (middle) phase are shown in the day header rather than the timeline. A multi-day parking booking is dropped from the days in between entirely — it appears on its drop-off day and its pickup day only, with no day header badge.
Day notes
Click the note + button in any day section to add a note. Notes have four fields:
- Title (required) — the main note text shown in the timeline
- Subtitle / detail (optional) — a free-form text field (Markdown supported) displayed beneath the title
- Icon — choose from 32 icons: FileText, Info, Clock, MapPin, Navigation, Train, Plane, Bus, Car, Ship, Coffee, Ticket, Star, Heart, Camera, Flag, Lightbulb, AlertTriangle, ShoppingBag, Bookmark, Utensils, Wine, ParkingSquare, Fuel, Footprints, Mountain, Waves, Sun, Umbrella, Music, Landmark, Gift
- Colour (optional) — tints the note card in the day timeline; the dialog shows a live preview of the card the note will become
Notes interleave with places and transports in the day timeline and are ordered by their sort_order. Use the ↑ / ↓ chevron buttons on a note to reposition it within the merged timeline. Notes can also be repositioned by dragging.
Day Detail panel
Click a day header to open the Day Detail panel. It appears as a floating panel centered in the map area and shows:
- The weather forecast for that day (see Weather-Forecasts)
- Reservations linked to assignments on that day
- Accommodation block (hotel check-in / check-out, with check-in window and confirmation number)
The panel can be collapsed to a slim header bar or closed entirely with the X button.
Toolbar actions
At the top of the Day Plan sidebar:
- Export — opens the export dialog, which holds every format in three groups: Document (a PDF of the full trip plan, see PDF-Export), Calendar (a
.icsfile for import into calendar apps, plus a subscribable calendar feed for members who can manage share links) and Maps & GPS (GPX — whole trip, places only, or days as routes). - Expand / Collapse all — toggles all day sections open or closed at once.
- Undo — reverses the last drag, reorder, or assign action.
- Reorder days: reorder the days of the trip, add a day, or delete one. A day's places, notes and bookings move with it. Shown to members who can edit days. See Deleting a day.
- Show all booking routes — draws the connection of every routable booking on the map at once. Shown once the trip has at least one routable booking.
Route controls appear at the bottom of a day section, after the place list, and only for the day you have selected — click a day header to select it. The row only appears on a day that can actually be routed: two or more places on the day, a single located place that accommodation optimization can bookend with a hotel, or a transfer day where you check out of one hotel and into another. On a phone the same controls sit in the Daily Overview sheet instead, opened from the pill above the plan timeline, and appear there when the day has two located places, or one located place plus a hotel to start from.
- Route — draws that day's route on the map.
- Open in Google Maps — hands the day's stops to Google Maps as a route, in planned order.
- Open in CoMaps — the same day handed to CoMaps for offline navigation, carrying the day's travel mode.
- Optimize — reorders the day's places into the shortest route. See Route-Optimization.
- Travel mode — Driving or Walking for that day, plus any travel mode a plugin adds.
Deleting a day
Each row of the Reorder days dialog has a delete button; on a phone it sits next to the arrows in the day sheet. Before anything is deleted, TREK asks and lists what goes with the day:
- Planned places stay in the place list of the trip. Only their spot on this day goes.
- Notes, the day title and the day description are deleted.
- Bookings on the day stay under Bookings, without a day, and keep their date.
- A stay that checks in or out on the day is cancelled, together with its booking and the expense of that booking. The list shows it in red. A stay that only runs across the day is kept.
- The days after it move up one place. On a trip with dates the dates stay where they are, so every later day, and the bookings on it, takes the date one slot earlier. A day without a date at the end takes over the last date; when there is none, the trip ends one day earlier.
A trip always keeps at least one day, and deleting needs a connection. There is no undo, which is why the dialog spells out the consequences first.
See also: Places-and-Search · Map-Features · Route-Optimization · Weather-Forecasts · Reservations-and-Bookings



