The trip PDF gets a new layout in the app's current look, with nothing it
printed before left out and more of each place on the page.
- Cover: the trip photo full bleed, title and dates over it, the trip's
figures on frosted tiles.
- Overview: the route map, every day at a glance (colour, date, plan, the
night's stay, stops, cost) and all bookings and stays with their codes.
- Days: the header in the day's map colour, a photo strip of the day's
stops, where the night is spent, then the plan as a timeline with the
times on the left.
- Places: photo or category tile, category, duration, price, rating, tags,
address, coordinates, description, notes, opening hours of that day,
phone, website, e-mail and the members going. The rating, e-mail, hours
and reservation note come from the trip's place, since the assignment
only carries a projection of it.
- Bookings: route first, then airline, number, seat or platform as badges,
each leg with its own code, status and the booking's code.
- A second row of switches in the preview: overview, photos, coordinates,
and contact and hours, next to page per day, large text and transport
notes. Each one is a class on the document and remembered.
The document is split into modules for its helpers, icons, stylesheet,
cover and overview, and the day, so the export itself only gathers the data.
A third switch next to the page break and transport notes switches scales the
day content's type by 1.35 and darkens its greys, for readers who print the
plan. Off by default and remembered per browser like the other two; the day
content's sizes and greys now come from three CSS variables on <body>.
An iPhone or iPad running TREK from the Home Screen ignores print(), in
the page and in an iframe alike, so "Save as PDF" in the preview did
nothing there. Mobile Safari prints the same preview fine.
In the installed iOS app the preview now shows "Open in Safari" in
place of the dead button, with a line saying why. The link opens the
trip with ?export=pdf, and both shells open their export dialog or
sheet for it, so the PDF is one tap away once Safari is up. The
parameter is dropped once read and survives the login redirect.
Everywhere else the preview prints as before.
The preview overlay moves out of TripPDF.tsx into pdfPreview.ts, which
TripPDF had no room left for under lint:size, and its backdrop and
stacking now use the --overlay and --z-modal tokens.