import { defineScreen } from '../defineScreen' /** * Help for the days column of a trip's plan: the day cards, the stops on them, * their order and times, notes, the day's route, and everything that leaves * the plan (PDF, calendar, GPX). Bookings and transports show up here too, so * one guide reads them and points at the screens that create them. * A screen under `trip`; the step actions live in `e2e/help/trip-days.guide.ts`. */ const DAYS = 'Day-Plans-and-Notes' const MAP = 'Map-Features' export const { context: tripDaysContext, guides: tripDaysGuides } = defineScreen({ id: 'trip-days', parent: 'trip', route: '/trips/:id?tab=plan', icon: 'calendarDays', bullets: 6, docs: [{ slug: DAYS }, { slug: MAP }], guides: [ ['read-day-plan', 'eye', 'guide', 5, 2, { slug: DAYS, anchor: 'day-timeline' }, ['bookings-in-plan', 'day-route']], ['place-onto-day', 'calendarCheck', 'guide', 4, 3, { slug: DAYS, anchor: 'assigning-places-to-a-day' }, ['place-to-open-day', 'reorder-stops', 'undo-change'], true], ['reorder-stops', 'repeat', 'quick', 4, 2, { slug: DAYS, anchor: 'assigning-places-to-a-day' }, ['place-onto-day', 'set-stop-times', 'lock-stop']], ['set-stop-times', 'clock', 'quick', 3, 3, { slug: DAYS, anchor: 'day-timeline' }, ['reorder-stops', 'edit-place']], ['remove-from-day', 'minusCircle', 'quick', 2, 2, { slug: DAYS, anchor: 'assigning-places-to-a-day' }, ['delete-place', 'undo-change']], ['lock-stop', 'lock', 'quick', 2, 2, { slug: DAYS, anchor: 'toolbar-actions' }, ['day-route', 'reorder-stops']], ['day-note', 'pencil', 'quick', 4, 2, { slug: DAYS, anchor: 'day-notes' }, ['read-day-plan'], true], ['day-route', 'route', 'guide', 5, 3, { slug: MAP, anchor: 'route-lines' }, ['lock-stop', 'read-day-plan']], ['manage-days', 'calendarDays', 'quick', 5, 2, { slug: DAYS, anchor: 'the-day-plan-sidebar' }, ['edit-trip']], ['bookings-in-plan', 'ticket', 'guide', 5, 2, { slug: DAYS, anchor: 'multi-day-reservations' }, ['read-day-plan']], ['export-plan', 'download', 'quick', 4, 3, { slug: MAP, anchor: 'exporting-a-trip-as-gpx' }, ['calendar-feed']], ['clear-day', 'minusCircle', 'quick', 2, 1, { slug: DAYS }, ['remove-from-day', 'manage-days'], true], ], })