mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
docs(wiki): deleting and adding days, and what shortening a trip removes
The day plan page now walks through the reorder dialog and its phone sheet as they are: the two ways to add a day on a trip with dates, the question before a day is deleted and what it lists, and the step the trip dialog puts before a save that removes days. Accommodations explains why a stay behaves differently when its day is deleted and when the trip is shortened, and the trip dialog, undo, public API, MCP and plugin pages point at the new rules, including the dated option of create_day and days.create, removed_days on update_trip and the last day that cannot be deleted.
This commit is contained in:
@@ -49,7 +49,8 @@ Both are membership-checked against the current user — same gate as `ctx.trips
|
||||
const place = await ctx.places.create(tripId, { name: 'Teamlab', lat: 35.62, lng: 139.78 })
|
||||
const day = await ctx.days.create(tripId, { date: '2027-04-02', notes: 'Odaiba' })
|
||||
await ctx.itinerary.assign(tripId, day.id, place.id, 'buy tickets first')
|
||||
// days.create reads { date?, notes? } and always appends at the end — a position is honoured on the REST route only, not on the plugin path.
|
||||
// days.create reads { date?, notes?, dated? } and appends at the end; a position is honoured on the REST route only, not on the plugin path.
|
||||
// { dated: true } instead adds the day after the trip's last date and extends the trip to it.
|
||||
// Set a day title later with ctx.days.update(tripId, day.id, { title: 'Odaiba' }).
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user