Skip to content

How (travel)

The How page is where the group plans travel there and back. These are its real pieces, from src/web/components/how/, with sample travel for the trip.

  • Way there / Way back switches the whole page between the journey out and the journey home. Same sliding coral pill as the Dashboard switch.
  • Plane, Train, Taxi picks what kind of travel you’re adding.

While you add a flight, this dark green box fills in from the flight number: the two airports with their cities, the date and local time at each end, and the flight time. The times are shown in each airport’s own time zone.

A saved flight is a card with:

  • a leg header: the flight’s title pill, and a pencil to edit it
  • a map card: the same route details over a drawn world map, with a dashed arc between the airports. It’s drawn by the app from real coastline data, so it needs no maps service
  • a details box: the price per person as a chip first, then the booking reference, airline and flight number, terminal and bags

Trains and taxis get the same kind of map card. Trains show real London geography with a straight dashed line; taxis show the coastline at country scale.

  • When there are several route options, each is labelled Option 1, 2, 3 in the option colours, and the fastest gets a green Quickest chip.
  • When a train or taxi is matched to the flight, a blue chip says how early it arrives: “Arrive 2h 35m before flight”.
  • Train search uses TfL, so it only covers London for now. The add form says so.

How the How page lists each leg, top to bottom:

  • Flight: the map card and the details box, with a pencil to edit.
  • Train: the meeting point, the map card, then the line it runs on as a coloured chip. A train that needs tickets carries a ticket mark on its pill, and appears on Docs & Tix.
  • Taxi: the map card, the price per person and the roads it takes.

Train searches show each line as a coloured chip, chained with a chevron: Bakerloo (brown), the Elizabeth line (purple), Piccadilly (navy), and Walk (grey-teal) for a change on foot. The colours are TfL’s own, close but not checked pixel for pixel. Train search only covers London for now.

The How card at the bottom of each direction: tap + to add a flight, train or taxi. While it’s open it lists the legs already added, with remove.

Every leg (flight, train, taxi) opens with the same row: a title pill on the left and a round edit button on the right, the same pairing as every other card. A meeting point, when set, sits underneath: where, and at what time.

  • Date and time: one field with two halves. The date opens the calendar, the time opens the time wheel, not the phone’s own picker.
  • Meeting point: a toggle, then Where and When. It sits just above the Search or Save button when adding or editing a train or taxi.
  • src/web/components/how/FlightParts.tsx: way and mode switches, flight cards, leg header
  • src/web/components/how/GroundParts.tsx: train and taxi cards
  • src/web/components/how/Fields.tsx: date and time, meeting point, station search
  • src/web/components/how/Cards.tsx, Editors.tsx: the full cards and the add and edit flows
  • src/web/components/how/shared.tsx: types and helpers