Repository navigation
PDF export: choose what the itinerary shows - #49
Merged
Merged
Conversation
A bar above the printable itinerary (left out of the PDF) switches parts on and off: map, overview, bookings table, prices, booking numbers, travel between stops, warnings, notes, addresses and a new Ideas section. Two sets in one click: "Full" (everything) and "To share" (no prices, booking numbers or notes). The choice is remembered per browser; the default prints what it printed before. The booking status moves next to the booking's name, so it stays when booking numbers are hidden. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The printable itinerary (Export → PDF) gets a bar, "What the PDF shows:", above the document. The bar itself is hidden when printing.
How
lib/printOptions.ts: the parts, defaults, presets and parsing of the saved choice (pure, tested).lib/usePrintOptions.ts:usePrintOptions()/setPrintOptions()over localStorage, like the theme and language stores.components/TripPrint.tsx: sections and details follow the options. The texts are translated into English, Polish and Spanish.Tests
lib/printOptions.test.ts: defaults, saved and broken values, the presets, recognising the active preset.bun run checkpasses: typecheck, lint, 338 tests with coverage thresholds, web and mobile builds.🤖 Generated with Claude Code