Skip to content

armgit / TREK

Public Imported from GitHub
0

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.

3.1 KB
Raw Blame
import { defineScreen } from '../defineScreen'

/**
 * Help for the Lists tab of a trip: the packing list (lists of items, who
 * brings what, what it weighs and which bag it is in) and the to-do list
 * (tasks with a list, a priority, a due date and someone's name on them).
 * A packing row shows only what is set; everything else about an item lives
 * in the small window its name opens, and the list-wide actions sit behind the
 * three dots next to Add list.
 * The drags in arrange-packing-list are stills with an arrow: a browser drag
 * leaves the dragged row out of a recording, so a loop shows only a line jumping.
 * A screen under `trip`; the step actions live in `e2e/help/trip-lists.guide.ts`.
 */

const PACKING = 'Packing-Lists'
const TODOS = 'Todos-and-Tasks'
const TEMPLATES = 'Packing-Templates'

export const { context: tripListsContext, guides: tripListsGuides } = defineScreen({
  id: 'trip-lists',
  parent: 'trip',
  route: '/trips/:id?tab=listen',
  icon: 'listChecks',
  bullets: 6,
  docs: [{ slug: PACKING }, { slug: TODOS }, { slug: TEMPLATES }],
  guides: [
    ['packing-categories', 'tags', 'guide', 5, 3, { slug: PACKING, anchor: 'categories' }, ['edit-packing-item', 'arrange-packing-list', 'check-off-packing', 'apply-packing-template'], true],
    ['edit-packing-item', 'pencil', 'guide', 5, 3, { slug: PACKING, anchor: 'items' }, ['packing-categories', 'count-packed-pieces', 'share-packing-item', 'packing-bags'], true],
    ['arrange-packing-list', 'arrowUpDown', 'quick', 3, 2, { slug: PACKING, anchor: 'filters' }, ['packing-categories', 'check-off-packing'], true],
    ['check-off-packing', 'checkCircle', 'guide', 5, 4, { slug: PACKING, anchor: 'progress-bar' }, ['count-packed-pieces', 'packing-categories', 'share-packing-item'], true],
    ['count-packed-pieces', 'packagePlus', 'quick', 4, 3, { slug: PACKING, anchor: 'items' }, ['edit-packing-item', 'check-off-packing', 'packing-bags']],
    ['apply-packing-template', 'library', 'guide', 4, 3, { slug: TEMPLATES, anchor: 'applying-a-template' }, ['packing-templates', 'import-packing-list'], true],
    ['import-packing-list', 'fileInput', 'quick', 4, 2, { slug: PACKING, anchor: 'importing-a-list' }, ['export-packing-list', 'apply-packing-template'], true],
    ['export-packing-list', 'upload', 'quick', 4, 2, { slug: PACKING, anchor: 'printing-and-exporting' }, ['import-packing-list', 'apply-packing-template'], true],
    ['share-packing-item', 'users', 'guide', 5, 3, { slug: PACKING, anchor: 'the-three-tiers' }, ['share-packing-list', 'edit-packing-item', 'add-member'], true],
    ['share-packing-list', 'share', 'quick', 4, 2, { slug: PACKING, anchor: 'the-three-tiers' }, ['share-packing-item', 'packing-categories'], true],
    ['packing-bags', 'archive', 'tour', 6, 4, { slug: PACKING, anchor: 'bag-tracking' }, ['toggle-addon', 'edit-packing-item', 'count-packed-pieces', 'import-packing-list'], true],
    ['create-todo', 'plus', 'guide', 6, 3, { slug: TODOS, anchor: 'adding-tasks' }, ['todo-filters'], true],
    ['todo-filters', 'filter', 'guide', 5, 2, { slug: TODOS, anchor: 'sidebar-filters' }, ['create-todo']],
  ],
})