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.

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

/**
 * Help for a trip (`/trips/:id`). The trip is a family of screens: this one is
 * the frame (the tabs, the three columns of the plan, the trip's Settings with
 * its people, links, journal, addons and the trip's own form), the columns, the overlays and the other tabs
 * each get their own screen under it, anchored by the page for whatever is
 * open. The step actions that produce the pictures live in
 * `e2e/help/trip.guide.ts`.
 */

const SHARING = 'Trip-Members-and-Sharing'
const PLANNER = 'Trip-Planner-Overview'
const SETTINGS = 'Trip-Settings'

export const { context: tripContext, guides: tripGuides } = defineScreen({
  id: 'trip',
  route: '/trips/:id?tab=plan',
  icon: 'route',
  bullets: 6,
  docs: [{ slug: PLANNER }, { slug: SETTINGS }, { slug: SHARING }],
  guides: [
    ['add-member', 'userPlus', 'quick', 3, 2, { slug: SHARING, anchor: 'inviting-members' }, ['trip-invite-link', 'add-guest'], true],
    ['trip-invite-link', 'link', 'quick', 3, 2, { slug: SHARING, anchor: 'trip-invite-link' }, ['add-member', 'invite-links']],
    ['add-guest', 'userRound', 'quick', 2, 3, { slug: SHARING, anchor: 'guest-members' }, ['add-member'], true],
    ['public-link', 'share', 'quick', 5, 3, { slug: SHARING, anchor: 'public-share-link' }, ['add-member']],
    ['transfer-ownership', 'crown', 'quick', 2, 2, { slug: SHARING, anchor: 'transferring-ownership' }, ['add-member']],
    ['link-journal', 'notebookPen', 'quick', 4, 3, { slug: SETTINGS, anchor: 'journal' }, ['add-member'], true],
    ['trip-addons', 'blocks', 'quick', 3, 3, { slug: SETTINGS, anchor: 'addons' }, ['toggle-addon', 'edit-trip-settings'], true],
    ['edit-trip-settings', 'pencil', 'quick', 3, 2, { slug: 'Creating-a-Trip', anchor: 'fields' }, ['edit-trip', 'cover-image', 'trip-addons']],
    ['collapse-columns', 'panelLeft', 'quick', 3, 3, { slug: PLANNER, anchor: 'layout' }, [], false, [3]],
    ['undo-change', 'undo', 'quick', 1, 2, { slug: PLANNER, anchor: 'undo' }, []],
    // The assistant floats over the planner; it shows only once an AI connection is set up.
    ['trip-assistant', 'sparkles', 'guide', 5, 5, undefined, ['ai-setup', 'connect-ai', 'undo-change'], true],
  ],
})