Skip to content

Honeymoon Portal

Austin Stanfield edited this page Oct 5, 2026 · 14 revisions

Honeymoon portal

The private trip planner: map, itinerary, travel, places, stays, excursions, guide.

/admin/honeymoon — a private planning tool. It is not a public page: there is no guest-facing route and no WIP toggle, so nothing here is ever visible on the wedding site.

Loading the Bali guide. The portal ships with the guide already extracted into seed data — 7 regions, 231 places and 14 practical notes. Load it from the Places tab's empty state (Load the Bali guide), which is one request and about a second, or from a shell:

DATABASE_URL=... npm run seed:honeymoon

The button and the script write the same rows the same way; the button exists because the empty state used to tell you to run npm, which is not something you can do from a phone.

Coordinates were geocoded ahead of time and committed to src/lib/honeymoonCoords.ts, so this runs in seconds and needs no internet. Anything the geocoder couldn't resolve is inserted unpinned, ready for you to place by hand.

The seed is idempotent and non-destructive: it matches on place name and skips anything already present, so re-running never overwrites an edit you made. (The flip side: if you rename a seeded place, the next run treats the original name as missing and re-adds it. Delete rather than rename if you want one gone.) Use --dry to preview and --no-geo to skip the network fallback entirely.

Every seeded pin starts flagged "needs review." A geocoder will confidently return a result for a name it only half-recognises, and this guide contains waterfalls that share names across regions. Unconfirmed pins draw with a dashed amber ring on the map and can be filtered to in both Map and Places tabs. Confirm them before you plan a day around one.

Unconfirmed pins are hidden from the map. A bulk-geocoded guess renders exactly like a real location, so the map shows only pins you have confirmed. The count line always says how many are being withheld ("12 pinned · 114 unconfirmed hidden") — the map never quietly omits things. ⚠ Show unconfirmed adds them alongside the confirmed pins rather than swapping to them, so you keep your bearings while reviewing: lasso the ones that look right, Mark reviewed. Anything you have actually scheduled on a day still shows in that day's view regardless, since hiding a stop you deliberately planned would break its route.

How the portal is laid out

As of v0.10.0, when the portal was reorganised and rebuilt for phones.

Ten tabs: Overview, Today, Itinerary, Map, Places, Travel, Checklist, Files, Guide and Settings. Stays and Excursions are segments of Places — All · Stays · Excursions at the left of its toolbar — sharing one card, one panel and one toolbar; Stays keeps Ranking, Compare and the price watch. /stays and /excursions still work and land on their segment.

Every tab has the same toolbar along its top, pinned as the page scrolls: view switches on the left, the one main action and a ⋯ menu on the right. Whatever narrows a list sits behind one Filters button, with what is switched on shown as chips you can remove one at a time. Help text is behind ⓘ.

One place panel. Click a place anywhere — a map pin, a Places row, a stay or excursion card, a stop on a day, the hotel on a day's Sleep line, a calendar day, a search hit, the Overview's shortlist — and the same panel opens with the same sections: on the trip, where, booking & cost, the stay (stays only), practical, notes & links, what you two think, photos, nearby. It reads first and edits in place: click a field, change it, and it saves when you leave it. Edit everything swaps in the full form (pin search, links, region, country) inside the same panel. On a laptop it slides in from the right and the map beside it stays usable — click another pin and the panel switches to it. Cards no longer edit themselves; they show the place, and keep only the rating pills and the select box, because those are done twenty at a sitting.

On a phone (below 768px) the site's nav and the admin bar step aside and the portal draws one slim bar — back, the trip's name, search — with tabs along the bottom: Today, Itinerary, Map, Places, More (which holds Overview, Travel, Checklist, Files, Guide and Settings). Panels come up from the bottom. The itinerary shows one day at a time, with a strip of days and a sideways swipe, and its timeline becomes a vertical agenda. Compare becomes swipeable cards. Reordering is ⋯ → Move up / Move down on a stop and ▲ / ▼ on the stay ranking, because a drag fights the scroll. Every control is at least 44px.

Files

Files tab (since v0.10.1; documents used to be a card in Settings). A file explorer for the travel documents: passports, visas, insurance, tickets, vaccination cards, booking confirmations — images or PDFs up to 25 MB.

  • Folders down the side by kind and by person (unassigned files are Shared), with counts; on a phone they are a row of chips. Grid of thumbnails or List, and search across names and notes.
  • Click a file and it opens big — the image, or the PDF itself — with ‹ › and the arrow keys to step through the folder. Its details are editable in place: what it is, whose, when it expires, what it is for (a place or a travel leg), notes. Delete is undoable.
  • Add files with the button or by dropping them anywhere on the page. What a file is gets guessed from its name (Boarding pass SQ938.png → Ticket, AXA policy.pdf → Insurance); a name that says nothing takes the folder you dropped it into.
  • Warnings: a passport with under six months left after the last day of the trip (many countries refuse entry on that), or a passport, visa or policy that runs out before or during the trip, is flagged on its file and at the top. No passport on file is said once.
  • Offline: opening Files or Today with a connection hands every document to the portal's offline store, so they open with no signal; a deleted file is dropped from it. The tab shows Saved for offline: n of m. (Before v0.10.1 the portal promised this and did not do it.)
  • Documents never appear on a read-only share link.

Today, and the trip itself

Everything above this line is for planning. The Today tab is for the trip: one screen, read-only, thumb-sized targets, and no controls you would not use standing up holding a coffee.

It shows what today is: the flight that lands, where you are sleeping and which night of it, the day's stops in order with their windows, the next one flagged as you pass it, a Navigate button per stop that opens the native maps app, and the booking reference, hotel phone and dress code where they belong. Arrows step to any other day ([ and ] do the same); Back to today returns. Before the trip it counts down and shows day one; after it, the last planned day.

It works with no signal. Opening the tab registers a service worker that caches the portal's own pages, its data payload and Next's static chunks — network-first, so it is never stale while you have signal, and the last good copy when you do not. It is deliberately narrow: the guest-facing site never registers it, and writes are never cached or replayed. Turn the live lookups off (the Itinerary's own toggle) if you are on a metered connection.

Night mode is a toggle on the header, remembered per browser, scoped so it cannot leak into the rest of the site. You read this screen at 05:30 on the morning of a flight.

The emergency card is one tap down: the local emergency numbers for the country of today's base as tap-to-call buttons, then whatever you have filled in under Settings for insurance, embassy, medical, contacts and money. The numbers are a static table — the one time you need this is the one time there is no signal to look it up — and an unknown country falls back to 112 while saying that is what it is doing.

A read-only link for the other half of the couple

Settings → Share it with someone makes a link at /honeymoon/<token>. No login, no admin API, no writes. Three scopes:

Scope Shows
Today only One day, no arrows
Whole itinerary Every day, with arrows
Itinerary + guide Adds the guide notes

The shortlists, budget, checklist and place library are never included, and the place list is trimmed to what the visible days actually reference. Links are named, revocable (a leaked link stays dead), can expire, and record when they were last opened. The token is 192 bits from crypto.randomBytes and is never accepted from a caller — unknown, revoked and expired all answer with the same 404, because which one it was is not a stranger's business.

The same token authenticates the calendar feed (below), so revoking a link turns its calendar off too.

Bookings, budget and money

status: booked used to record that something was booked and nothing else. The booking panel is the rest: confirmation number, who it was booked with, check-in and check-out, cost and how much of it is paid, the deposit date, the date free cancellation ends, contact, booking page and notes. It is the same panel wherever a booking can hang — a stay, an excursion, a flight, a dinner reservation on a stop — and it creates its row lazily, so a shortlist of forty hotels does not carry forty empty bookings.

The trip total is arithmetic now. A place has a real cost with a per (night / person / total) beside the free-text price note it does not replace. A stay priced per night is multiplied by the nights it is actually the base for; a per-person price is doubled (stated, not hidden); travel legs and bookings count; and a booking's cost replaces the place's estimate rather than doubling it. The dashboard shows it against the budget on Settings, broken down by stays / travel / excursions / everything else, with what is paid, what is outstanding and the per-person figure. Places priced only in words are counted as unpriced and said so — with the old sense-of-scale reading kept underneath for exactly those.

Currencies add up. Settings holds a rate per pair, fetched keyless or typed by hand, and a rate you typed is never overwritten by a fetch — if you agreed 15,800 with the hotel, that is the number the budget should use. An amount in a currency with no rate is counted at face value and flagged rather than silently dropped or silently guessed.

Three dashboard cards fall out of this: Before these dates (cancellation and deposit deadlines, red inside a week), Nights not booked (days whose base is only shortlisted or missing, shown only within two months of departure) and Itinerary completeness (one number over four things: somewhere to sleep, two things to do, a travel leg wherever the base changes, and the base actually booked).

What the trip knows

Four outbound services, three of which need no key, all cached in Postgres, and none of which is allowed to matter — every value starts null and every view renders exactly as it did before while it is missing.

What Where from Cached
Driving times and road geometry OSRM (public demo server, or OSRM_URL) 30 days per coordinate pair
Weather Open-Meteo forecast inside 16 days; a decade of archive averaged beyond it 6 hours / 1 year
Exchange rates open.er-api.com 24 hours, unless the rate is yours
Flight schedules AeroDataBox via RapidAPI — needs FLIGHT_API_KEY per lookup

Sunrise and sunset are computed rather than fetched (NOAA's solar position algorithm — no key, no network, accurate to about a minute), and a stop planned after sunset gets a 🌙 badge.

Opening hours come free with the map search: OSM's opening_hours, phone and website ride along on a lookup that was happening anyway, and a stop scheduled when its place is shut is flagged. The parser deliberately answers unknown for the syntax it does not cover — public holidays, month ranges, sunset offsets — rather than guessing, because a confident wrong "closed" sends you somewhere else on a day the place was open.

The day as a timeline. Stops take an optional duration, and the day card works out when you actually arrive everywhere from the start time, the durations and the driving. It flags the two failures worth knowing before you are standing in the road: a stop you cannot reach at the time set (with the honest arrival and how many minutes late) and two stops that overlap. More than three hours of driving on one day says so. Without road times it falls back to a straight line at 32 km/h and labels it an estimate.

Time zones on legs. Times are stored as the local clock at each end — what the ticket says — so without zones a westbound flight reads as taking minus twenty minutes. A leg holds the flight number, both zones (with the pin's own guess one click away), terminals, aircraft and seats; the price and the reference live on its journey (see Travel).

Flight lookup (FLIGHT_API_KEY, AeroDataBox via RapidAPI) fills a leg in from its number. Three behaviours worth knowing, all of them things the first version got wrong:

It says What happened
Fields filled, no message The flight was found on that date
"…does not operate on that date — filled in from its 2026-08-18 schedule" The date has no service, so it fell back to that number's most recent actual operation. Same times, terminals, aircraft and zones, which for a flight months out is what you want — but it is stated, not implied
"Flight lookup needs an API key" FLIGHT_API_KEY is unset or is not reaching the container — see Installation for that trap

The free plan allows one request a second, which the lookup's own two-step (try the date, then try the number) can trip on its own; a rate-limited response is waited out once rather than reported, so one press gives one answer.

Airport transfers are one button on the Travel tab: the flight landing that day becomes the origin (text and pin), the day's stay becomes the destination, and it departs half an hour after the flight lands.

Checks and lists

The Itinerary leads with two read-outs.

Worth a look collects everything wrong with the plan: a place scheduled twice on one day, two things set for the same time, a night with nowhere to sleep, two stays booked over the same nights, a move between stays with no travel leg, a booking whose dates disagree with the days it covers, a stop 60 km from that day's base, a to-do that is overdue or due after you have left. Expensive mistakes first.

Where you sleep is the trip as stays rather than as days — Days 3–6, Amankila, 3 nights, AMK-9931. That is the sentence a confirmation email gets checked against, and it flags a booking whose dates do not match the nights. Check-out is the morning after the last night, which is the off-by-one that makes a right booking look wrong.

Due dates do something. The To Do tab has late / today / this week badges, a Next seven days strip, a sort-by-date toggle that keeps undated items at the bottom, and a Due this week card on the dashboard. A second list on the same tab is the packing list, with who packs each thing and suggestions worked out from the trip itself — beach days want reef-safe sunscreen, temples want covered shoulders, an overnight flight wants an eye mask. Each suggestion says why, and becomes an ordinary row you can edit or delete.

Exports, snapshots and after the trip

A calendar you can subscribe to. A downloaded .ics goes stale the day after you export it; /api/honeymoon/feed?token=… is the same calendar at a URL, which iOS, Android and Google Calendar all poll. Settings offers the URL and a webcal: link. It uses a share token, so it is revoked the same way.

The .ics itself carries TZID on every timed event (so a 14:05 flight means 14:05 there), GEO plus Apple's structured location (which turns an entry into a directions button), a URL to the booking, the real duration instead of a one-hour guess, and an alarm — thirty minutes before a stop, two hours before travel. ?days=3,4,5 exports a subset; ?alarm=0 turns reminders off.

Print options: pick the days, include or drop the confirmations, the emergency details and the guide notes, and choose an A5 booklet that folds into a passport.

Snapshots (Settings) freeze the whole trip as JSON. honeymoon_trip is a singleton and threading a trip id through eleven tables to plan two trips at once is not the trade this portal wants; a snapshot answers what the singleton cannot — keep the honeymoon after you have flown home, and start the next trip from a copy. Restoring replaces what is live in one transaction, and snapshots the current state first under its own name, so even that is undoable.

Documents — passports, visas, insurance, e-tickets, images or PDFs up to 25 MB — are cached by the offline snapshot so they open at a border with no signal. They are served from the photos volume like every other upload, so their URLs are unlisted rather than secret; the upload route deliberately never writes them into photos.json, so nothing here can appear in the public wedding gallery.

Post-trip mode. Set the trip's phase to After on Settings and every stop gains did it / skipped, a star, and a line about what it was actually like. The phase is yours to set rather than worked out from the dates — a trip is not over because a date passed.

Keyboard shortcuts

Key Does
⌘K or / Find anything — places, notes, to-dos, days, flights, confirmations
⌘Z Undo the last delete (ten deep)
g then d t m i v p s e c u g Jump to a tab
n New place
[ ] Previous / next day on Today
? The list of these

Bare keys are ignored while you are typing in a field.

Dashboard

Overview (the Dashboard until v0.10.0) is the landing page — the whole trip on one page. It is an ordinary page that grows to fit its cards: until v0.10.0 it forced itself into the window, which cut cards off mid-row on a laptop and stacked them on top of each other on a phone. Long lists scroll inside their card. ⬇ Download offline copy sits in its toolbar.

Its map shows confirmed pins only — an unconfirmed pin is a guess, and an overview built from guesses is worse than a smaller honest one — with your itinerary drawn over it, each day in its own colour with numbered stops. Headline stats sit top-left (days, countdown, places, pins to review, stays, to-dos, excursions) with a small map alongside them on the right showing everything pinned; below that the itinerary with each day's stops and empty days flagged, then a Needs attention list, a rough cost, your shortlist, and a planning-progress bar. It's a read-out rather than another editor: every number links to the tab that does the work.

The cost figure only counts entries that actually have a number in them, says how many it couldn't price, and ignores nights and headcount — it's a sense of scale, not a budget, and it says so on the card.

Every tab is its own URL — /admin/honeymoon, /today, /map, /itinerary, /travel, /places (with /stays and /excursions as its segments), /checklist, /guide, /settings. A refresh keeps you where you were, and each view is bookmarkable. One shared data load backs them all, so moving between them doesn't refetch.

The map keeps your view. Toggling layers never re-frames it — pan and zoom are yours once you've set them. The map fits itself when you arrive at the page, and ⤢ Fit re-frames on demand. (This applies to all filters, so changing region or day no longer auto-zooms either; press Fit when you want it.)

A country filter excludes only places known to be somewhere else. A place whose country is unknown — no region, or a region created without one — stays visible and is counted in the status line, because a filter that silently drops unclassified data hides the very things you need to see to fix them. Set a region's country on the Guide tab, or set the country on the place itself in its editor; regions without one are flagged on the Guide tab.

Country is a saved trip setting, not a session preference — pick Indonesia and it stays picked across refreshes, logins and devices, hiding everything outside it. Places with no region are hidden while a country is chosen, since there's nothing to judge them by. Switching country re-frames the map to that country's pins, and clearing back to All countries frames everything again — it's a change of destination, unlike the layer toggles, which still leave your view exactly where you put it.

The type dropdown only lists types actually on the map, with the count in the label, so it reflects what's in front of you rather than every category that exists.

🗓 Show itinerary overlays every day's stops at once, each day in its own colour with numbered badges. A panel lists each day and its stops in order, with numbers matching the badges, so a line on screen reads back to a real plan.

The overlay opens minimised. Pressing 🗓 asks for the routes on the map, and a panel that immediately covered the top-left corner of them was in the way of the thing it was describing. The corner keeps a 🗓 Itinerary · N days button instead; click it to open the list, and — to put it back. Both sit clear of Leaflet's zoom control, which the old panel used to cover.

Travel legs are drawn as curved dashed arcs in each mode's own colour and dash, with its icon at the top of the arc: a flight is a fine dotted bow in blue, a boat a longer dash in cyan, a car amber, a train violet, a walk a near-straight green stipple. They follow the itinerary overlay rather than having a toggle of their own — "show me the days" and "show me how I get between them" are one question.

The curve is load-bearing, not decoration. A straight line between two pins is exactly what a day route looks like, and two legs between the same pair of airports — out on the Monday, back on the Friday — would sit on top of each other and read as one. The bow is always to the same side of the direction of travel, so an outbound and a return separate themselves; a flight bows most and a walk barely at all, because a hundred-metre stroll drawn as an arc would be a lie about the route. Legs with no coordinates simply aren't drawn, and the counts line says how many are.

Checklist

Checklist tab (called To Do until v0.10.0). A checklist for everything that isn't a place — visas, jabs, insurance, the house-sitter. Ticking an item asks what happened — a booking reference, an outcome, anything worth remembering — and the note shows under the item afterwards (click it to edit). The tick saves first, so skipping the note leaves the item done rather than undoing your click. Add an item with an optional group, tick it off, set a due date, drag to reorder, hide what's done. Groups are whatever you type (earlier ones are offered as you go), because a fixed set of categories would be wrong for someone else's trip. Progress shows on the dashboard.

Map

Map tab. The map runs full-bleed — it fills the whole content area edge to edge and top to bottom, and nothing on this tab scrolls. One row sits above it: the country (saved with the trip), Filters (day, source, region, type, status), the ⚠ Unconfirmed and 🗓 Itinerary overlays, and a ⋯ menu with the base map and how pins are coloured. The legend is a chip bottom-left that opens on a tap. Clicking a pin opens the place panel beside the map. The row decides which pins are shown; everything that acts on the map floats over it rather than taking height from it — the legend bottom-left, the itinerary top-left, and the tools top-right.

⤢ Full screen, at the right-hand end of the tab row, hands the map the site nav and the admin sidebar — on a 1440×900 laptop that takes it from 1136×522 to 1392×642. The button becomes ⤢ Exit full screen in place and Esc leaves too. It sits outside the scrolling tab strip, so on a phone the tabs scroll behind it and the way out never scrolls off screen. It is deliberately not remembered between visits, and it switches itself off when you leave the Map tab or the portal — a page with no navigation and no visible way back reads as broken, so it is never one you can arrive at.

The tools live on the map, top-right: ⤢ Fit, ⊞ Split, + Add, 📏 Measure and ◯ Lasso, in one panel. Whatever the armed tool needs stacks underneath them in the same column — the measure hint, the lasso's menu, the selected place's card — so nothing up there can cover anything else. Measure and lasso disarm each other: they both want the map's pointer, and two armed at once was a way to get clicks that did nothing.

⊞ Split turns this tab into all three planning tabs at once: the itinerary down the left in a single column, the place library down the right, the map still holding the middle. It is for the part of planning you cannot do one tab at a time — putting a place on a day while looking at where it actually is, and watching the day you just changed redraw beside it.

A stop row in that column is two lines, not one: the place name and its type on top, the clock and the length underneath, and the preset times (09:00 / 12:30 / 19:00, and straight after the last stop) only while the time box has focus. Six controls on one line in a 400px column left the name — the thing the row is about — with nothing, and the pair of lines is shorter than the one line was, because the one line wrapped. The full-width Itinerary tab keeps the single line.

The two side columns are the real tabs, not summaries of them: inline edits, drag-to-reorder, the overflow menus, bulk selection and the place editor all work exactly as they do on their own pages, and each carries a Full tab ↗ link out. Both dividers drag — grab the gutter either side of the map, and each column is clamped against the others so the map can be squeezed to 320px but never out of existence; arrow keys move a focused divider in 24px steps. Split state and both widths are remembered per browser (how you lay out a screen is about your screen, not about the trip). Below 1024px the columns are suppressed and the map keeps the screen.

Every day in that itinerary column has a ◎ Map button that moves the map to that day's stops, switching the route overlay on if it isn't already — either half alone is only half an answer, since a viewport that jumps somewhere without the numbered line arrives as an anonymous cluster of pins. The other pins stay put: this moves the map, it doesn't filter it. A day with nothing pinned has the button disabled and says why.

The map flies rather than cuts. That button, and ⤢ Fit, animate from wherever the map is to where it is going, pulling back through wider zooms on the way and settling in — the arc is what tells you where you just went. Arriving at the page still frames instantly.

Lasso select. Hit ◯ Lasso and drag to draw a freehand loop around any pins you want; everything inside is selected and gets a dark ring. The loop stays drawn until you start another. A menu opens under the Lasso button offering the same verbs as the Places tab — set status, mark reviewed or unconfirmed, delete, clear — and those verbs only appear when the loop actually caught something.

The review button goes both ways. Lasso an area whose pins are all confirmed and it reads Mark unconfirmed; lasso anything with an unconfirmed pin in it and it reads Mark reviewed. One button, and the selection decides the direction, so it always says what it is about to do — mixed selections confirm, because that is the direction you are nearly always heading, and one unconfirmed pin among forty confirmed ones still means "confirm the lot". Un-confirming switches ⚠ Unconfirmed on for you: the map only draws unconfirmed pins when asked, and watching forty pins vanish the instant you clicked is not feedback. The Places tab's selection bar carries the same toggle.

The loop is also how you draw an area. Save as area… at the bottom of that menu writes it as a region's boundary, which is what lets "assign regions by location" on the Places tab be exact rather than nearest-centre. A loop round empty water is still a boundary worth saving, so the control is offered even when no pins were caught. The freehand path is thinned to at most 120 points before it is stored — far past the resolution anything reads it at. There used to be a separate ✏️ Draw an area tool that collected vertices click by click; it was a second, worse way to draw the same shape and is gone.

The Places tab's own selection bar carries the same verbs — Add to day…, the ⋯ field menu, mark reviewed, delete — so which ones you get doesn't depend on whether you happened to select on a map or in a list. A scheduled place says which day it is on, not just that it is on one.

The ⋯ button on that bar, left of Mark reviewed, changes any field across the whole selection in two clicks: pick the field, pick the value. Type, region, country, status, source, review flag, excursion and rating are all there, with their options built from your own data — a category or region you invented five minutes ago is in the list. Name, notes and coordinates deliberately are not: they describe one place, and writing one value across a selection would destroy them.

Hold Shift (or Ctrl/Cmd) while drawing to add to the current selection instead of replacing it. Clustering switches off while the lasso is armed, since you can't meaningfully draw around pins hidden inside a count badge. Places with no coordinates can never be lassoed, so they can't be swept into a bulk delete by accident.

Pins are clustered — framing Singapore and Bali together puts ~1,700 km on screen, where 118 individual pins would collapse into two unreadable blobs; clustering shows counts that split apart as you zoom. Clustering switches off while a day's route is displayed, since merging consecutive stops would hide the ordering the route exists to show.

The view always fits itself to whatever is currently showing: with no filters it frames Singapore and Bali together; filter to a region and it zooms to that island; pick a day and it zooms to that day's stops and draws the route between them in order, numbered. Pin colour is the category, and the legend lists only the categories actually on screen. Click a pin and its detail card opens under the tools, in the same top-right column, with an Open in Google Maps link.

Stays

Stays — a segment of Places since v0.10.0. A shortlist for accommodation. Paste (or drop) Booking.com links — one per line, several at once — and each becomes a candidate. Rate them 👍 Interested / 😐 Mid tier / 👎 Not interested (click the active one again to clear it), filter by rating, and add price and notes in the place panel. Preview opens the listing in a popup inside the portal, with an Open in a tab escape hatch.

Mid tier exists because most of a shortlist is neither a yes nor a no, and forcing those into one or the other threw away the distinction you were trying to record. Excursions, the map's bulk Rating menu and Places' all offer the same three, since a rating you can set on one tab but not filter on another is a trap.

Which area it is in. Every card carries an area dropdown — Ubud, Seminyak, Canggu, whatever you have — sitting with the address and the map pin, because it answers the same question. It is the same set of regions the rest of the portal uses, not a field of its own: an area picked here shows up in the map's region filter, and one created here gets its own write-up on the Guide tab. + Custom… makes a new area without leaving the card, reusing an existing one on a name match rather than creating a near-duplicate; ✎ Edit / remove… renames or deletes, saying how many places each area holds first. Renaming keeps everything filed where it is; deleting keeps the places and clears their area. Editing it inline is the point — tagging six hotels should not mean six trips through the place editor.

Filtering by area. A dropdown beside the sort narrows the shortlist to one area. It lists only the areas that actually hold a stay, each with its count: offering every region you have ever created when six of them have a hotel in makes the control useless, and an option that can only return nothing is a trap. It composes with the rating pills, so "the ones I am interested in, in Ubud" is a question you can ask, and No area set appears when some stays are untagged, so the ones needing an area are one click away. The control hides itself when there is only one area to choose between.

The map deliberately does not follow that filter — the same rule the rating filters have always had. Filtering narrows the list; the map answers "where are these, relative to each other", which a map that empties out when you pick an area cannot.

Sorting, remembered per browser: Recently added (the default), Price: low first, Name: A → Z, Status: booked first, and My ranking. It composes with the rating filters rather than replacing them. Newest-first is the default because a shortlist is worked from the top — the listing you just pasted is the one you want to look at. A stay with no price sorts last, not first: a blank price is not "free", and floating the unpriced to the top of a cost sort buries the cheapest real option. Every sort falls back to the name, so equal rows keep a stable order.

A map beside the list

A map down the right-hand side holds every stay that has a location and frames all of them. It re-frames when the set of stays changes — locating one, deleting another — but never on an ordinary edit, because the viewport is yours once you have panned it.

  • Click a stay's photo and its pin lights up: bigger, ringed, raised above the others, and panned into view by the smallest amount that works, so a pin already on screen never moves. Click again to let go. A stay with no photo gets a ◎ Show on the map link, so the two aren't different features.
  • Click a pin and its card comes to you: scrolled to the middle of the list and ringed. If the current filter was hiding that stay, the filter gives way — you asked for that one specifically.
  • The map is deliberately not filtered with the list. It answers "where are these, relative to each other", which a map that empties out when you tick 👍 Interested cannot: filtering narrows the list, the map highlights. It doesn't cluster either — a "5" badge over Canggu would hide the very pin you clicked a photo to find.

The divider drags, left and right, and the cards answer to the width of their own column rather than the window's — the only thing that can be right once the divider moves, since the same 1600px screen holds one column of cards or three depending on where you put it. One column under 42rem, two to 64rem, three above. The width is remembered per browser. Below 1280px there is no divider: the map stacks under the list, where a 260px-wide map would be no use to anybody.

Ranking

① Ranking turns the card grid into one column of thin rows — position, photo, name, address, rating, status, price aligned down the right — and you drag a row by its ⠿ handle to move it. First is #1. Ordering things is a job for a list: dragging inside a wrapping grid means moving a card three positions to shift it one. The rank also shows as a #3 beside the name in the card view.

The photos in those rows are 288×96 and run flush from the top of the row to the bottom, so nothing frames them — a 3:1 window onto a 3:2 photo, keeping the middle band and cropping the sky and the floor, which is the part of a hotel picture worth looking at. They step back to 144px once the list column itself is under 42rem. A stay whose listing gave no photo keeps the same footprint, so the names still line up down the list.

In the ranking view each map pin carries its position — #1 in the circle for your favourite, on down — so the map becomes the same ordered list as the rows beside it, and you can see whether your top three are all on one side of the island. Only in that view: in the card view the rank is already on the card. A drag renumbers the pins with the rows, immediately.

Two rules that stop a ranking from lying to you. Every drag ranks the whole shortlist, not just the two rows that moved — otherwise the first drag leaves one ranked stay and a tail of nulls that sorts arbitrarily. And the ranking view ignores the rating filters and says so, because ranking inside a filtered subset would renumber those rows 1..n and leave the hidden ones holding stale numbers. Clear ranking puts everything back to unranked.

Removing a stay without deleting it

A stay's ⋯ menu offers Remove from the shortlist. It leaves the list, disappears from both maps, and turns up in a 🗑 Removed bucket beside the rating pills; Put back on the shortlist returns it. You ruled a hotel out for a reason, and "why did we say no to that one?" comes back a fortnight later.

Deleting is not offered on a live stay at all. It exists only inside the Removed bucket, as Delete for good — one deliberate step further on, rather than sitting next to Edit details waiting to be misclicked. That delete is a real delete, and the portal's ten-second Undo covers it like any other.

Three details worth knowing:

  • The bucket is a separate list, not a filter over the shortlist. All means all the ones still in the running, so every pill's count drops when you remove one.
  • The pill only appears once something is in it. A bucket that is always empty is a button that does nothing.
  • There is no "show removed" toggle on the map. The map exists to help you decide; an option to put the rejects back on it works against that. The one exception is the day view, which still draws a removed place you actually scheduled — exactly as it already does for an unconfirmed pin.

The dashboard's stays count and the itinerary's Base picker skip removed stays too: a headline number that counts hotels you rejected is a wrong number, and a hotel you have ruled out is not a candidate to sleep in. A day whose base is already a removed stay keeps it listed, or the day would silently lose its base.

Where a stay's location comes from

A booking link gives up its address and its map pin. The metadata fetch reads the listing's JSON-LD — Booking.com publishes a Hotel block with a full postal address — plus the map centre it drops its own pin on, which is where the coordinates come from, since their JSON-LD carries no geo. A pasted link therefore arrives already knowing where it is.

Get locations for N does the same for a shortlist you already have: it walks every stay whose listing hasn't been asked yet, fills in the address and the pin, and reports how many it found. Cards show 📍 or say no pin, so it is obvious what the map is still missing. Coordinates that come from a listing are marked reviewed rather than "needs review" — they are the listing's own location, not a geocoder's guess at a name.

Stays that are past Idea show their status chip on the card, so the status sort doesn't look arbitrary.

Type a bare number into a stay's price field and it tidies itself on Enter — 250 becomes $250 per night, 1200 becomes $1,200 per night. Anything that isn't a plain number is left exactly as typed, so a note like ~500k IDR entry survives. The symbol follows the trip's currency in Settings.

Each stay shows the listing's own photo, pulled from its Open Graph tags when the link is added. Stays saved before this existed get a Get photos for N button. Price and notes are still yours to add.

Two limits worth knowing, both imposed by Booking.com rather than by choice:

  • A listing that gives nothing falls back to the URL slug for its name. Booking.com answers an ordinary server request with a bot challenge, but serves full metadata to link-preview crawlers, so the title and photo do come through. Airbnb gives crawlers nothing — those links save with a slug-derived name and no photo.
  • The in-portal preview is best-effort. Booking.com currently sends frame-ancestors 'none' in report-only mode, so embedding works today but is one config change away from not. If the frame doesn't load, the popup says so and offers the link instead. Your notes and rating live here either way.

There's no import of your Booking.com favourites — that would need your account credentials, which this app should never hold. Pasting a batch of links is the supported route.

Excursions

Excursions tab. Things to do — tours, classes, dives, day trips. Paste or drop any link, not just booking sites; the name and photo come from the page where it offers them, falling back to the URL when it doesn't. Each card carries:

  • What it is — the type, from the same category list as everywhere else, so a custom one like Cooking class works here too
  • Cost — type 120 and it becomes $120. No unit is invented, because an excursion might be per person, per couple or per boat; type 120 per person and it stays exactly as typed
  • Notes, a 👍 / 😐 / 👎 rating, and a Preview popup

Excursions are ordinary places carrying a flag, so one can also be pinned on the map and dropped onto a day like anything else. The flag is separate from the category deliberately — what an excursion is varies, and tying the tab to one category would drop anything you re-typed.

Itinerary

Itinerary tab. Drag a day by its ⠿ handle to reorder the trip — the days renumber, their dates follow, and each day's stops travel with it. Days have their own handle in the header so dragging a day never fights the stop handles or the inline text fields inside it.

A day can be inserted where you need it — Add a day before day 4 / Add a day after day 4, from that day's ⋯ menu. The trip renumbers around it and every following date shifts along; the days either side keep their stops, legs and notes. Until this existed the only way to make a day was to append one to the end and drag it up the trip.

Each day also takes a note (via its ⋯ menu) and so does each stop — for the booking ref, what to bring, who to ask for. Duplicate day copies a day's structure and stops onto the end of the trip, and a stop's ⋯ menu can move it to another day, or Move up / Move down. 🖨 Print (in the toolbar's ⋯) produces a clean day-by-day sheet with no admin chrome — every day, its travel legs, its stops and the guide notes, on paper you can fold into a passport. 🗓 Export to a calendar is the same .ics as Settings. On a phone the Calendar view is a month of squares — the date, the trip day, a dot per stop and ✈ for travel — and tapping a day opens it.

The toolbar stays put as the days scroll: ▤ Stacked / ⏱ Clock (Timeline only) on the left, then ☰ Days / ▤ Timeline / 🗓 Calendar, then ⋯. The "things to check" and "where you sleep" read-outs are one folded line under it.

Timeline draws each day against the clock — everything on it, travel included. Flights, drives, boats and trains are striped in their mode's colour; an overnight flight runs to midnight on the day it leaves and from midnight on the day it lands. The stay's check-out and check-in times show as marks on the clock. Every item says when it starts and ends, in the trip's 12h/24h setting, and anything without a time is listed as not timed yet rather than being placed somewhere invented. Stacked is the day as one bar of slices in the order they happen; Clock lays them on an axis with travel in its own lane. On a phone the timeline is a vertical agenda instead.

☰ Days / 🗓 Calendar switch between the working list and the trip on a real calendar — every month it touches, Sunday-first, with the days either side shown greyed so you can see the shape of it against the month. Each trip day is a tile with its title, travel legs and first three stops; click one to open the very same day card the list uses, so there is only ever one place a day is edited. The calendar needs a start date (Settings) to exist at all, and says so if there isn't one. Your choice of view is remembered in that browser.

Days are numbered (Day 1, Day 2…). Each day holds:

  • a base — where you're sleeping, chosen from places categorised Stay
  • optional travel legs — flight/boat/car/train/walk, with times and a confirmation reference (add via the day's ⋯ menu)
  • an ordered list of stops, dragged to reorder, each with an optional time

Between consecutive pinned stops the portal shows the straight-line distance, and warns when a single hop exceeds 40 km. This is not driving time — no routing API is involved — but on single-lane Balinese roads it's enough to catch a day that pairs a Canggu beach club with a North Bali waterfall.

A stop doesn't have to be a pinned place: type a free-text label for "lunch near the rice terraces." Deleting a place that's already scheduled keeps the stop and just unlinks it, so the itinerary never grows holes.

A stop is a way into the place it points at. Click a stop's name — here, in the calendar's day card, or in the map's split-view column — and the full place editor opens: name, type, region, country, status, the pin on its own map, notes, address, source, price and links. Noticing a wrong address while reading a day no longer means leaving the day, finding the place in the Places tab, and finding your way back. The same edit is on the stop's ⋯ menu as Edit <place name>, so it is discoverable rather than only hoverable, and the day's Base gets a ✎ beside it — the base is a place too, and it was the one place on the card with no way in. Stops with no place behind them are still edited inline where they sit.

Travel

A journey is a ticket. A leg is one hop of it. You enter the ticket.

The tab used to be a flat list of legs, each asking which trip day it belonged to. That is backwards twice: a ticket is one booking with several legs — SAN → SEA → SIN → DPS is one flight to enter, not three things to file — and which day a leg falls on is arithmetic the confirmation email has already done.

One card per journey. Its route, the dates it spans, door-to-door time and time actually moving, its legs in the order you fly them, the layovers between them, and one booking reference covering the lot.

Days are derived. A leg carries the dates the ticket states; the day it is drawn on and how many days it spans are worked out from those and written in the same request, so a leg is never briefly filed in the wrong place. day_id and arrive_day_offset are still what the itinerary, the calendar file and the print sheet read — they are outputs now, not inputs.

Nothing was migrated. A leg with no journey is treated as a journey of one, so every leg entered before this reads correctly; Add a connection on such a leg is what turns it into a real journey.

Three ways to enter a ticket

Way When
Paste the flight numbers — SQ 27 2026-09-12 / SQ 938 2026-09-14, one per line Fastest, and the reason the flight lookup exists. Every leg is looked up and filled in — times, terminals, aircraft, both time zones — and placed on the right day. Paced for the lookup's one-request-a-second free plan
Start a journey, add legs No flight numbers to hand, or a boat/car/train
Both Paste what you have, correct what is wrong

A new connection prefills from where the last leg landed, on the day it landed — which is the tedious half of entering a multi-leg ticket.

What it tells you that you would otherwise work out yourself

  • Layovers, computed across time zones: how long you have, where, and whether it is tight (under 75 minutes, which is not enough with bags), impossible (the connection leaves before you land), or not a connection at all (you land at one airport and leave from another — that is a transfer).
  • Door to door versus time moving, so a 26-hour journey that is 21 hours of flying reads differently from one that is 15 hours of flying and two long waits.
  • "That's 21:00 back home" beside a landing time whenever the leg crosses zones. Times are stored as the local clock at each end — what the ticket says — and a 23:59 departure landing 06:30 two dates later is 15 h 31 m, not a negative number.
  • A date with no day, with both ways out offered inline: add days up to it, or file the leg on a day the trip does have. A leg whose date disagrees with the day it sits on is flagged rather than silently corrected.

One level, not three

The old leg panel had a Booking details collapse which itself contained a + Booking details button opening a second panel. Now:

  • On the leg: where, when, which flight, which terminal, which zone, which seats.
  • On the journey: the reference, what it cost, what is paid, the cancellation date, the contact — once, because a ticket has one of each however many legs it has.

The itinerary's own leg card uses the same leg editor, so noticing a wrong time while reading a day does not mean changing tabs — but the ticket is not repeated there, because it belongs to the journey.

Places

Places tab. The library, built for a few hundred rows: search plus filters for source, region, category, status, needs review and not pinned. Tick multiple rows for bulk status changes, to clear review flags, or to delete the selection in one go. Each place carries a status — Idea → Shortlisted → Booked — and rows already on the itinerary show a scheduled badge.

Sources. Every place and guide note records who suggested it, so batches from different people stay tellable apart — the bundled data ships as YouTube Travel Guide (224 places, 12 notes) and Amy's Suggestions (7 places, 2 notes), and anything you add yourself defaults to Added by me. It is a free-text label, not a fixed list: type a new one in the place editor and it becomes a filter option on both the Places and Map tabs automatically. Bulk-deleting a place that is on your itinerary leaves the stop in place as plain text, and the confirmation says so before you commit.

Adding or re-pinning a place. The editor's Find box takes three kinds of input:

Input Example Accuracy
A name to search Tukad Cepung Waterfall Good for landmarks, poor for small businesses
A Google Maps link paste the URL straight in Exact — reads the pin out of the URL
Raw coordinates -8.4715, 115.3567 Exact

Right-clicking a pin in Google Maps copies the coordinates, which is the most reliable route for anywhere the search can't find.

Country sits between Category and Region, and is normally left alone: it reads — from region (Indonesia) — and follows whatever region you pick, so there's nothing to keep in sync. Set it explicitly when a place has no region at all (a one-off with nowhere to file it) or genuinely sits outside its region's country — the editor says Overrides its region when it does. Clear it back to the inherit option and it follows the region again. The region dropdown shows each region's country beside its name, so an unset one is visible at the point you'd notice.

Categories and regions are yours to manage. Both dropdowns end with + Custom… and ✎ Edit / remove… — pick it, type the new one, press Enter. A new category is used immediately and joins the filter lists and the map legend with its own colour; a new region is created as a real region (so it gets a write-up on the Guide tab) and is reused rather than duplicated if the name already exists.

Edit / remove… opens the list with a usage count against each entry. Renaming keeps everything filed where it is — the underlying key never changes. Deleting a category moves its places to Other rather than stripping them; deleting a region keeps its places and just clears their region. Other is the fallback and can't be deleted.

Categories ship as Stay, Beach Club, Bar, Nightlife, Restaurant, Cafe, Waterfall, Beach, Hiking, Nature, Temple, Attraction, Activity, Spa, Hair & Nails, Gym, Cowork, Shopping, Transport, Other — all editable and removable.

Lasso → itinerary. With pins selected, Add to day… puts every one of them on that day as stops, skipping any already there. That's the point of selecting on a map: draw a loop round a neighbourhood and send the lot to Tuesday.

A pasted or dropped Google Maps link fills in the rest. It resolves as soon as it lands — no need to press Find — and sets the name (from the link's place segment), the address (reverse-geocoded from the coordinates, so it's a real address rather than a URL slug), the pin, and keeps the link itself on the place. Anything you already typed wins; it only fills blanks.

+ Add place sits on the Map tab as well as the Places tab, so a place can be added without leaving the map.

Which geocoder answers, and when it will not

Search goes to Nominatim first — its results are better here, and extratags brings back opening hours, a phone and a website with the pin — with Photon (komoot, the same OpenStreetMap data, keyless) behind it.

The fallback exists because Nominatim's usage policy is enforced: it answers 403 Access denied to a caller whose User-Agent does not identify the application and offer a way to reach whoever runs it, and it does the same to an IP it considers heavy. That is exactly what happened to the deployed instance, and it presented as "lookup failed" on the server while the same search worked from a laptop. Two things follow:

  • Set GEOCODER_USER_AGENT on the stack to something with your email in it. That is the difference between being occasionally rate-limited and being blocked, and it gets the better geocoder back as primary.
  • Fallback hits are labelled "fuzzy match, check it", and a single fallback result is never auto-applied unless its name actually contains what you typed. Photon matches loosely: asked for YBR airport it offers YBL in British Columbia and a Don José in Argentina — both genuinely aerodromes, both wrong. Ranking puts the mode's kind first and uses a typed code only to break ties, so a "Delhi Public School (DPS)" cannot outrank Ngurah Rai.

A pasted Google Maps link, or right-clicking the pin there and copying the lat, lng, bypasses both services and is always exact.

As soon as there is a coordinate, a map appears inside the Location card showing exactly where the pin landed — so "Looks right" is a judgement you can actually make rather than a guess. Drag the pin, or click anywhere on the map, to move it; that covers the common geocoder failure of right-street-wrong-side without going back to Google Maps. Placing the pin by hand counts as confirming it and clears the review flag on its own.

Guide

Guide tab. The half of the travel guide with no coordinates. Region write-ups (expand a region to edit its description) and Know Before You Go cards grouped by category — the tap-water warning, the rupiah rate, Grab vs. Gojek, the helmet law, driver contacts, and an Itinerary ideas card holding the suggested Ubud walking route. All inline-editable, all deletable; note bodies grow to fit rather than scrolling inside a fixed box.

Settings

Settings tab — drag the trip onto a calendar. Two months are shown side by side: press on the first day you're away and release on the last. The range shades as you drag, either end can be picked up and moved afterwards, and Quick set does 7 / 10 / 14 days from the current start.

On a phone or tablet the calendar is locked until you tap Change dates, so scrolling the page never drags out a new trip; it locks itself again once a range is set. A mouse or trackpad is never locked. (Until v0.10.1 the month arrows also did nothing — the calendar swallowed their clicks.)

Setting the range builds the day rows to match it, which is the point — a fourteen-night trip stops being fourteen presses of + Add day. Moving the whole range shifts every date and touches nothing else. Clear dates goes back to relative day numbers and keeps every day.

Changing the dates never deletes a day. Shortening the range used to remove the days that fell past the new end, and their stops and travel legs with them. It asked first — but that is the wrong trade at any level of warning: dragging a date range is an ordinary, exploratory edit, and an hour of planning should not be one mis-drag and one reflexive OK away from gone. A 14-day trip re-dated to 6 days now keeps all 14 days, their stops, legs and notes, and they take their new dates from the new start.

Days that fall past the end are flagged in red instead: a rose ring and a line on each day card saying why, red cells in the calendar, a banner at the top of the Itinerary, a note on this card naming the days and saying nothing was deleted, and a red N days past the end in the portal header — a link, from any tab, to the itinerary that needs fixing. Move their stops onto earlier days, delete the days you don't want, or drag the range back out; the flags clear themselves the moment the dates cover the days again. A longer range still builds the days it is missing, exactly as before — that half was never destructive.

Also here: the trip's currency (the symbol on prices you type as a bare number, and on the dashboard's rough costs — nothing is converted), and two exports.

Take it with you. Add to calendar (.ics) downloads the trip as a calendar file — one all-day event per day carrying its stops, plus timed events for every travel leg and every stop with a time. It imports into any phone with no account and works with no signal, which is the state you'll actually be in. Download a backup (JSON) saves the whole portal to one file; take one before any big bulk edit, because nothing here is versioned.

Nothing you delete is really gone for ten seconds. Deleting a place, a day, a stop, a travel leg, a guide note or a to-do puts an Undo at the bottom of the screen. Undo restores the row and its links — a restored place is re-attached to the stops it was scheduled on, and a restored day comes back with its stops and travel legs. Hovering the toast pauses the countdown. Because of this most deletes no longer ask "are you sure" — a confirm you can undo is two speed bumps for one hazard. Deleting a whole lasso of places still asks, because "116 places" is worth reading twice.

⌘K finds anything. Places, guide notes, to-dos, days and regions in one box, from any tab, with ↑↓ and Enter. Every kind is guaranteed a result before the rest fill by relevance, so two hundred places can't bury the one to-do that matches. Picking a place opens its editor where you stand; anything else takes you to its tab.

The place editor won't throw away your typing. Escape, the ✕ and a click outside all ask first if you have changed anything, and stay put if you say no. ⌘/Ctrl+Enter saves from anywhere in the form.

Verify the portal's logic (no database or network needed):

npm run check:honeymoon    # distances, date maths, URL parsing, travel arcs,
                           # overnight legs, ranking, seed integrity — 257 checks

← All pages

Clone this wiki locally