# Changelog

## Booking Elements

Each `## [X.Y.Z]` maps to a pushed `booking-vX.Y.Z` tag. Pre-1.0 a MINOR may break and carries a
"Downstream migration" note with each consumer's steps and the rollback (the previous exact pin).

### [0.5.0] - 2026-10-29

#### Fixed

- 3-1028-1157-8783 (MINOR) **The card form survives a turn of the phone.** `PayCheckout` drew Stripe's form in a different place on the computer (`side`) and the phone (`stack`), so any flip across 768px (a phone turned to landscape at 844px, a window resized) destroyed and remade it: the guest saw "Opening the secure card form" again, lost what they typed, and each flip spent 1 to 2 of the 6 GBF-30 calls a booking page may make, so a few flips ended in a 429 and "The card form did not open". `PayCheckout` is now one tree: the form's div (key `form`) stays put and only the parts around it change; same markup as before. New `/core` `keepSessions()` (with `SESSION_SPARE_MS`, a minute): the page's in-memory sessions by key, so a form drawn again mounts Stripe on the open session (one GBF-30 call while it lasts; a refused call, a session within a minute of its end, or `drop(key)` opens anew). `GuestBookingFlow`'s Pay keeps its sessions by way and booking and drops one when its form did not open, so Try again still asks for a new one; `guest_payment_started` is told once per session. Downstream migration: nothing to change for `GuestBookingFlow`; a site drawing its own `StripeCheckout` may wrap its `openSession` in `keepSessions().open(key, start, Date.now())`. Rollback: the previous exact pin. Tests in `tests/booking-elements-react-pay.test.mjs` (a react-dom/client run on `tests/helpers/fake-dom.mjs`).
- QA 2026-10-28 G6: `SizeChart` draws a band to the end of its last cm (heights are whole cm, both ends in), so two sizes next to each other meet on the track: Any that fits on Evolve (S 163 to 172, M 173 to 179, L from 180) showed a gap at each step. The bands' numbers and the fit are unchanged. Downstream migration: nothing to change. Test in `tests/booking-elements-bikes.test.mjs`.
- QA 2026-10-27 G7: `WhenStep` takes `tourOnly` (the flow passes it for a trip with a tour and no rental): the sub asks for the tour's day (`when_sub_tour`, `when_sub_tour_more`), and the halves with the shop's rental hours, the days line, the Your days panel and sheet are not drawn. `TourStep` takes `included` (drawn under the title, `.og-tour-included`, both widths); the flow passes `tour_included_own` or `tour_included_rent`. New words in en, it, de, fr.
- QA 2026-10-27 G4: a price per bike and per tour before Plan. `/hooks` `pricesQuery` and `useDayPrices(firstDay)` (W7-21, one day from the trip's first day, 5 minutes stale time); `BikesStep` and `bikesFromGroup` take `dayPrices` (a site's `looks` price still wins, Any that fits is "from" the lowest); the flow wires it on Bikes only. `/next` `ROUTE_OPERATIONS` serves `prices` (no credential, on by default). The tour card's price line is no longer hidden on a phone.
- QA 2026-10-27 guest minor: `StepperBand` numbers only the steps the guest goes through. A skipped step keeps its computer column without a number and has no phone bar; the phone's "n of m" counts seen steps only.
- QA 27 Oct G8 and the sold out minor. **A bike's card moves only the riders it fits.** While the group rides one bike, a tap on another bike moved everyone, a 140 cm kid onto an adult e-bike, who then blocked Next. `bikesPickEvents(assign, id, models, riders)` moves only the riders the bike has a size for (no height, or a bike with no fit ranges: they move); nobody it fits, nobody moves. When a size is gone, Next names only the riders on the bike it brings into view (`outOnBike`), not a rider on another bike. Downstream migration: callers of `bikesPickEvents` pass the step's models and riders to get the new rule; with two arguments it behaves as before. Tests in `tests/booking-elements-bikes.test.mjs`.
- QA 27 Oct G6 **One size chart with no gaps.** Any that fits showed the bands its models share (Evolve: S 163 to 170, M 175 to 178), so a 172 cm rider sat on no size on the chart and the fit put them on one by another rule. New `/core` `withoutGaps`: a gap between two sizes is split at its middle (S to 172, M from 173), overlaps stay. `anyBikeRanges`, `chartRangesOf` and a model's catalog fit (`fitOfProduct`) close their gaps, and `placeAnyBikeSizes` books the size the Any chart shows for the height (on the model whose band holds it first). Downstream migration: nothing to change; a height in a former gap now gets the chart's size. Tests in `tests/booking-elements-bikes.test.mjs`.
- QA 27 Oct: below 1024px the flow frame is at least a screen tall and the step foot (`.og-flow-frame > .og-foot`) sticks to the bottom, with the safe area; Plan's bar ends the page with no gap under it.
- QA 27 Oct G10: `GuestBookingFlow` brings back what the guest typed after a reload or a remount: `kept.ts` `draftOf`, `withDraft`, `useKeptDraft` (page memory, then `history.state` key `ogFlowDraft` written on `pagehide`; never browser storage; never the password, promo, terms tick or anything paid), `keptState(raw, draft, shop)`. `withPage` (router): while the availability read is on its way the address's step stands. `PlanStep` `openWho` (additive): opens on who books it when the trip came back with it typed.

#### Added

- 3-1029-1649-f45e (MINOR) **The riding atlas's Book link (job H1c, outdoor-grid-api `docs/destination-guides.md` 5.1, 5.3).** `BOOKING_SOURCES` gains `atlas`. New `/core` `linkSizes` and `handoffFromQuery`: `prefillFromQuery` reads `sizes=M,L` (one size per rider in rider order, an empty entry is none, at most 20 of 1 to 20 characters) into `FlowPrefill.sizes`, and `handoffFromQuery` reads `handoff` (43 to 128 base64url characters); anything that does not read is dropped quietly. `LINK_PREFILL_KEYS` gains `sizes` and `handoff`, so the guest's first move takes both out of the address. `doorFromQuery`: days, a count and a size for every rider (`sizesForAll`) is a rent door, also with no `set`. `GuestBookingFlow` takes a new `handoff` prop, keeps it on the trip (`GroupState.handoff`, memory and the tab's draft only, never the kept picks) and books with `atlas_handoff` when `source` is `atlas` (`groupBookingOf` option `atlasHandoff`). Such a link opens on Bikes past Who, each rider's size picked when the product has an option of that label free on every day (`prefillSizesOf`); Book on Plan opens Who first, once, when a name or a renter's height is missing (`whoLeftOf`, words `who_before_pay`). Plan from the atlas lists what goes to the shop (`PlanStep` / `PlanBoard` `sharedWith`, part `plan-shared`, words `plan_shared_*` in en, it, de, fr). The generated types follow the contract on dev (W7-08 `atlas_handoff`, `source` `atlas`; the guest code schemas are now `features__shop_site__flow_contracts__CodeSend` and `__CodeCheck`). Downstream migration: additive; a shop's own site (evolvefinale.com, job H2) passes `source={sourceFromQuery(query)}` and `handoff={handoffFromQuery(query)}` to `GuestBookingFlow`. Rollback: the previous exact pin. Tests in `tests/booking-elements-link.test.mjs`, `tests/booking-flow-prefill.test.mjs`, `tests/booking-flow-group-request.test.mjs`, `tests/booking-flow-react-group.test.mjs`, `tests/booking-flow-guest-flow.test.mjs`.
- 2-1027-2217-ced0 **`google_ttd` is a booking source (distribution J13).** `BOOKING_SOURCES` is `["chatgpt", "google_ttd"]`: a link with `src=google_ttd` (Google Things to Do's deep links) books with `source: "google_ttd"`, which the API keeps as the booking's `came_from`. Downstream migration: nothing to change, additive.
- 2-1027-2009-aa01 **`relayFlowEvents`, an `onEvent` that sends the guest's events to Outdoor Grid (PostHog plan 2026-10-26, job 6).** New `/core` `relay.ts`: `relayFlowEvents({ url, fetch?, beacon?, delayMs?, setTimer?, clearTimer?, listen? })` returns a `GuestEventSink` that keeps events in memory and posts them as `{"events":[...]}` (text/plain, `keepalive`, `credentials: "omit"`, no preflight) 2 s after the first, at once at 20, and through `navigator.sendBeacon` on `guest_flow_abandoned` or when the page is hidden or closed (the listener is added on the first event, browser only). Batches never pass 20 events or 16 KB (`relayBodies`, `RELAY_MAX_EVENTS`, `RELAY_MAX_BYTES`); `guest_booking_paid` is never sent (the server tells it). It never throws, retries, logs or stores, and sets no cookie. The hosted flow now passes it to `GuestBookingFlow`. Downstream migration: additive; evolvefinale.com passes `onEvent={relayFlowEvents({ url: "https://api.outdoorgrid.ai/v1/public/shops/<their slug>/flow-events" })}` to `GuestBookingFlow`.
- 2-1027-2009-aa01 **`guest_step_viewed` leaves `step_index` out for a page outside the flow's order** instead of sending -1, which the API's relay refuses. Downstream migration: nothing to change.
- 2-1027-2009-be38 **`BookingFlow` (the single flow) tells the same events through `onEvent`.** Steps viewed and completed (`BOOKING_STEPS`, with the kind, party and days buckets), a Next or Book that waits (`guest_step_blocked`: `incomplete` for the site's own problem, never its words; the quote's code when the shop refuses), a refused booking and leaving before booking. New optional props `onEvent` and `hostKind`. Downstream migration: nothing to change, additive.
- 2-1027-2009-be38 **`GuestBookingFlow` tells the site's analytics through a new `onEvent` (PostHog plan 2026-10-26, job 5).** Each step viewed and completed (from the root's ref callback, so a page per step or a second render tells nothing twice), a Next that waits (`guest_step_blocked` with the step's problem code), Pay opening (`guest_payment_started`, the amount as a band) and the card form not opening (`guest_payment_form_failed`), a refused booking (`guest_booking_refused` with `bookFailureCode`) and leaving the tab before Booked (`guest_flow_abandoned`, on `pagehide`). New optional props `onEvent` and `hostKind` (left out, read from the address), `PayPage` `onPayStart` and `onFormFailed`, `StripeCheckout` `onFailed`. Nothing a guest typed is ever in an event. Downstream migration: nothing to change; a site that wants the funnel passes `onEvent` to its relay (evolvefinale.com: one prop).
- 2-1027-2009-be38 **The guest flow's events, pure (PostHog plan 2026-10-26, job 5).** New `/core` `events.ts`: `pageViewed` and `flowLeft` over an in-memory `FlowTrack` (a random flow id per tab, never stored) make `guest_flow_opened`, `guest_step_viewed`, `guest_step_completed` (seconds on the step, party and days buckets, the kind picked) and `guest_flow_abandoned`; `stepBlocked`, `paymentStarted` (a money band, never the amount), `paymentFormFailed` and `bookingRefused` make the rest; `deliver` lays the base on (`shop_slug`, `flow`, `host_kind` from `hostKindOf`, `locale`) and scrubs every event against the contract before the host hears it; `flowEvents` keeps one flow per shop across a page per step. The contract gains `shop_slug` on every guest event (the public site read names the shop by its slug) and `kind` on `guest_step_completed`. `/react` `bookFailureCode` names a refused booking as one code. Downstream migration: nothing to change, additive.
- 2-1027-1148-6ec9 **The guest analytics contract (PostHog plan 2026-10-26, job 1).** New `/core` `analytics.ts`: `GUEST_EVENTS` and `GUEST_BASE` (each guest booking event and the properties it may carry, steps from `FLOW_STEPS` and `BOOKING_STEPS`), the value kinds (`PropKind`, `PropsOf`), `scrubProps` and `scrubGuestEvent` (only listed properties whose values fit; a code never holds spaces, `@` or a long digit run) and `isPiiShapedKey`. Nothing is emitted yet; `onEvent` comes in a later job. Downstream migration: nothing to change, additive.

#### Fixed

- QA-1027 B4: `GuestBookingFlow` books nothing when paying online is the shop's only way and Stripe cannot open (`flowWaysOf(...).phoneOnly`, now also after a 409 `payment_choice_unavailable` on booking): Pay gives the shop's phone instead of holding the gear 15 minutes for a payment nobody can take.

- QA-1027 G10 follow-up (Codex round 1): the reload draft written into the page's history entry keeps no name, email, phone or who books (`withoutContact`): only the riders' measures and levels by place. Names and contacts stay in the page's memory and are lost on a reload. Tests: `tests/booking-flow-react-group.test.mjs`.

- QA-1027 G1 follow-up (Codex round 1): `ChoiceCard` never shows a broken image: a photo that fails to load (a 404, or a path on the shop's own site this host does not serve, as Evolve's kind stills on the hosted page) falls back to the card's media or icon ground, also when it failed before hydration. Tests: `tests/guest-qa-1027-static-miss.test.mjs`.

- QA-1027 G4 follow-up (Codex round 2): the Bikes step's prices are the one-day price (W7-21 `days: [1]`), now always said as a day price on the model rail and the bike view: "€90 a day", "from €70 a day" for Any that fits (new `bikes_from_a_day` in en, it, de, fr), never a bare amount on a longer trip. Tests: `tests/guest-qa-1027.test.mjs`.

- QA-1027 G10 follow-up (Codex round 2): what the guest typed (names, measures, levels, the lead's contact, who books) is kept in this tab's sessionStorage (key `og-flow-draft:` plus the shop, `kept.ts` `keepDraft` / `readDraft`), written with the picks by the event handler, read through useSyncExternalStore; it lasts 30 minutes from the last change, goes when the trip is booked and with the tab, and is never in the history entry. A reload keeps names and contacts again. Tests: `tests/booking-flow-react-group.test.mjs`; `tests/source-policy.test.mjs` allows the one store.

### [0.4.12] - 2026-10-24

#### Added

- 4-1024-0147-1ecd **The confirmed page's Your bike card can show the shop's own photo of the model (evolvefinale.com, OG-1131: a Pivot Firebird showed the glyph, Oliver asked for a picture of the bike).** New optional `FlowLooks.booked.bikes` (per bike product id, the booking read's `ViewLine.product.id`, a `FlowPhoto`) and `BookedTrip` prop `bikePhotos`: the host's photo is drawn instead of the read's `product.image`; left out, the read's image, else the ODG gear glyph as before. Downstream migration: nothing to change; a host that wants its own bike photos passes `looks.booked.bikes`.
#### Changed

- 4-1024-0114-eef0 **The guest flow follows what the shop rents (QA night 24 Oct, S-04, S-14, S-15).** The API now names each product's and extra's gear (W7-06 `products[].gear`, `extras[].gear`: `bike`, `ski` or `other`). New `/core` `gear.ts` reads it: `rentedGearOf`, `wordsGearOf`, `productsForGear`, `extraFits`, `siteLeadGearOf`, `termsOf`. A shop that rents skis and bikes gets a What card for each, `rent-ski` and `rent-bike` (`FlowShop.activities[].gear`), in the order its home page shows them. The Bikes step shows the gear the trip picked. The words follow the trip's gear: a ski trip reads "Rent skis", "Skis", "Next: your skis" and skiing levels; a trip of skis and bikes together reads plain words. New `/react` `words/gear.ts` (`GEAR_WORDS`, `gearWordList`, `withGearWords`) holds these words, and the host's own `words` still win key by key. New `useGearLook`, `LookOverride` and `wordsOfLook` in `look.tsx`. Kit offers only the extras that fit the gear the trip rents (no ski locker with a bike), and keeps an extra the trip already took. A plain `rent` pick, from a website link or a kept trip, lands on the card of its gear. The Any card's heading reads "Who gets any bike in their size?" (`bikes_who_any`), never "Who rides the Any that fits?". Downstream migration: nothing to change. A read with no `gear`, such as an older API, keeps one rent card and the bike words. A bike shop reads exactly as before (evolvefinale.com). A host that passes `looks.activities` keeps its own cards.
- 4-1024-0114-eef0 **The optional account starts unticked (S-05).** `initialGroup().password` is now null, so "Make an account with this email" is off until the guest ticks it, and a new trip never waits on a password. Downstream migration: none. A host that relied on the tick being on from the start now sees it off.
- 4-1024-0114-eef0 **The shop did not answer: the shop's bar stays, the trip is kept (S-07).** When the site read fails (a 503, the network), the host's `bar` now stays around the error. The error reads "We could not reach the shop. Your trip is kept. Try again in a moment. Nothing was booked.", and Try again waits while it reads again.

#### Added

- 4-1024-0114-eef0 **The rental terms open in a sheet (S-17).** On Plan, "rental terms" opens the new `TermsSheet` (exported from `/react`). The sheet shows the shop's own cancelling terms (W7-05 `booking.terms.cancellation`, read with `termsOf`) and how this page takes payment (`termsPayOf`). A shop with no terms online gets a line to ask them, with its phone. It opens when the host gives no `termsHref`. Also new: `PlanStep` `rentalTerms` and `WhoBooksForm` `onTermsOpen`, both additive, and new words `terms_*` in en, it, de and fr.

### [0.4.11] - 2026-10-24

#### Changed

- 4-1023-2252-6b5e **The confirmed page's first pick up shows the shop icon tile, not a stand in photo (design 28, Oliver 23 Oct).** `BookedTrip` draws a photo there only when the shop uploaded one for that place: the booking read's `pickup.photo_url`, else the site's place of the same name (`PublicSitePlace.photo_url`), never for a meeting point from the shop's place. Without one the card opens on a 52px tile in the brand's soft accent (`--og-free` over `--og-bg-2`, so it follows the theme, light and dark) with a storefront icon (a map pin for a meeting point), the place's name and "where your trip starts" (`confirmed_starts`, en, it, de, fr). The `place` prop and `FlowLooks.booked.place` are deprecated and no longer drawn: a photo the host hands in is not the shop's own photo of that place. New `store` icon. Downstream migration: nothing to change; a host that passed `booked.place` (a stock or workshop photo) now gets the tile, drop the prop when convenient.

### [0.4.10] - 2026-10-23

#### Fixed

- **Pay could sit on "Opening the secure card form" for ever (evolvefinale.com, 23 Oct).** `mountCheckout` waited with no limit on the payment session, Stripe.js and Stripe's own start, so one that never answered left the guest on the still bar. Now a card form not in the page within 10 s (`CHECKOUT_OPEN_MS`, `timeoutMs` on `StripeCheckout` and `mountCheckout`) stops that run and shows "The card form did not open" with Try again (a new session); a form Stripe makes after that is destroyed, never mounted.
- **A 100% deposit read as a deposit.** A shop whose deposit is the whole trip (`booking.deposit_percent` 100, or a quote whose deposit covers the total) no longer offers "A deposit now, the rest at the shop, 100%" beside "All of it now": the deposit way goes when the shop also takes all now (`waysWithoutWholeDeposit`, `depositIsAll` in `/core`), so Pay opens on all now, and PayCheckout titles a deposit with nothing left at pick up "Pay for your trip", not "Pay the deposit".
#### Added

- 3-1023-1654-482e **The booking read names what the confirmed page draws (BC1, contract).** `PublicBookingView` gains `payments` (method, amount, date, deposit) and each `ViewLine` gains `unit_minor`, `units`, `unit`, `product` (`ViewProduct`: image, glyph, model, e-bike, facts) and `departures` (`ViewDeparture`: day, start, end, `ViewMeeting`). All optional: an older API answers without them.
- 3-1023-1654-482e `FlowLooks.booked` (`FlowBookedLook`: `hero`, `place`): the shop's own photos for the confirmed page, additive.
- 3-1023-1654-482e **The confirmed page after paying (design 28, approved 23 Oct).** The flow's Booked page now shows the new `BookedTrip` (react/finish) for a booked booking. A request or a line still asked of the shop keeps `Booked`. The page has a hero with the shop's photo (`FlowLooks.booked.hero`, else the site's hero photo, else the brand's band), the paid badge, the reference and "See you Monday". It has one primary, Open my trip, plus Add to calendar. Then come the summary cards, the week as a timeline (a day list on a phone), the bike with its studio photo or ODG gear glyph and its kit and pedals, and who is riding with Add height and weight and Send the form. Send the form brings the guest to the share card. What you booked lists unit prices. The side column has the first pick up, the payment with its method and day, the share slot, and change, cancel and questions. New `/core` `booked.ts` provides `bookedSummary`, `bookedWeek`, `bookedDayList`, `bookedBikes`, `bookedRiders`, `bookedLines`, `bookedMoney`, `kitGlyphOf`, `siteHeroPhoto`, `bookedIcs` (the calendar file) and `bookedReceipt` (a printable receipt). Both files are built in their click handlers. The BC1 fields are optional, and each block draws less without them. Other changes: the band is off on Booked; the page runs edge to edge from 1024px; `ShareTrip` has a new `send="outline"`; there is a `credit-card` icon; the new words `confirmed_*` come in en, it, de and fr; the new `flow-booked.css`. Tests: `tests/booking-elements-booked-trip.test.mjs`.
- 3-1023-1654-482e The confirmed page's What you booked lists the kit that comes included as one row naming every piece ("Helmet, chest and back protection and knee and elbow pads", included), with no "1 at €0".
- 3-1023-1654-482e Review fixes to the confirmed page:
  - A one day rental shows both its pick up and its return on the phone.
  - A newer paid amount from GBF-31 that the listed payments do not reach adds one plain Paid row, on the page and in the receipt.
  - A meeting point's Directions never fall back to the shop's place.
  - A US or Canadian shop's ranges read both ends the same way ("Mon, Nov 2 to Fri, Nov 6").
  - Badges stay on one line. The phone's summary cards line up, with the label under the icon.
  - The shop's terms keep "pick up" and their last two words together, and so do our own "pick up" lines (new `keepLastWords`, new word `confirmed_chip_day` in en, it, de and fr).

### [0.4.9] - 2026-10-23

#### Fixed

- **A booker with a one-word name could not book (evolvefinale.com, 23 Oct).** Who books it takes one name and splits it into first and last, so "Oliver" sent `first_name: "Oliver", last_name: null`. The API takes either `name` or both halves, so it answered 422 and the page showed "Not booked yet". The account and the password had nothing to do with it. New core `leadNameOf` sends first and last name when both are given, and otherwise the one given as `name`. `groupBookingOf` and `siteBookingOf` both use it, so the single-trip flow with a blank last name is fixed too. Tests: `tests/booking-elements-request.test.mjs`, `tests/booking-flow-group-request.test.mjs`.

#### Changed

- **The phone's country is a search (evolvefinale.com, 23 Oct).** In `PhoneField` the browser's own long select is replaced by a button with the flag and calling code. The button opens a search above a list of countries:
  - **Matching:** type a country's name in the guest's language or in English ("brasile", "Brazil"; accents and case aside), its two letters ("it", "ch"), what guests call it ("UK", "USA") or its calling code ("39", "+39", "0039"). A calling code lists the country it reads as first (+1 the US, +44 the UK).
  - **Keys:** the arrows move the highlight and keep it in view, and Enter picks. Escape clears the search, and a second Escape closes back to the button. A tap outside, Tab or a click on the number closes it; putting a phone's keyboard away keeps it open.
  - **Accessibility:** the search is a `combobox` with a `listbox` of `option`s.
  - **API:** new core `phoneCountrySearch` and `PhoneCountryEntry`. New words `plan_country_search` and `plan_country_none` in en, it, de and fr. The country is still sent with the form as a hidden `tel-country`.
  - **Tests:** `tests/booking-elements-plan.test.mjs`, `tests/booking-elements-react-plan.test.mjs`.

### [0.4.8] - 2026-10-23

#### Changed

- **Who books it: the phone has its country, the account is ticked from the start, and Pay puts the trip beside the choice (evolvefinale.com, 23 Oct).**
  - **Phone:** new `PhoneField` (react/plan): the browser's own country select, drawn as the flag and calling code in front of the number. It starts on the region of the browser's first language, then the shop's country (`site.shop.country_code`, new `country` prop on `PlanStep`, `WhoBooks`, `WhoBooksForm` and `PhoneField`; "en-US" gives way to a shop outside the US). A code typed or pasted with "+" or "00" picks its country and keeps it while the rest is typed. The field keeps "+39 340 326 0080". The booking's `lead.phone` goes as E.164 (`+393403260080`) from `groupBookingOf` and `leadOf`, with the trunk prefix dropped where the country drops it (0; 06 for +36; 1 for +1, 8 for +7 and 80 for +375 only when the number is too long without dropping it, so St Petersburg's 812 stays; kept for +39, +378, +225, +242). New core `phone.ts` provides `PHONE_COUNTRIES`, `phoneParts`, `phoneValue`, `phoneTyped`, `phoneDial`, `phoneProblem`, `phoneE164`, `phoneCountryOf`, `flagOf`, `regionOf` and `dialOf`. A waiting Book brings the focus to the control marked wrong (the number, not the country select before it). A number with no "+" (an older trip) is still checked and sent as before. `plan_err_phone` and `stitch_problem_phone` now read "Check the number for this country", and there is a new word `plan_country`, both in en, it, de and fr.
  - **Email:** the field no longer starts with a capital or autocorrects on a phone (`Field` takes `autoCapitalize` and `spellCheck`). A browser's autofill no longer paints its blue box over the fields; it keeps the field's ground and text colours.
  - **Account:** "Make an account with this email" is ticked from the start, with its password asked, so the guest can see the booking later (`initialGroup().password` is `""`; `null` is unticked). Before, ticking the box sent an empty password, which the state read as "no account", so the box unticked itself. A signed in guest gets no account box (`PlanStep accounts` is off for them) and their booking sends no account. The trip kept in the browser is cleared once Booked shows the booking.
  - **Pay:** on a computer, Pay's "How do you want to pay?" now sits on the left with the trip card (lines, Total, Today, Pay) on the right, sticky, as every step's aside. Before, both were stacked in one column.
  - **Tests:** `tests/booking-elements-plan.test.mjs`, `tests/booking-elements-react-plan.test.mjs`, `tests/booking-flow-react-plan.test.mjs`, `tests/booking-flow-group-state.test.mjs`, `tests/booking-flow-group-request.test.mjs`, `tests/booking-flow-next-waits.test.mjs`.

### [0.4.7] - 2026-10-23

#### Fixed

- **A tour a day, every bike the same size, and the tour named first (evolvefinale.com, 23 Oct).** The Tour step was one choice for the whole trip: picking a tour on Tuesday took Monday's out, so the summary and the price counted one tour. A pick now replaces only the tours on its day: `tourEventsOf(state, choice, tours, zone, day?)` takes the day shown (a seat with no date is placed by its departure's day, and one whose departure the read no longer lists goes with any pick), with no day it clears every day as before (`leaveTourEvents`, prefill). New `tourChoicesOf(state)` lists every seat, guide pick and request; `tourChoiceOf(state, day?)` takes a day. `TourStep` takes `elsewhere` (the tours on the other days) and calls `onChange(choice, day)`; its rail marks a day with a tour ("your tour", ringed), Next is ready with a tour on any day once every day's tour fits (else Next opens the day that needs a way on), and the summary says "Tours on Mon 20 and Tue 21" (new `tourDaysSummary`, words `tour_day_picked`, `tour_sum_days` in en, it, de, fr). `GuestBookingFlow` keeps the day shown and books every day's tour. Each seat is still one `tour_seat` line for the whole group (`riders: null`). The plan bar names the tour before the bike ("Classic + Firebird, M"), so a long bike name no longer hides it, and changing a tour day from Plan starts with everyone on that tour, not only the rider tapped (`changeFor`, now given the tapped part of the day by `PlanStep`). The Bikes stage gives the bike a box of the row's height (at most 560 px) centred in the stage, so a long parts list grows the ground, not the bike. Tests `tests/booking-flow-wire.test.mjs`, `tests/booking-elements-react-tour.test.mjs`, `tests/booking-elements-plan.test.mjs`, `tests/booking-elements-react-plan.test.mjs`, `tests/booking-flow-react-plan.test.mjs`.

### [0.4.6] - 2026-10-22

#### Changed

- 3-1022-2033-bccc **Guest booking says why a booking is refused for too many today** (prod smoke after v0.19.57, bug 6): a 429 `too_many_bookings` answer reads "This email already started several bookings today. Contact the shop." (en, it, de, fr) with the shop's phone, not "Not booked yet ... Try again" (`flow/bookFailure.ts`, both `BookingFlow` and `GuestBookingFlow`). Needs a Booking Elements release before evolvefinale.com shows it. Tests: `tests/booking-elements-book-limit.test.mjs`.

### [0.4.5] - 2026-10-22

#### Changed

- **The default primary is Outdoor Grid's spruce** (`DEFAULT_THEME.accent` `#1c6a45`, `accent-edge` `#124a30`, `on-accent` `#ffffff`, and the same `@property` initial values in `theme-defaults.css`), not yellow. A shop's own colours still win; a site that sets none now draws green buttons.

#### Fixed

- **A kept trip's refusal waits for When (evolvefinale.com, 22 Oct).** A trip kept in the browser (`og-flow:<shop>`) is priced on reload; when its bike had been taken since, `GuestBookingFlow` opened on What with "Your bike is not free. 1 bike is not free on Fri 23 and Sat 24." above "What are we doing?", before the guest had seen any days (and a cache clear keeps `localStorage`). Running short and the refused days' Status (`too soon`, `closed`, ...) now show only from When on (new pure `tripRefusalShownOn(page)` in `react/group/flow/wire.ts`); on What and Who a refused trip shows nothing, never "We could not price the trip". With nothing free the first way says what it does: "Put your bike on the waitlist" / "Put all \{n\} \{items\} on the waitlist" (new `short_ask_none_one`; `short_ask_none` takes `{n}`), was "Book the rest now", in en, it, de, fr. Tests `tests/booking-flow-guest-flow.test.mjs`, `tests/booking-flow-wire.test.mjs`, `tests/booking-elements-react-short.test.mjs`.
- **A day-only tour link picks the tour.** `prefillLanding` and `prefillOf` take the door in their reads (`PrefillReads.door`): a tour door with a `date` and no `departureId` (the ChatGPT app's `tour` + `day`) takes the tour's one departure that day with a place for everyone as the seat (as `tourEventsOf` books a pick), else returns `tour: AskedTour` (`several` or `none`, with the tour's name). `TourStep` takes `asked` (`{ tourId, day }`) and `onOthers`: on that day the asked tour shows alone as "Your tour", the guide pick hides, and the foot says "Pick a time for \{tour\}"; `TourCard` takes `asked`. `GuestBookingFlow` wires both and names the tour in the note when none fits (a tour the day's read does not list is named from one availability read of the weeks around the day, asked only in that case). New words `tour_sum_asked`, `tour_others`, `tour_asked_none` (en, it, de, fr). Tests `tests/booking-flow-prefill.test.mjs`, `tests/booking-elements-react-tour.test.mjs`, `tests/booking-flow-guest-flow.test.mjs`.
- **A site with no kinds of ride still rents (QA-K lane H).** `flowActivitiesOf` offered the Rent card only when the site read published `booking.kinds`; a shop that never published its website (the default config has none) showed only its tours. It now also offers renting when the availability read lists a product that is not kit. Test `tests/booking-flow-wire.test.mjs`.
- **A website's Book link keeps the picked bike or ski (QA-K lane H).** `item=<id>` was read only as "open on renting", so the guest had to find the thing again. `linkSets` (`/core` `link.ts`) now takes `item` as one more set of 1 marked `quiet` (after the `set`s, at most `MAX_RIDERS` sets; a `set` naming the same id wins; `people` does not multiply it), and `LINK_PREFILL_KEYS` gains `item` so the guest's first move takes it out of the address. `FlowPrefill.sets` entries take an optional `quiet`. `prefillOf` (`react/group/flow/prefill.ts`) leaves a quiet set the shop does not rent (a lesson, a service, a tour, unknown), or one with no read, out without the "left out" line; a rented one is checked like any set. An `item` alone (`quietPrefill`) keeps the guest's kept trip: laid on it when rented (`prefillLanding` answers `applied`), else the kept trip stays. Additive. Tests `tests/booking-elements-link.test.mjs`, `tests/booking-flow-prefill.test.mjs`, `tests/guest-flow-site.test.mjs`.
- **A tour's day without a departure stays in the trip.** `reduceGroup`'s `door` event puts a tour door's `date` in the trip whether or not it names a departure (before, only with one): no trip yet, the day is the trip; outside the link's days the trip widens to hold it (at most `PREFILL_MAX_DAYS`, else the day is the trip). A replay without the link's prefill on a trip the guest already has leaves it alone. Evolve's /book can drop its own widening (`flowLink.ts` `tripWith`). Test `tests/booking-flow-prefill.test.mjs`.

#### Changed

- QA-K (lane A5): the When step showed the shop's usual half-day times on every day, so a Sunday open only 09:00 to 12:30 read "Morning 8:30 to 12:30" and a whole Sunday "8:30 to 18:30". `freeByDay` now keeps a W7-20 or W7-06 day's own `hours` (`WhenDayFree.hours`, new type `DayHours`; left out when it does not read), and `halfState`, `wholeDay` and `todayOpen` take that day's times before the shop's halves (new `dayHalves`); the products' fallback days (`productDaysOf`, when the kinds read answers none) keep them, and today's whole day says its pick up from the day's own opening (`whenSummary`). Additive: a read without `hours` behaves as before.

### [0.4.4] - 2026-10-22

#### Added

- **Guest passkeys (4-1022-0856-ac17, API GP-01 to GP-07).** Seven opt in operations, `passkey-sign-in-options`, `passkey-sign-in`, `passkeys`, `passkey-options`, `passkey-add`, `passkey-rename`, `passkey-remove` (`PASSKEY_SITE_OPERATIONS`, wire shapes by hand in `core/passkeys.ts`), and the browser half with no dependency: `isPasskeySupported`, `getPasskey`, `createPasskey`, `abortPasskey`, base64url, the options from JSON (the browser's parsers when present, else by hand), the credential to JSON, `passkeyProblem` (`cancelled`, `notSupported`, `alreadyAdded`, `noPasskey`, `generic`). The route (`next/flow.ts`, `PASSKEY_ROUTE_OPERATIONS`, never in `DEFAULT_ROUTE_OPERATIONS`) sends the page origin it accepted as `X-Guest-Origin` on these only (a bare https origin, or http on localhost, else 403), `passkey-sign-in` sets the session cookie like `code-check`, the others send it as `X-Guest-Session`, a 404 drops it only on `session_unavailable`, a 400 `unknown_origin` answers 503. `/hooks`: `usePasskeyCalls`, `usePasskeySupported`, `usePasskeys`, `useRenamePasskey`, `useRemovePasskey`. `GuestBookingFlow` takes `passkeys` (default off): "Sign in with a passkey" in the sign in sheet, a neutral button where the browser can, and after a code or password sign in the offer "Add a passkey" / "Not now", the dismissal kept 30 days in `localStorage` (`og-booking-passkey-later`, an end time only). Words in en, it, de, fr. Additive. Tests in `tests/booking-elements-passkeys.test.mjs`, `tests/booking-elements-route.test.mjs`.
- **The shop's country decides how money and dates read (3-1022-0831-316e, A2 North America).** New `/core` `format.ts` (`intlTag(locale, country)`: English reads en-US for a US shop, en-CA for a Canadian one, else en-GB; money in the shop's currency); the flow's words carry the shop's `country` from the site read (`PublicSiteShop.country_code`, added to `openapi/public.json` and the generated types), so a US shop's guest sees $, month first days and a 12 hour clock. Without a country everything reads as before. Additive.
- **The deep link's reader in `/core` (job 2-1022-1003-0940, Evolve /book).** `doorFromQuery`, `prefillFromQuery`, `sourceFromQuery`, `linkDays`, `linkSets`, `withoutPrefill` and `LINK_PREFILL_KEYS` (`src/core/link.ts`) read the one guest booking link (`docs/guest-booking-link.md`) into the flow's door with its prefill and the booking's `source`, from Next's `searchParams` or a `URLSearchParams`. Moved here from the hosted page (`features/guest-flow-site/model.ts` now re-exports them, same behaviour), so a shop's own site on Booking Elements (Evolve's /book) reads a ChatGPT link exactly as the hosted flow does. Additive. Test `tests/booking-elements-link.test.mjs`.
- **Where the guest came from (3-1022-0416-028e).** `GuestBookingFlow` and `BookingFlow` take an optional `source` prop (`BookingSource`, today only `"chatgpt"`; `BOOKING_SOURCES`), and `groupBookingOf` / `siteBookingOf` take `source` in their options and put it on the W7-08 body only when set, so a booking without it sends the same body as before. `openapi/public.json` and the generated types gain `SiteBookingCreate.source`. Additive.
- **W7-21 prices (QA-P3).** The site operation `prices` (`{ first_day, days: [1 to 3 lengths] }`, answer `SitePrices`: per length, product id to the price of one) calls `GET /v1/public/sites/{slug}/prices`, a read that books nothing. `SitePrices` is written by hand until the API contract is regenerated.
- **A link's prefill (3-1022-0256-3fec, outdoor-grid-frontend `docs/guest-booking-link.md`).** `FlowDoor` (every kind) takes an optional `prefill: FlowPrefill` (`first`, `last`, `people`, `sets: {id, qty}[]`); the `door` event gives the trip the count, then the days (a tour's `date` outside them widens the trip, at most 28 days in all, else the tour's day is the trip and the note says the link's days were left out) (`prefillTrip`, `prefillPeople`, `PREFILL_MAX_DAYS` 28 in `/core`). On a fresh link at the flow's start only (a reload or a shared step keeps the kept picks and replays the door without its prefill; a link in the fragment wins), `GuestBookingFlow` waits for the shop's reads (a loading state), then checks the sets (a product, or a kind's products in turn, each as far as it has room on every day of the trip; a failed read leaves them out, said) and the door's tour seat (listed, with a place for everyone), and opens on the furthest step the prefill fills, never Pay (What, Who when the count is missing or someone rents, When, Tour, Bikes, Kit when Next would wait, else Plan); the address follows on the guest's first change. Anything left out says so in one line (`stitch_link_dropped`, en, it, de, fr). The lines above a step (this one, days that passed, running short) now sit in one part, `flow-notes`, apart from each other and from the step's title (they touched before). Pure `prefillOf`, `prefillLandingOf`, `prefillLanding`, `freeOnTrip`, `doorPrefill` in `react/group/flow/prefill.ts`. Additive: a door without a prefill opens as before. Tests `tests/booking-flow-prefill.test.mjs`, `tests/booking-flow-guest-flow.test.mjs`.

#### Changed

- QA-K (lane A4): the made up Firnfink look's fix colour (`FIRNFINK_FLOW_TOKENS.warn` in `react/group/theme.ts`) was amber `#875a00`, which reads as the primary's yellow; it is burnt orange `#9a4a1c` (still at least 4.5:1 on its grounds). Only the demo look changes.
- QA-F2 Booked ticket: a booking of only tour seats showed the shop's opening as "First pick up"; when the view's `pickup.meeting` is true it shows "Meeting point", the departure's day and time, and the point's name and address (en, it, de, fr). `ViewPickup` gains optional `meeting` and `address`.
- **Return check and damage on the real API (job 2-1021-1950-9e37, API docs/return-check.md section 5).** Damage cover never goes on a quote or booking line any more (`PublicLineInput` refuses unknown fields, so `damage_cover: true` answered 422): `groupLinesOf` sends the same lines ticked or not, and `FlowShop.coverOptions` is gone. New site operation `damage-cover` (RC-42, `client.damageCover`, `useDamageCover`): `PUT /v1/public/sites/{slug}/bookings/damage-cover` with the booking's view token as `X-Booking-View`, `Idempotency-Key` as a header and the body exactly `{ category_ids }` (0 to 200 distinct uuids, empty takes it off); `createBookingRoute` serves it by default (only `category_ids` goes on) and the hosted flow BFF lists it. `GuestBookingFlow` sends it in the booking's answer, before Pay, with the categories of the trip's offers while the group ticked the cover, then reads the booking again (`current`) so Pay shows the total and deposit with the cover; the booking stands whatever the cover call answers, and Pay or Booked says so in the guest's words (`cover_failed_not_offered` for 409 `cover_not_offered`, `cover_failed_closed` for `cover_closed`, `cover_failed`, `cover_added`). Offers read the API's extras exactly (`SiteExtra`/`SiteQuoteExtra` of kind `damage_cover`: `id`, `category_id` uuid, `name`, `covers`, `not_covered` as words per language, `price_per_day_minor`, `excess_minor`, `max_per_booking_minor`, the quote's `units` and `amount_minor`). Plan's price for the cover is the quote's extra `amount_minor`, added to the receipt as one "Damage cover" line and to the total while ticked (a deposit way then says the total; Pay says the deposit); else price a day x days x items within the shop's cap, said beside the offer only. `DamageCoverOffer` shows the shop's name for it and what it does not cover (`cover_not_what`). New in `/core`: `coverCategoriesOf`, `coverSavedOf`, `coverRefusalOf`, `coverWords`, `payLinkOf`; `coverQuoteOf` now reads the quote's extras; `react/group/flow/wire.ts` `coverToSendOf`, `coverInTotalOf`. Types regenerated from the API contract (`SiteDamageCoverSave`, `SiteDamageCoverSaved`, `SiteQuoteExtra`, `TripDamage`; `SiteExtra` gains the cover fields and `per: "item_day"`).
- **The trip page's damage report reads the API's block exactly.** `tripDamageOf` takes the trip read's `damage` as the contract has it (`state`, `items` with `name`, `tag`, `severity` each nullable and `photo_urls`, `total_minor`, `paid_minor`, `left_minor`, `pay_link`), and `pay_link` is the trip page's own path (`/s/{slug}/trip/{token}#pay`): a path with one slash in front and no scheme, backslash or space, or an http(s) link (`payLinkOf`). The other fields stay optional. `TripDamage` adds up from the contract alone: the repair, what the guest was not charged as a minus (`damage_not_charged`), on settle what was paid already (`damage_already_paid`), then You paid or You pay. Words in en, it, de, fr. Tests in `tests/booking-elements-damage.test.mjs`, `tests/booking-elements-route.test.mjs`, `tests/booking-elements-flow-operations.test.mjs`, `tests/site-flow-bff.test.mjs`.

##### Downstream migration

A host that serves its own route with an explicit `operations` list adds `damage-cover` to take the cover at booking; `DEFAULT_ROUTE_OPERATIONS` has it. A host that read `FlowShop.coverOptions` or the quote's `damage_cover` lines reads `groupCoverOf` and `coverQuoteOf(quote)` instead. Rollback: the previous exact pin.
### [0.4.3] - 2026-10-21

#### Fixed

- **Evolve feedback 19 Oct 1: When no longer offers a day the quote then refuses as too soon.** The calendar greyed today only by its clock and `notice.cutoff_today`, and the site read sends a null cut off when today is already too soon, so after the shop's notice today stayed open and the quote refused it (too_soon). The When context now reads `notice.first_day` (`WhenContext.firstDay`, `whenContextOf`): every day from today to the day before it is too soon (`blockedDays`, a closed day keeps its own reason), today's halves are gone, `pickDay` never starts on a day that cannot be picked, and `firstOpenDay` (the trim of a kept trip) never starts before it. A day that cannot be picked (too soon, closed, full) says why: on hover its title, and a tap shows one line under the months (part `when-why`, `aria-disabled` in place of `disabled`; a past day stays disabled), as one quiet line of text in the secondary text colour with the small info icon (no fill, no border, no coloured surface), and the first day that works (`firstPickable`, which also passes full days) as an underlined text button that moves the trip there, the same length (`moveTrip`, `WhenCalendar` `onMove`, additive): "Mon 19 Oct is too soon to book online. Start on Tue 20 Oct". Without `onMove` the line names the day in words. New pure `blockedWhy` and words `when_why_too_soon`, `when_why_too_soon_plain`, `when_why_closed`, `when_why_full` in en, it, de, fr. Tests in `tests/booking-elements-when.test.mjs` and `tests/booking-flow-wire.test.mjs`.
- **Evolve feedback 19 Oct 2: a refused trip says why and offers the next day that works, never "We could not price the trip".** The quote's `409 quote_refused` (the shop's prices or booking rules refuse a line: `too_soon`, `too_far`, `too_many_days`, ...) reached the flow as a bare code, so it said the price failed. The route (`next/flow.ts`) now passes a `quote_refused` body's `refusals` on (each `{ code, line }`, machine words only, nothing else), and the client keeps it as `BookingCallError.body` (additive). In `/react` (`react/group/flow/wire.ts`): `refusedWhyOf` (too-soon, too-far, too-long, closed, full or other, from the answer or the 409), `nextTripOf` (the trip moved to the next day that works, the same length, past greyed and full days; its When events) and `refusedSayOf` (the words). GuestBookingFlow shows a Status in the guest's words ("Wed 21 Oct is too soon to book online. The shop needs more notice to get everything ready." / "The first day that works is Thu 22 Oct.") with one primary tap, "Start on Thu 22 Oct", and the shop's phone; Plan says the same where the price goes. A too_soon refusal also reads the site and the calendars again (`useQuote`), so When greys the day. Words `stitch_refused_*` in en, it, de, fr. Tests in `tests/booking-flow-wire.test.mjs`, `tests/booking-elements-route.test.mjs`, `tests/booking-elements-core.test.mjs`.
- **Evolve feedback 19 Oct 3: a kinds read with no kinds (`kinds: []`, Evolve) falls back to the products.** When's counts came only from the W7-20 kinds read, so with no kinds the calendar showed nothing free. Now, on When, a kinds read that answered no kinds (`kindsMissing`) makes the availability read (W7-06) ask for the calendar's days, and the calendar counts from the products themselves (`productDaysOf` in `react/group/flow/wire.ts`): the group's bike's product when the read lists it, else every product, each day's sizes added up (full at 0, few at 1 to 4, plenty from 5), the halves likewise, the parts any size offers; a day every product is closed is closed. Test in `tests/booking-flow-wire.test.mjs`.
- Gallery states (guest-flow, wired flow) `when-too-soon`, `when-no-kinds` and `plan-refused`, in both looks.
- **Running short counts bikes only.** `shortOfRefusal` (the "We have 3 of your 4 bikes" card) counted the riders on every refused line, so a refused helmet or tour seat read as a missing bike. It now counts the rentals' lines (and a line with no key); a refusal of kit, extras or seats alone draws no bike card. The README's Parts names every part the components set.
- **4-1021-2014-220f: a resumed saved trip dates its tour seats.** A tour_seat line carries no day (the API takes none on it), so `groupFromSavedTrip` now takes a seat's day and part from the kit of a rider on it who rents no bike and rides only that seat (their kit goes on the days of their tours, less their guide picks' and tour requests' days); the seat's riders ride that day and the trip covers it, so a trip of tour seats only keeps its trip. A seat its lines do not pin, or pin to two days, stays undated as before. `datedState` dates every seat the departures read lists from that departure (its day and part win over a day read from the kit) through the group's `service` event, so a rider without a bike (on no rental) stays on the seat once it is dated instead of dropping off its line; a rented bike on the seat comes back as `line:<key>`. Tests in `tests/booking-flow-group-request.test.mjs` and `tests/booking-flow-wire.test.mjs`.
- **4-1021-2014-220f: Plan waits for an undated seat's departures.** While a resumed trip still holds a seat with no day and the trip's availability read is on its way, `GuestBookingFlow` shows Plan loading (`data-og-part="plan-wait"`, the shop loading words) and prices nothing, so no quote goes out for a seat that names only the own bikes; the read then dates it, or a departure it no longer lists comes out as before (Tour says which). A read that failed, or no trip to read, shows the seat as it is. New pure `seatsWaitOf` in `wire.ts`. The Tour step already waited for its tours. Tests in `tests/booking-flow-guest-flow.test.mjs`.

### [0.4.2] - 2026-10-21

#### Changed

- **Retest 21 Oct: Plan says the whole deposit split.** With a deposit the side says "€48 today, the other €112 when you pick up." and the amount due (phone bar, who books it) gets "of €160, the rest at pick up" under it; the phone showed only "Today €48" and a computer only "Total €160". `PlanDue.note` (new, optional), words `plan_pay_deposit`, `plan_pay_deposit_short` in en, it, de and fr. Test in `tests/booking-flow-react-plan.test.mjs`.

### [0.4.1] - 2026-10-21

#### Changed

- **R6-flow: the whole tour card picks the tour.** On a computer a tour card lights up on hover (ring in the pick colour, a small lift; times light up too); a click anywhere on the card picks its first time with room for everyone (with others first), else its first time with a seat; the times and See the ride keep their own action. Each card shows a `Pick this tour` marker (`Your tour` once picked) so a phone shows it can be tapped. New words `tour_pick`, `tour_picked_tour` in en, it, de and fr. `TourCard` in `src/react/tour/TourStep.tsx`, styles in `src/flow-tour.css`; test in `tests/booking-elements-react-tour.test.mjs`.

#### Added

- **3-1021-1804-c0bd: My booking states E and F (evolvefinale.com/trip/&lt;ref&gt;#t=&lt;trip token&gt;).** New trip operations, the trip token in the path and `Idempotency-Key` required: `trip-asked-answer` (`POST /v1/public/trips/{token}/asked/{line_no}/answer`, API W6-15: GBF-15 by the trip token, body `SiteAskedOfferAnswer`, answer `SiteAskedOfferAnswered` whose `payment` is an embedded Checkout session for a difference), `trip-asked-withdraw` (`.../asked/{line_no}/withdraw`, W6-16, answer `TripAskedWithdrawn`) and `trip-payment-session` (`.../payment-session`, W6-17, answer `TripPaymentSession`: `SitePaymentSession` plus `purpose` deposit, full or balance). `line_no` is the trip read's `asked[].line_no` (1 to 20). `createBookingRoute` serves `trip-asked-withdraw` by default; `trip-asked-answer` and `trip-payment-session` start payments, so they are opt in like `asked-offer-answer`. Types regenerated from the API contract: `GuestTrip.asked`, `TripBooking.held`, `TripPayment.card_brand`, `card_last4`, `receipt_number` (additive). Tests in `tests/booking-elements-flow-operations.test.mjs` and `tests/booking-elements-route.test.mjs`.
- **2-1021-1649-a19b: Send the trip to your group from My booking (evolvefinale.com/trip/&lt;ref&gt;#t=&lt;trip token&gt;).** New trip operation `trip-share` (`TRIP_OPERATIONS`, `client.tripShare`, served by `createBookingRoute` by default): `POST /v1/public/trips/{token}/share` (API W6-14) with the trip token in the path, `Idempotency-Key` required, body `TripLinkShare` (`locale`, `riders: [{rider_no, email?}]`, riders by their `rider_no` on the `trip` read), answer `TripLinkShared` (GBF-60's riders plus `rider_no`). The route passes on only `riders` and `locale`. Additive; `share` (GBF-60 by the view token) is unchanged. Types regenerated from the API contract (also picks up two small earlier API changes). Tests in `tests/booking-elements-flow-operations.test.mjs` and `tests/booking-elements-route.test.mjs`.
- **Return check and damage: damage cover at booking (contract 5, board GuestKitCover).** The availability read's `extras` may carry `{ kind: "damage_cover", category_id, price_per_day_minor, excess_minor, covers }` (built by the API job in parallel; read defensively, not in the generated contract yet). New in `/core` (`cover.ts`): `coverExtrasOf`, `coverOffersOf` (a cover per covered category, the read's sizes by their product's `parts[].item_type_id`), `coverOptionsOf`, `coverSummaryOf`, `coverEstimateOf`, `coverQuoteOf`, `isCoverLine`, `plainExtrasOf` (the Kit step's extras leave the cover out). The group machine takes one tick for the group (`{ type: "cover", on }`, `GroupState.cover`, never ticked by default, memory only); while ticked every booked rental line in a covered size sends `damage_cover: true` in the quote and the booking (`FlowShop.coverOptions`; an asked line never). Plan shows it as one line under the plan (new part `DamageCoverOffer`, `data-og-part="cover-offer"`: "Damage cover", "Ride without worrying. If something breaks you pay at most €100 a bike.", "€8 a day", a tick; ticked, "What Damage cover covers" opens under it). The price is always the quote's: the quote's `damage_cover` lines are one "Damage cover" line on Plan's and Pay's receipt, taken out of the riders' parts only when their shares tell it apart (`quoteLines`). `PlanBoard` and `PlanStep` take `cover` (additive); `GuestBookingFlow` wires it (`groupCoverOf`).
- **Return check and damage: the trip page's damage report (boards GuestTrip, GuestPhone 2).** `/core` `tripDamageOf(trip)` reads the trip read's `damage` block (`state` to_follow, settle or done, `items` with `name`, `tag`, `severity`, `photo_urls`, `rider`, `total_minor`, `paid_minor`, `left_minor`, `pay_link`, and the additive `checked_at`, `lines`, `covered_minor`, `excess_minor`, `paid_by { way, card_last4, card_brand }`, `incident { happened_at, place, signed_at, report_url }`, `receipt_number`, `receipt_url`) defensively: http(s) links only, a block whose state or total does not read is none. New Element `TripDamage` (`/react` and `react/trip`, `data-og-part="trip-damage"`): done (the lines, the cover as a minus, "You paid, Visa ending 4242", a Paid badge, the receipt), to follow (the mechanic sentence, the photos, When, Where, Signed, the crash report), settle (the lines, the cover's minus, "You pay", one primary "Pay €100" to the link through `safeHref`); "Question about this? Email us". Phone 390 and 360 with no sideways scroll (`flow-damage.css`). Words `cover_*` and `damage_*` in en, it, de, fr. Tests in `tests/booking-elements-damage.test.mjs`; gallery states `plan-cover-offer`, `plan-cover-ticked` (guest-flow) and `trip-damage-done`, `trip-damage-to-follow`, `trip-damage-settle` (booking-elements).

##### Downstream migration

Additive: no host change. A shop with no damage cover in its read sees nothing new. Hosts that draw the trip page on their own site may draw `TripDamage` with `tripDamageOf(trip)`. Needs the API job's `damage_cover` extras, line flag, quote lines and the trip read's `damage` to show anything; before it, nothing changes.

### [0.4.0] - 2026-10-21

#### Changed

- **R5-flow 1: a trip that rents always has a Tour step, which asks "Would you like to join a guided tour?" (Oliver, evolvefinale.com, 21 Oct: the band's "+ Add a tour" was hard to see).** At a shop with a tour card, `groupSteps` shows Tour after When also when the guest picked only Rent on What (new `offersTours`); there the step is the question alone (new part `TourJoin`, `data-og-part="tour-join"`, two radios: the arrows move between them, Enter or Space picks, and the picked radio keeps the focus when the step draws again; `joinKeyTarget`), **No picked by default** so one tap on Next goes on (`stepProblem` waits on nothing while no tour is picked; the band says "no tour", `band_sum_tour_none`), and **Yes** picks the shop's first tour card and opens the tour picker with the question kept above it (No there takes the tour picks out again). The band no longer offers "Add a tour" (`addableStepsOf` answers Bikes only); "Add bikes" stays. A tours only trip is unchanged. New words `tour_join_title`, `tour_join_line`, `tour_join_no`, `tour_join_yes`, `tour_join_sum_no` in en, it, de, fr. Gallery state `tour-join`. Tests in `tests/booking-flow-group-steps.test.mjs`, `tests/booking-flow-wire.test.mjs`, `tests/booking-flow-group-request.test.mjs`, `tests/booking-flow-guest-flow.test.mjs`.
- **R5-flow 2: no running price panel beside the steps; the tour card keeps its shape at any width.** On Tour the "Your trip" panel squeezed the card (the name ran into the times, the line wrapped one word a line). GuestBookingFlow passes no `aside` (nor the phone's trip pill) on any step; Bikes and Kit keep their own totals and the price is on Plan. The tour card lays out by its list's room (`container: og-tours`): photo, words and times side by side from 1100 px of list, else the times under the photo and words; a long name wraps (`overflow-wrap: anywhere`, the computer's size from 26 to 40 px), times wrap onto a second row on a phone. `flow-tour.css`. Checked at 1440, 1100, 390 and 360 wide.
- **R5-flow 3: a done step on the band reads and behaves as a link back to it.** Its pick is underlined at rest (thicker on hover), the keyboard focus draws a ring, and on a computer a small back chevron leads the step's name with a soft hover ground; still the band's ink, never the accent or the primary. `flow-chrome.css`; the steps were already buttons labelled "Go back to ...".

#### Fixed

- **R5-flow 4 and 5: the days that have passed come out of the trip, also while the page stays open (evolvefinale.com, 21 Oct).** A trip kept from an earlier visit, or a tab left open, still started on a gone day: When showed today with Full day and Half day gone while the trip said "4 days", the foot "3 full days" and the quote priced the gone day; a kept trip with yesterday made the quote answer 422 and the flow said "We could not price the trip just now" for ever. Now `withoutPassed` (`react/group/flow/wire.ts`) starts the trip on the first day the group can still ride (`firstOpenDay`: today while some of it is left, else tomorrow), takes out the days, seats, guide picks, requests and extra days before it, and keeps only what is left of today (a gone morning makes a full day the afternoon, so the counts, the lines and the price agree); a trip with no day left (all passed, or a one day trip whose part has passed) has no days and goes back to When, whatever the address says, and the first change there moves the address to When. GuestBookingFlow applies it while rendering (never while booking, on a held booking, paying or on Booked), the kept trip (`og-flow:<shop>`) forgets the days too, and one line says "We took out the days that have passed. Your trip starts on the first day you can still ride." (or, when only part of today has passed, "Part of today has passed, so today keeps only what is left of it.") (`stitch_days_passed`, four languages). The shop's clock now moves while the page is open (`useOpenClock` in `kept.ts`: useSyncExternalStore, every 30 seconds and when the tab comes back), and the shop's today follows it past midnight (`todayOf`: the read's today, or the clock's when it is one day on). A quote the API refuses as unreadable (422 `invalid_request`, a passed day or a gone half day) reads the site and the calendars again (`useQuote`). Tests in `tests/booking-flow-wire.test.mjs` and `tests/booking-flow-guest-flow.test.mjs`; gallery state `passed`.
- **R5-flow 6: Book it never waits without a word.** On Plan, with no price Book it was greyed out and nothing said why (a quote that failed, a trip the shop refused, nothing to book). `PlanStep` takes `noPrice` (additive) and says it where the price goes and beside Book it: "The price did not load, so Book it waits. Try again above." (with Try again at the top), "The shop cannot take this trip online. Call the shop and they book it for you.", "Nothing to book yet. Pick a bike or a tour first." ("Pick a bike first." at a shop with no tours) (`stitch_no_price_failed`, `stitch_no_price_refused`, `stitch_no_price_empty`, `stitch_no_price_empty_tour`, `stitch_today_passed`, four languages). Test in `tests/booking-flow-guest-flow.test.mjs`.
- **R5-flow 7: a booking the API refuses says why, and a size that filled while booking shows its ways out (evolvefinale.com, 21 Oct, deposits on).** A book refused with 409 reached the page as `{"code":null,"reason":null}`: the API's booking refusals (`lines_unavailable`, `quote_refused`, `payment_account_missing`, `promo_refused`) name themselves `error`, which neither the route (`next/flow.ts` `refusal`) nor the client (`core/client.ts`) read, so the flow said "We could not book this" where it should show the decision card. Both now read a booking refusal (`ok: false`) by its `error`, before `code` (a promo refusal's `code` is the guest's own promo code, never passed as the refusal), other refusals by `code` and `detail.code` as before; a `lines_unavailable` refusal keeps its own fields through the route (`error`, `lines` with only the fields the flow reads, `can_ask`, `can_save`: option ids, dates and free counts, nothing about the guest), and `BookingCallError` carries it as `body` (additive; the flow's `refusalOfError` reads it). Seen with one AMPD M on 30 Oct: the size was full. Tests in `tests/booking-elements-route.test.mjs` and `tests/booking-elements-core.test.mjs`.

- **R4-desk: "Not booked yet" waits for the read that settles a refused departure (R3-flow review).** When a booking was refused because its departure closed or filled, the flow reads the shop again to take the seat out; an error left from an earlier read made it say "Not booked yet" while that read was still on its way. It now says so only once the read made after the refusal has failed (`refusalUnsettled` in `react/group/flow/wire.ts`, used by `GuestBookingFlow`). Test in `tests/booking-flow-wire.test.mjs`.

##### Downstream migration

No API change needed. Hosts that draw `GuestBookingFlow` change nothing; a trip that rents now passes a Tour step (No picked, one tap) and no trip panel shows beside the steps. **Evolve:** its own clearing of a kept trip's past days (`features/booking/v2/keptPicks.ts`, "We cleared the days that have passed.") is now the package's; take it out with the repin (evolve-frontend `fix/r5-flow`) or the guest can see both lines. A host that draws `PlanStep` itself may pass `noPrice`. Rollback is the exact pin `0.3.2`.

### [0.3.2] - 2026-10-21

#### Fixed

- **R3-small: the When calendar's key for one person no longer reads "Bikes for all 1" (evolvefinale.com retest, 21 Oct).** `WhenKey` with one rider says "Bikes free" (new word `when_key_one`: "\{Items\} free", "\{Items\} disponibili", "\{Items\} frei", "\{Items\} disponibles") and "Full or closed"; "Not for all" cannot happen for one and is left out. A group keeps "Bikes for all 5" and "Not for all 5" (the count is the group's size). The day buttons' labels are unchanged. Test in `tests/booking-elements-when.test.mjs`.
- **Every rider is booked again, also one no line names (R3-flow, evolvefinale.com retest 21 Oct).** 0.3.1 left a rider who rides on no line (their own bike on a trip of rentals) out of the booking, so the shop never got their details. `groupBookingOf` sends every rider as a person again; the API (outdoor-grid-api `R3-flow`, migration `20261119560010_lineless_riders.sql`) books them as one of the group on no line and saves them on the shop's record with their height, weight, level and own bike. Test in `tests/booking-flow-group-request.test.mjs`.
- **A kept trip's tour that can no longer be booked comes out, and the guest is told (R3-flow).** A trip kept in the browser (`og-flow:<shop>`) held a tour departure whose online booking had closed; the quote answered 409 `departure_closed` and the flow said the price did not load, for ever. GuestBookingFlow now takes such a seat out of the trip, once, and the kept trip forgets it (`goneServicesOf`, `departureGoneOf` in `react/group/flow/wire.ts`): a departure on the trip's days that the current availability read no longer lists (the read lists only departures open for booking, so a kept trip's closed or past departure goes on restore). A departure the quote or the booking refuses with `departure_closed` or `departure_full` (the public SQLSTATE map's OG102 and OG101) makes the shop's read stale: `useQuote` and the booking read it again, and the seat is chosen only on that newer read (the one it no longer lists; for full, the first with fewer places than its riders; else the trip's first departure). Never while booking, paying or on Booked. The Tour step opens, as long as the address stays where it was, with one line per seat: "The \{tour\} on \{day\} can no longer be booked. Pick another day.", or "The tour on \{day\} ..." when the read no longer names the tour (`stitch_departure_gone`, `stitch_departure_gone_day`, en, it, de and fr). Tests in `tests/booking-flow-wire.test.mjs` and `tests/booking-flow-guest-flow.test.mjs`.
- **A kept trip reopened on Plan whose size is now full shows its ways out (R3-flow).** Reopened straight on `?step=plan`, a quote answering `lines_unavailable` left Plan on "Working out the price" and "Checking bikes, sizes and seats" for ever. PlanStep now opens who books it with the decision card at once (the neighbour size first, ask the shop, save), once per refusal, as when a booking is refused, and the total says "Choose how to go on to see the price" (`plan_no_price`, four languages; `PlanDue.waiting`, `PlanCostsProps.waiting`). Tests in `tests/booking-flow-react-plan.test.mjs` and `tests/booking-flow-guest-flow.test.mjs`.
- **No raw product id while the shop's read loads (R3-flow).** After a reload the step bar and the Plan rows showed "3f907eda-..." for a moment. `namesOf` answers `NAME_PENDING` ("…") for an id the reads do not name yet. Test in `tests/booking-flow-wire.test.mjs`.

##### Downstream migration

Release the API first: outdoor-grid-api with `R3-flow` (`20261119560010_lineless_riders.sql` applied) must be live before a host takes this version, because the API before it refuses a booking with a rider no line names (422), which this version sends again. Hosts change nothing else. Rollback is the exact pin `0.3.1`.

### [0.3.1] - 2026-10-21

#### Fixed

- **A trip with a rider on their own bike and rentals only books again (evolvefinale.com retest, 21 Oct).** `groupBookingOf` sent every rider as a person, and the API books a person only on a line that names them, so a group where one rider brings their own bike and nobody takes a tour was refused whole (422, "Something went wrong and nothing was booked"). People no line names stay out of the booking for now; the API will keep such a rider on the booking next. No API or host change. Test in `tests/booking-flow-group-request.test.mjs`.

### [0.3.0] - 2026-10-21

#### Added

- **The flow has a complete look under any theme (Evolve test run H1).** A host that set only some tokens (the hosted page sets the accent) drew cards, fields and sheets with no background or border. New `DEFAULT_THEME` (every `BookingTheme` token: warm light ground, never white, the yellow primary with a dark press, statuses green, orange and teal) and `themePropertiesCss`; `/styles.css` imports the new `theme-defaults.css`, which registers each `--og-*` token with `@property` and the default as its initial value, so anything a site sets, inline or in its own CSS on a parent, wins. `surface-2` and `radius-sm` stay unregistered (`UNREGISTERED_TOKENS`: a part falls back from them to `surface` and `radius`), and the default radii are the parts' own fallbacks (14, 18, 12 px). Tests in `tests/booking-elements-package.test.mjs`.

##### Downstream migration

A site that sets every token (Evolve, `missingTokens(theme)` empty) sees no change. A site that leaves a token out now draws the default for it, not the part's own fallback or the page's font: a host that left out `font-body`, `font-head` or `btn-font` showed its own page font and now draws the default system font, and `font-head` no longer falls back to `font-body` (set all three). Check with `missingTokens` and set what is missing. Rollback is the exact pin `0.2.6`.
#### Fixed

- **A rental sized at the counter books online (QA Test Bike Shop run, 4.02).** A rental whose one option has no size (the shop fits the rider at pick up, as Outdoor Grid's Add equipment made them) left every rider on Bikes with "Pick a size for ..." and no size to pick, so no guest could book. Each rider on it now gets that option (on the model and on Any that fits, where a kids' bike is never handed out that way: `BikePoolModel.kids`), the bikes placed before counting, else it is short as any size is (`picksOn`, new `counterOptionsOf` in `react/bikes/view.ts`).
- **A kit item's rental is offered on Kit, not Bikes (4.02b).** The rail listed the shop's rented helmet beside the bikes. GuestBookingFlow now hands Bikes `bikeProductsOf(read.products, read.kit)`: no product a kit item rents (the Kit step offers it in each rider's size); one no kit item rents stays, so it can still be booked; a shop that rents only kit keeps them all (`react/group/flow/wire.ts`).
- **A rider on their own bike rides on the Plan (4.06).** The timeline and the day list read "not riding" on every day for an own-bike rider. `planOfGroup` gives them a bar of their own on their days that nothing else holds (`PlanLook.ownBike`, the words' "Own bike"; `PlanBlock.own`, never the bike under their name).
- **A rider who brings their own bike keeps their height and weight (E2).** Seen on evolvefinale.com: a rider marked "Brings own bike" typed 165 cm and 60 kg, and the booking stored neither, because `personOf` (`core/group/request.ts`) dropped both for own-bike riders. They are now sent like any rider's, so the shop keeps them on the rider's record for the next booking (the API already stores them). Tests in `tests/booking-flow-group-request.test.mjs`.
- **A phone asks and shows an own-bike rider's height and weight (E2).** The rider sheet on a phone (`RiderSheet`) hid both for a rider who brings their own bike, while the computer's bib (`RiderBib`) asked them, so a guest on a phone could not enter what the booking now sends. The sheet now asks height and weight for every rider, and the phone row (`RiderRow`) and the saved riders card (`savedFit`, `SavedRiders`) show them after "own bike" ("own bike · 168 cm · 60 kg · some experience"); with no measures they read as before. `row_level_only` is no longer used by the package (kept in the words for now). The style guide's Who and no-any bike fixtures keep an own-bike rider's measures too. Tests in `tests/booking-elements-guest-who.test.mjs`, `tests/booking-elements-guest-signin.test.mjs` and `tests/booking-flow-group-request.test.mjs` (`groupBookingOf` and `savedTripOf` people).
- **A quote that fails can be tried again (E1).** Seen on evolvefinale.com: when a call to the API dropped, the flow said "We could not price the trip just now" and gave the guest no way on. The message now has a **Try again** button (secondary, busy while it asks) that asks for the same quote again (`quoted.refetch()`); it uses the existing `stitch_retry` word, already in en, it, de and fr. Test in `tests/booking-flow-guest-flow.test.mjs`.
- **Plan on a phone lists the rented bike beside the tour (E7a).** On a tour day the phone's day list read only the tour ("All 5 · Classic tour"), so a rider's rental bike, priced in the total, was missing from the plan. Each line now names everything the riders have that day, a bike by its model and the tour by its name ("Marco, Giulia · AMPD + Classic tour"), riders who do the same thing still on one line; the tour leads the line's icon and gives the times. The computer's timeline already showed both. `planDays` (`/core`); riders who rent different models no longer share a tour day's line, so the change sheet's "same day" riders (`likeRiders`) follow the same reading. Tests in `tests/booking-elements-plan.test.mjs`, `tests/booking-elements-react-plan.test.mjs`, `tests/booking-flow-react-plan.test.mjs`.
- **A signed out guest's `me` is no longer a 404 on every visit (E7b).** The route (`createFlowRoute`, `/next`) answers `me` with no guest session as 204 with no body and asks the API nothing (it clears a malformed session cookie as before); `people`, `again` and `link` without a session stay 404 `session_unavailable`, and a session the API no longer knows is still a 404 that clears the cookie. `GuestBookingFlow` reads an empty answer as signed out: the guest is signed in only when `me` answers a guest, and the sign in handler and the saved riders read `people` null safely, so a 204 can never crash them. **Small break:** the `me` answer is typed `GuestPage | null` (`BookingAnswers`, `/core`). Tests in `tests/booking-elements-route-session.test.mjs`, `tests/site-flow-bff.test.mjs`, `tests/booking-flow-guest-flow.test.mjs`.

#### Downstream migration

- **Evolve** (draws `GuestBookingFlow`, serves the route with `createBookingRoute`): no code change; repin and the signed out `me` call answers 204. Rollback: the previous exact pin.
- **A host that reads `useGuestMe`, `guestMeQuery` or `client.me` itself:** a signed out guest now resolves `{ data: null }` instead of rejecting with a 404. Read `answer.data?.guest` (null is signed out). The hosted app (`outdoor-grid-frontend`) does not read them.

### [0.2.6] - 2026-10-20

The running short card Oliver asked for while testing evolvefinale.com. Pre-1.0 PATCH with small breaks, all
inside the package's own parts: Evolve draws `GuestBookingFlow` and needs no code change; a host that draws
`RunningShort` itself passes `days` (was `day` and `period`) and `onRequest`, and drops `change`; a host that
builds a `GroupState` literal adds `request: false`. Rollback is the exact pin `0.2.5`.

#### Changed

- **Running short: two ways, the whole way is the press, saving is a link.** Seen on evolvefinale.com: the suggested way was drawn as already picked, so its hover showed nothing and its radio never filled, and four cards were too many choices. Now it is one decision for the whole trip, never one per day: "We have 3 of your 4 bikes." with the short days as a detail ("1 bike is not free on Sun 25."); **breaking:** `GroupState` has a new required field `request` (a host or test that builds a `GroupState` literal adds `request: false`); `day` and `period` are replaced by `days` (the short dates), `free` and `of` count the trip's bikes (`shortOfRefusal` returns `{ days, free, of }`), words `short_title`, `short_title_none`, `short_days_one`, `short_days`, `short_and` replace `short_title_one`, `short_day_morning`, `short_day_afternoon`. The card has two ways, both when the shop takes asks: **"Book the 3 free bikes now"** (the rest on the waitlist: asked lines as before, nothing to pay for them until the shop finds them) and **"Send the request to the shop"** (new, `onRequest`, `ShortWay` `"request"`: the refused lines asked and the trip sent as a request, nothing paid now, the shop confirms it all). Saving the trip is a quiet link under them ("Or save the trip and finish later"), never a card. **Breaking:** the change of days way is gone (`change` prop and type `ShortDayChange` removed, `ShortWay` is `"ask" | "request" | "save"`, `shortChoices` takes `{ ask, request }`); no consumer passed it. No way is lit until the guest presses one (`GuestBookingFlow` passes `picked`), and hover lifts the whole card onto `--og-surface-2` with a `--og-text-2` border (no motion with reduced motion). New state `request` and event `{ type: "request", on }` (`/core`), `requestedOf`; `groupBasketOf` sends `mode: "request"` and no payment choice while a rental is asked; the flag clears itself when the last ask goes (`reduceGroup`), and a saved trip sent as a request opens as one again (`groupFromSavedTrip`); a request has no Pay step (`groupSteps`); `GroupEvent` has a new variant `request` and `refusalAskEvents` now ends with `{ type: "request", on: false }`; a pick belongs to the refusal it was made on, so a new shortage opens with nothing lit; one rider reads "Your bike is not free." (`short_title_none_one`, `short_ask_text_none_one`); `refusalRequestEvents` (`/react`). Plan says "Send to the shop" and "Nothing to pay now. The shop confirms your trip, then tells you how to pay."; its toast no longer says everything is free while a bike waits; Booked on a request (`stage` `request`) says "Sent to the shop" and that nothing is booked or paid yet. Asked bikes read "on the waitlist" on the ask card, Plan's receipt and Booked. Words in en, it, de, fr: new `short_ask_left_one`, `short_ask_text_one`, `short_ask_text_none`, `short_request`, `short_request_text`, `short_save_link`, `short_save_only`, `plan_send`, `plan_pay_request`, `plan_pay_request_short`, `plan_toast_waitlist`, `done_title_request`, `done_title_request_plain`, `done_lead_request`; changed `short_ask`, `short_ask_none`, `short_ask_text`, `part_ask_with`, `part_ask_free`, `asked_asked`, `asked_note`, `done_lead_asked*`, `plan_asked_line`; removed `short_ask_one`, `short_later`, `short_change`, `short_save`, `short_save_text`. Tests in `tests/booking-elements-react-short.test.mjs`, `tests/booking-flow-group-request.test.mjs`, `tests/booking-elements-react-booked.test.mjs`.

### [0.2.5] - 2026-10-20

#### Fixed

- **Plan: a size that is short on the change sheet no longer loses the change or loops.** Seen on evolvefinale.com: Lena and Tom moved to Tue and Thu mornings, the check said "No Pivot Shuttle LT in S on Tue, Wed, Thu and Fri morning" and "Use the ... in M" swapped the size and closed the sheet without the mornings. Now the clash names only the days asked ("No LT in S on Tue and Thu morning."); riders short of the same size are one clash, and its way takes them all; taking it sends the change and the size together (`PlanStep` and `ChangeSheet` call `onWay(way, change)` with the change's events; the flow sends `planWayEventsOf(state, way, change)`, new in `/react`); a way to the very size that is short is never offered (`planWaysOut`), and "Keep" is never the suggested way; a sheet that changes nothing shows no clash (the trip's own refusal is who books it's decision card); Book it is no longer greyed out on a trip refused as it stands, it opens who books it with the ways out; a way never gives a rider a bike on a day they do not ride (`wayEventsOf`). New pure `sheetClashOf`, `sheetApplyOf` (`group/steps/plan/clash.ts`). No new words. Additive: a page that draws `PlanStep` or `ChangeSheet` itself and passes `onWay` should send the second argument's events with the way (`planWayEventsOf`); one that ignores it behaves as 0.2.4. Tests in `tests/booking-flow-react-plan.test.mjs`.
- **Bikes: the group can split from one bike.** With everyone on one bike, tapping another bike's card moves the whole group (kept), and a name under "Who rides the X?" that is already on that bike now goes back to the bike the group just came from, so Lena and Tom ride the Shuttle LT while Marco and Giulia keep the Firebird in two taps. Before, that name did nothing and the only way back moved everyone again. A name on another bike still moves onto the bike in view; once the riders are split a card only shows its bike; the rail's cards name who rides each. `WhoRides` and `BikesView` take `back` (the model to go back to) and `WhoRides`'s `onMove` now gets the model too; new pure `bikeWhoTapTo` (`/react`), `bikesPickEvents`, `bikesBackOf`, type `BikeMove`; word `bikes_move_back` in en, it, de, fr ("Tap a name to put them back on the \{model\}", shown on a computer and a phone). Additive. Tests in `tests/booking-elements-bikes.test.mjs`.
#### Changed

- **A bike reads as the guest says it, not as the shop's product name.** The stepper band, the plan bars, the plan's rider line and Booked showed "Pivot Shuttle AMPD e-bike rental" and "Pivot Firebird rental M". They now say the model ("Firebird"; the site's own name in `looks.bikes[id].name` wins), else the product name without a trailing " rental" / " e-bike rental" (and a size after it), and the plan adds the size: "Firebird, M". The band says "Firebird" for one model and "3 bikes" for two or more (new word `band_sum_bikes` in en, it, de, fr). `namesOf` takes the looks' bikes as a last argument (`GuestBookingFlow` passes `looks.bikes`); new pure `bikeNameOf`, `plainBikeName` in `/react`. The Bikes rail still shows the product's name with its model above it. Additive. Tests in `tests/booking-flow-wire.test.mjs`, `tests/booking-flow-react-plan.test.mjs`.

### [0.2.4] - 2026-10-20

Three changes Oliver asked for while testing evolvefinale.com. Pre-1.0 PATCH, additive: nothing to change downstream;
Evolve passes `anyThatFits={false}` (and `kitIncluded` if it includes protection) to `GuestBookingFlow`. A page that
draws `DayHalves` or `WhenDays` itself should pass the new `onPart`. Rollback is the exact pin `0.2.3`.

#### Changed

- **When: each day is one choice, Full day or Half day.** "Your days" (computer), the phone's days sheet and a one-day trip's choice under the calendar no longer show two Morning and Afternoon tiles both on: a day is "Full day" (the default) or "Half day", and a half day is the morning, with a small Morning | Afternoon under it only while Half day is on (one tap to the afternoon; part `when-half-pick`, the pick in `--og-pick`). Same data underneath (`parts`: absent full, `morning`, `afternoon`). Today after lunch: Full day says gone, Half day takes the afternoon from the earliest pick up, Morning shows gone. A day the shop does not split keeps its one whole-day block. `DayHalves` and `WhenDays` take `onPart` (WhenStep passes it; a page that passes only `onToggle` gets one call per half that switches, two for Morning to Afternoon, so it must apply them on top of each other: pass `onPart`); new pure `dayChoiceOf`, `setDayLength`, `setDayHalf`, `halfSteps`, types `DayChoice`, `DayLength`, `DayPick`; `toggleHalf`, `toggleDay` unchanged. Words `when_half_day`, `when_half_pick` and new `when_tip`, `when_sheet_line` in en, it, de, fr. Additive. Tests in `tests/booking-elements-when.test.mjs`; gallery `when-half-afternoon` and the When frames.
- **A shop or site can turn off "Any that fits" on Bikes.** `GuestBookingFlow` and `BikesStep` take `anyThatFits` (true when left out; Evolve passes false). Off: no Any card in the rail; the group starts on the first model with a fitting size free on every rider's days (by height, else any size free; none fits all: the first model), so the panel shows that bike's build straight away; Next writes the bike for the riders still on no product (`bike` for the whole group, or with `riders`), a size already tapped again, then the sizes as before. Nothing is written during render. The 0.2.3 rule stays: a rider whose size is gone keeps Next on Bikes, and with Any off the reason says "Pick another size or another bike." (`bikes_size_gone_next_model` in en, it, de, fr). New pure `firstFittingBike` (`/react`), `sizeGoneSaid`; `bikesFromGroup` takes `anyThatFits`. Additive. Tests in `tests/booking-elements-bikes.test.mjs`; gallery `bikes-no-any`, `bikes-phone-no-any`.
- **The stepper band says what a skipped step means, and a step not picked can be added from it.** Tour, when only Rent a bike was picked, says "Add a tour"; Bikes, when only a tour, says "Add bikes" (the shop's word for its bikes; not when every rider brings their own bike). Tapping it, on a computer or a phone, adds that activity to the trip (the What pick of the shop's first card of that kind) and opens the step: back to it when the guest is past it, on through the steps between once the trip is past When (stopping where Next would wait), and on What, Who and When it is only added. Kit skipped says "included" when the shop includes protection (GuestBookingFlow's new `kitIncluded`, false when left out) and "nothing to rent" otherwise; Pay skipped says "at the shop". `BandStep` takes `add` and `note`, `StepperBand` takes `onAdd` (part `band-add`); new pure `addableStepsOf`, `addStepEventsOf`, `bandStepsOf` options `addable`, `itemsWord`, `kitIncluded`; words `band_sum_add_tour`, `band_sum_add_bikes`, `band_sum_kit_included` in en, it, de, fr. Additive. Tests in `tests/booking-elements-guest-chrome.test.mjs`, `tests/booking-flow-wire.test.mjs`; gallery `what-blocks-band-add`.

### [0.2.3] - 2026-10-20

#### Fixed

- **Bikes no longer lets a guest on with a size that is gone.** A rider whose size on their bike has no bike left on one of their days (the size chip says the days out) kept Next working, and the plan then waited on a booking it could not make, with Book it greyed out. Next now stays on Bikes, says "No bike left in that size for Oliver on your days. Pick another size, or Any that fits." beside it and brings the guest to that rider's sizes (`ridersOutOfSize` in `group/steps/bikes/BikesStep.tsx`, words `bikes_size_gone_next` in en, it, de, fr). Seen on evolvefinale.com: a 185 cm rider on the Shuttle AMPD in L, Wed 21 to Sat 24, while the Shuttle LT had an L free.
- **A rider who brings their own bike keeps height and weight on Who.** The bib hid both once Brings own bike was on; protection and the guide still size by them (`guest/RiderBib.tsx`).

### [0.2.2] - 2026-10-20

Fixes the Bikes step for a shop that asks the guest for the size, which kept the new flow off Evolve's site, and
makes every step's Next that waits say why. Pre-1.0 PATCH, additive: nothing to change downstream (a site that styles
the foot may want `.og-foot-why`, the reason beside Next on every width); rollback is the exact pin `0.2.1`.

- `/react` Bikes for a shop that asks the guest for the size (W7-06 `pick_size`, as Evolve's read answers it: no
  catalog `fit`, options with only `size_label`, size charts with no heights). Before, the stage showed no size, Next
  waited on `pick_size` without a word and the quote held no bike line. Now each rider on the model in view gets its
  sizes as small chips right under who rides it (`RiderSizePicks`, part `bike-pick-size`; the pick in `--og-pick`,
  olive on Evolve), with the heights a size is for when the shop's chart says them; a size with no bike left on the
  rider's days, after the other riders' sizes, is off and says the days. With a height and a fit or chart heights the
  size is already picked and a tap changes it. A model with one size gives it. Next that waits says why beside it
  ("Pick a size for Marco, Giulia.", role alert), rings each rider it waits on and brings the guest to the first one
  (shows their model, scrolls to and focuses their sizes). Any that fits pools every product, so a size picked on it
  books any model free in that size (the API books a rental by its option; a rental with no option is refused
  `option_required`). New: `/core` `bikeChartOf`, `chartRangesOf`, `sortSizeLabels`, `takeBike`, `BikeSizeHint`,
  `BikeChart` (`placeAnyBikeSizes` keeps a hand pick on a product with no fit ranges); `/react` `RiderSizePicks`,
  `bikeSizeChipsOf`, `bikesShowSizePicks`, `bikeSizeHintOf`, `bikeFitOfProduct` (a product's fit, with ranges from its
  chart's heights), `chartOfProduct` (the chart of the part the guest sizes, matched to its options' sizes, never a
  helmet's), `BikeModelView` `pickSize`, `hints`, `sizeOrder`, `BikesView` and `BikesStep` `problem` (and
  `missing` on `BikesView`), words `bikes_sizes_lead`, `bikes_sizes_any`, `bikes_size_for`, `bikes_size_wait`,
  `bikes_size_range`, `bikes_size_from`, `bikes_size_upto` in en, it, de and fr (a shop rewords them through the
  provider's `words`). Additive. Tests `tests/booking-elements-pick-size.test.mjs`.
- `/react` GuestBookingFlow: every step's Next that waits says why beside it, on a computer and a phone (role alert,
  in `--og-bad` ink), and brings the guest to what is missing (scrolled into view and focused, the part marked
  `data-og-missing="on"`; `bringToMissing`, `missingPart`, `missingControl` in `group/flow/missing.ts`, run from the
  click, never an Effect). What marks its cards; When the calendar (no days) or the days (nobody rides); Kit the must
  item's cell or the rider's row; Tour no longer disables Next: pressing it says what is missing (nothing picked, nobody
  going, too few seats, a request still open; `TourStep` `tried`); Plan names the first field to fix right above Book
  (`whoBooksFirst`, `whoBooksWhy`, `PlanBoard` `why`, `Field` `missing`); Pay brings a failed pay at the shop into
  view. `StepFoot` takes `why` (shown on every width; `note` stays the phone's plain note), and the Bikes reason reads
  the same. New words `stitch_problem_email_bad`, `stitch_problem_name_long`, `stitch_problem_phone`,
  `stitch_problem_password`, `stitch_problem_terms`, `stitch_problem_tour_who`, `stitch_problem_tour_seats`,
  `stitch_problem_tour_ask` in en, it, de, fr. Additive. Tests `tests/booking-flow-next-waits.test.mjs`.
- `/core` API types regenerated from outdoor-grid-api dev: `SiteBrand` gains the optional `band`, `band_ink` and
  `pick_ring` (the shop's stepper band, its text and the selection ring; null or absent: the package's own), and
  `SiteContrast` their checks (`band_ink_ratio`, `band_text_ok`, `pick_ring_ratio`, `pick_ring_ok`). Additive, no code change.

### [0.2.1] - 2026-10-19

Fixes from Evolve's wiring of 0.2.0 into its site. Pre-1.0 PATCH, additive: nothing to change downstream; rollback is
the exact pin `0.2.0`.

- `/react` Bikes on a computer: the stage takes at least 60% of the row (`.og-bk-body`'s panel is 540px at most and 40% of the row), and GuestBookingFlow runs the Bikes step edge to edge from 1024px through FlowFrame's new `bleed` (no page margins, no trip beside it: the panel carries the total; what sits above the step keeps the margins; `data-og-bleed="on"`), so the stage is 900 of 1440 as on the canvas (Bikes 5A). The panel cap applies to every BikesView on a computer, so a standalone Bikes element's panel is a little narrower from 1024 to 1440. The phone is unchanged.
- `/react` words: the stepper band's summary words are lines like every other (`words/band.ts`, `band_sum_*` in en, it, de and fr), so a shop rewords them through the provider's `words`; GuestBookingFlow reads them through the new `bandWordsOf` (where a step stands stays StepperBand's `band_now`, `band_next`, `band_then`, `band_skipped`), and `StepperWordsOptions` takes `words`. `FLOW_SUMMARY_WORDS` keeps its shape and values. A shuttle What card says a shuttle day (`stitch_shuttle_name`, `_line`, `_short`, `_phrase`, en, it, de, fr) instead of a guided tour's words, rewordable the same way; a card's look still wins. Additive.
- `/react` GuestBookingFlow: the Tour step lists only the tours of the kinds the picked What card books, so Guided tour lists the tours and Shuttle day the shuttles (both picked: both). `FlowActivityLook.tours` names a card's kinds (W7-06 `tours[].kind`); left out, a card keyed `shuttle` or `transfer` books shuttles and transfers and another tour card every kind no card claims; a tour the trip already holds stays listed. New pure `cardTourKindsOf`, `toursForCards`, `isShuttleCard`, `TOUR_KINDS`, `SHUTTLE_KINDS` (`wire.ts`). Additive.
- `/react` GuestBookingFlow: on Booked the stepper band names the trip (bikes, tours) from the booking's own read (W7-09's view, each line's client key to the group's rental or seat) instead of the availability read Booked does not ask, so it no longer shows raw product ids. `namesOf` takes the booked trip as an optional fifth argument and `bookedNamesOf` is new (pure, `wire.ts`); Booked's reads live in `useBookedTrip`, held by the flow.
- `/core` API types regenerated from outdoor-grid-api dev (`pnpm booking:generate`): `PublicFlowSettings`
  gains `answer_within_hours` and `answer_by_day_before` (A2a, the shop's answer time), `SiteKitItem`
  gains `product_id` (required, null when the item rents no catalog product), `RiderTripItem.status`
  gains `declined`, `expired` and `withdrawn` (A2b), and four paths say their real answers (the asked
  offer answer and withdraw, the held booking's pay at the shop and payment session: 409, 422, 503
  in place of `not_built`). A fixture typed as `SiteKitItem` adds `product_id: null`.
- `/react` `RiderTripPage`: a line the shop said no to, that ran out or that was withdrawn reads
  "Not booked" (`part_rider_not_booked` in en, it, de, fr); before, every line not booked read "With the shop".
- The shop's answer time is live: the public read's `booking.flow` now carries `answer_within_hours` and
  `answer_by_day_before` (outdoor-grid-api's stitch, `site_read_flow`), so `/core` `shopAnswerOf` reads
  them and the Plan's asked bars and running short say "within 12 hours" or "by the day
  before" from the shop's own settings. An API before the stitch still reads as the neutral line. No API change.

### [0.2.0] , 2026-10-19

The guest booking flow as ONE working flow (the UI stitch). Pre-1.0 MINOR, additive for the Elements; the new flow is
`GuestBookingFlow`.

- `/react` `GuestBookingProvider` and `GuestBookingFlow`: every step (What, Who, When, Tour, Bikes, Kit and extras, Plan, Pay,
  Booked) mounted in E1's router on E2's chrome (`FlowFrame`: `ShopBar`, `StepperBand`, the step, `StepFoot`; the trip beside
  the step from 1024px and in a sheet on a phone), with running short, saving a trip, a held booking, the shop's offer and a
  rider's own trip page (`RiderTripPage`) on the way. Props: `router`, `door`, `bar`, `footer`, `looks` (the shop's own photos
  and words per activity, bike and tour), `links` (`#s=`, `#r=`, `#o=`), `loadStripe`, `termsHref`, `accountHref`, `onBooked`,
  `now`, `layout`, `returnBase`, and `start`, `booked`, `holding`, `remember` for tests and galleries. Cards take the shop's
  photos through props. The Plan quotes a pending change as a draft (`onDraft`, `draft`) with a real W7-07 call.
- `/react` flow tokens `nav`, `on-nav`, `band`, `on-band`, `band-soft`, `band-mark`, `pick-ring` (on top of `bar`, `on-bar`,
  `pick`, `on-pick`, `pick-soft`, `bib`, `own`, `warn`), with `EVOLVE_FLOW_TOKENS` (olive pick `#49583c`, sage ring
  `#a3b78f`) and `FIRNFINK_FLOW_TOKENS`; the steps still ahead on the band are its ink at 60%, Firnfink's fix colour is amber.
- `/hooks` the flow's own calls (`hooks/flow.ts`): a saved trip, a held booking, the shop's offer, a rider's own trip, sign in,
  the saved riders, pay at the shop and a payment session; one Idempotency-Key per guest action, never retried blind.
- `/core` `payment.ts` (ways to pay, return polling, the trip day by day, `isKitLine` for kit the view sends as an `extra`),
  `fit.ts` (sizes from the riders' heights on the models free on their days, imperial units), `names.ts` (`cleanName`,
  `nameOr`: a guest's name in a title, trimmed and capped); `/react` words `stitch` (typed in en, it, de, fr).
- `/next` `createFlowRoute` and the flow's operations with each call's one credential header (see the entries below).
- Embedded Checkout: the site passes `loadStripe` from `@stripe/stripe-js` (an optional peer, `^10.1.0`); the package itself
  imports no Stripe code.

- Early steps (What, Who, When, Tour): a shop's own photos win on choice cards and tour cards (`TourStep` `photos`, `tourPhotos`, `RidePhotos` with tappable photo dots on a phone, part `ride-photos`), and with no photo there is no photo block; a quiet empty tour day for shops that take no requests (`tour-empty` `sparse`); a weight or height typed with a decimal rounds to whole cm and kg, metric and imperial, with the decimal keypad on the bib and the rider sheet (`Field` `inputMode` takes `decimal`); guest names cleaned for titles and pills (`cleanName`, `nameOr`, `tidyName`, `NAME_MAX`); arrow keys, Home and End in the Tour day rail, the request chips, the photo dots and the When calendar (`rovingIndex`, `calendarDay`, `calendarLanding`); `whenFromGroup` and `whenToGroup` map the group's days to the When step. Words `tour_photos`, `tour_empty_sparse` in en, it, de, fr. Tests `tests/booking-elements-guest-{chrome,signin,who}.test.mjs`, `tests/booking-elements-when.test.mjs`, `tests/booking-elements-react-tour.test.mjs`.
- `/next`: `createFlowRoute`, the booking route's core, which takes a host's own API call and a server secret for the capability; `createBookingRoute` runs on it with unchanged behaviour. The route keeps the guest session (`code-check`, `password`, `session` with the `#c=` confirm's password) in its own HttpOnly cookie `og_booking_session`, answers the page only the name, email and end time, and sends `X-Guest-Session` on `me`, `people`, `again`, `link`, `sign-out` and on `book` when signed in; `sign-out` and a 404 clear it. Every GBF token operation sends exactly one credential header (`credentialHeaders`, exported). `@stripe/stripe-js` is an optional peer dependency (the package keeps its own structural types). Tests `tests/booking-elements-route-session.test.mjs`, `tests/booking-elements-route.test.mjs`, `tests/booking-elements-flow-operations.test.mjs`.
- `/core` `kit.ts`, the Kit and extras step's model (BUILD.md step 6, canvas page 6, phone 6A to 6E):
  `KitPlan` (per rider kit menu and cells: rent in a size, own, not needed, fitted at the shop; head
  size; extras with who and which days), `kitItemsOf`, `kitFor`, `kitSuggest`, `kitCell`, `kitPickMenu`,
  `kitFullForAll`, `kitSetCell`, `kitSetHead`, `kitProblems`, `kitWaysOut`, `kitTakeWayOut`,
  `kitToggleExtra`, `kitSetExtra`. Pure, no prices made: an item's day price is the read's, totals are the quote's. Additive.
- `/react` `KitBoard`, the booking flow's step 6 (canvas page 6 Kit A to H, phone 6A to 6E), and its parts
  `KitBib`, `KitMenuPick`, `KitCircle`, `KitLegend`, `KitDecision`, `KitCost`, `KitExtras`, `KitCellSheet`,
  `KitRiderSheet`; `kitSummary`, `kitBand` and the other sayers (`react/kit/say.ts`), words
  `words/kit.ts` in en, it, de, fr. Computer: riders across with a kit menu each, items down, a circle per
  rider per item, the cell editor (rent, own, not needed, sizes with what is free, a helmet's head size,
  fitted at the shop), What it costs, Full kit for everyone, extras. Phone: a row per rider, their kit
  in a sheet, extras under the riders. A must left out is a decision card (a sheet on a phone) and Next
  waits. New parts `kit-step`, `kit-bib`, `kit-menu`, `kit-circle`, `kit-legend`, `kit-decision`,
  `kit-cost`, `kit-extras`, `kit-extra`, `kit-cell`, `kit-rider`. No theme token added.
- Kit and extras on the group state (E1): the group step `KitStep` (react/group) draws the board
  (`KitBoard`, react/kit, controlled by a `KitPlan`) from the group state and sends what changed;
  `KitGrid`, `KitMenuPicker`, `KitSizeSheet` and `ExtrasList` are drawn. `/core` `kitRidersOf`,
  `kitPlanOf`, `kitEventsOf`, `kitItemInfo`; the board's menus are the group's `KitMenu` ("helmet"
  for the musts only). The group event `kit-menu` takes optional `choices` (the cells the step made,
  sizes from each rider's fit). The kit and extra lines are the group's (`groupLinesOf`). Additive
  over E1: `KitStepProps` gains optional `kindOf`, `kitTotal`, `defaultOpen`; `KitMenuPickerProps`
  optional `items`; `KitGridProps` optional `sizes`; `KitSizeSheetProps` optional `headCm`.
- `/core` API types regenerated from the booking flow contract (outdoor-grid-api C0,
  `docs/booking-flow-contract.md` part B): `ProductFit` (build, geometry, fit ranges), per day
  `periods`, `morning` and `afternoon` free words, `neighbour_size` and `stand_in` alternatives.
- `/core` `fit.ts`, the Bikes step's pure model: `bikeFitOf` (W7-06 `products[].fit`, read
  defensively), `motorOf`, `bestSizeFor`, `sizesFitting`, `fitScale`, `fitPercent`, `bikeFreeOn`,
  `bikeShortDays`, `placeBikeSizes` (each rider's size from their height and what is free on their
  days: the best size, else a size away the shop's fit ranges allow, else short), `bikeShortOf`
  (the `neighbour_size` and `stand_in` offers of a `lines_unavailable` refusal), `ridersByModel`,
  `bikeDayCounts`, `sameBikeDays`.
- `/react` the Bikes step (canvas page 5 A to D, 6b A and B, phone 5A to 5E), both layouts
  (`side`, `stack`). E1's stubs in `react/group/steps/bikes` are filled: `BikesStep` on the group
  state (reads the riders, their days and main rentals; writes `bike` and `size`; Next writes the
  shown sizes, then `next` with the step's problem; `bikesFromGroup`, `bikesNextEvents`, `ANY_BIKE`,
  `BikeLook` for what the site adds per model: 3D stage, still, picture, day price), `BikeRail`,
  `BikeShowcase`, `SizeChart` (each rider on the height scale; riders take an optional `size`) and
  `BikeGeometry` (takes an optional `marked`). The step drawn from props is `BikesView`, with
  `BikeStage` (the shop's 3D bike in a slot, Pause / Turn), `ModelRail`, `WhoRides`, `BikeBuild`
  (the motor badge first), `RiderSizeRow`, `SizeAway`, `StandIn` and `bikeStandInOf` (a refusal's
  stand in as the decision card's ways on); the `bikes_*` words in en, it, de and fr; `.og-bk-*`
  styles on the theme tokens only. Additive.
- `/react` the Plan step of the flow (E5a), E1's stubs filled: `PlanStep`, `PlanTimeline`,
  `PlanDayList`, `ChangeSheet`, `PlanReceipt`, `WhoBooks` and `AccountOffer` (react/group,
  parts `flow-plan`, `flow-timeline`, `flow-day-list`, `flow-change`, `flow-receipt`,
  `flow-who-books`, `flow-account`) on the group state: canvas page 7 A to F and phone 7A to 7C.
  A tap opens the change sheet (who, which days, when on the day, the bike, the quote's difference
  from the caller before Apply); Apply sends the change as `part` events and Undo sends them back
  with the seats it took; a refusal of the change is a clash with its ways out; Book it opens who
  books it (one Name over the lead's first and last name, the rider who books or someone else, the
  optional account, the rental terms ticked by the guest), then `onBook`; a refusal of the booking
  (`taken`) is the decision card there, its way through `onWay`. The receipt is the quote rider by
  rider, then shared, asked lines with no price.
- `/react` the view Elements under it (react/plan): `PlanBoard`, `PlanGrid`, `PlanDays`,
  `PlanLegend`, `PlanSheet`, `PlanDecision`, `PlanCosts`, `WhoBooksForm`, `AccountBox` (parts
  `plan-board`, `plan-grid`, `plan-days`, `plan-legend`, `plan-sheet`, `plan-decision`,
  `plan-costs`, `who-books-form`): the trip as a timeline from 1024px and a day list below, one calm
  bar per rider per whole or half day with an icon per thing (bike, tour, shuttle), dashed when
  asked of the shop; the change sheet (a bottom sheet on a phone over the day being changed), a
  clash as a decision card (its ways as radios, the first suggested), Undo, who books it.
  Controlled on a `Plan`; money only from the quote; `icons` takes a shop's own icons;
  `clashTitle` and `takenTitle` say a clash in the guest's words. Words `plan_*` in en, it, de and
  fr; styles in `flow-plan.css` on the `--og-*` tokens and the flow's (a pick is `pick` with its
  `pick-ring`, a clash rings in `warn`, bibs in `bib` and `own`).
- `/core` `plan.ts`: the Plan's pure model on the C0 contract (`planRows`, `barsOf`, `planDays`,
  `likeRiders`, `changeFor`, `toggleChip`, `toggleEveryone`, `partOf`, `changesPlan`,
  `applyChange`, `reducePlanEdit` with a `stamp` so Undo's timer settles only its own change,
  `planWaysOut`, `refusedLine`, `askFor`) and who books it (`WhoBooksValue`, `whoBooksProblems`,
  `leadOf` for W7-08 `lead`, `accountOf` for `account`), and the flow's group state as a plan
  (`planOfGroup` with a `PlanLook` of catalog words, `planEventsOf`, `planUndoOf`, `clashFor`).
  `PLAN_UNDO_MS` is the Plan's Undo time (the group's `UNDO_MS` is for removing a rider). Line keys stay: a change for some riders
  of a line moves them together onto `<key>-<riders>` (`from` the old key), a change for all of
  them edits the line in place, and `askFor` asks only for the short riders and days
  (`<key>-ask`), keys cut to the contract's 24.
- `/react` the guest booking flow's Elements as typed stubs (`react/group`), one file each for jobs E2
  to E5 (the frame, the decision card and rider chips; Bikes; Kit and extras; Plan; the
  asked line card, the asked offer, the rider's trip page; Pay, Booked, sharing, saving and running
  short are the real ones in `react/finish`; the chrome, What, sign in and Who are the real ones in `react/guest`, When and
  Tour in `react/when` and `react/tour`), each drawing its `og-flow-*` root; `StepRouter` with
  `flowRouter` and `routedPage`; the stepper band's words `stepperView` / `summaryWords` in en, it,
  de and fr; the flow's theme tokens (`FLOW_THEME_TOKENS`: bar, band, pick ring, bib, own, warn,
  each falling back to a BookingTheme token; selection stays `pick`), `flowThemeStyle`, Evolve's
  and Firnfink's flow tokens. `/styles.css` imports one `flow-*.css` per job (copied beside it in
  `dist/`).
- `/core` the guest booking flow's group machine (`core/group`): `GroupState` (what, riders with name,
  height, weight, head, level, first time and own bike, units, the trip with same days or per rider
  day parts, rentals with asked lines, tour seats, guide picks, tour requests, kit per rider with the
  kit menu, extras, the lead, who books, payment, account, saved trip), `reduceGroup` with its events
  (`door`, `riders`, `remove-rider` with a 10 s undo, `saved-riders` for signed-in riders, `part`,
  `copy-days`, `bike`, `size`, `rental`, `ask`, `service`, `guide-pick`, `tour-request`, `kit`,
  `kit-menu`, `extra`, ...), `FLOW_STEPS` and `groupSteps`, `stepProblem`, the stepper summary model
  `stepperOf`, the request builders `groupBasketOf`, `groupBookingOf`, `savedTripOf` and back
  `groupFromSavedTrip`, the browser's picks `groupPicksOf` / `groupFromPicks` (no names or measures),
  `riderTotalsOf`, and metric / imperial helpers. Measures always go to the API in metric. A seat
  sits only on its riders' riding days (a seat on a day off the trip is refused; a part set off
  takes the rider off that day's seats); an extra for riders is one each; Next on Bikes waits for
  a size (`pick_size`).
- `/core` the guest booking flow's public routes as operations (`FLOW_SITE_OPERATIONS`): `saved-trip-save`,
  `saved-trip`, `saved-trip-delete`, `held`, `asked-offer`, `asked-offer-answer`, `withdraw`, `share`,
  `rider-trip`, `code`, `code-check`, `password`, `payment-session`, `payment`, `pay-at-shop`. Tokens
  travel as headers (`X-Saved-Trip`, `X-Resume-Token`, `X-Offer-Token`, `X-Rider-Trip`), never in a path.
  `/next` `createBookingRoute` serves the token ones by default and the payment ones opt in (the
  capability cookie unless a resume or offer token names the booking; `asked-offer-answer` too, as
  it can answer a payment session); each flow write sends on only its contract's fields, never the
  browser's return address; a token call carries that one credential and no other; the email code and password sign in are not route operations (a guest session never
  reaches page JavaScript).
- `/core` API types regenerated from the guest booking flow contract (outdoor-grid-api C0,
  `docs/booking-flow-contract.md` Part B): lines with riders, day sets and periods, kit, guide picks,
  tour requests and asked lines; the quote per rider and shared; saved trips, email codes, the
  embedded Checkout session, rider trip links. Additive: no schema or path removed.
- E5b: the generated API types follow the guest booking flow contract (C0, outdoor-grid-api
  `docs/booking-flow-contract.md`). `/core` `payment.ts`, pure: the shop's ways to pay
  (`paymentWays`, `onlineWays`, `payStepSkipped`, `payChoiceShown`, `defaultWay`), the return page's
  polling of GBF-31 (`CHECKOUT_POLL`, `checkoutPollDelay`, `checkoutView`; it never trusts the
  URL), the trip day by day for Booked (`agendaOf`, `localDay`, `riderNames`), running short
  (`shortDays`, `shortWays`) and GBF-60's body (`tripShareBody`, `isEmail`), with the contract's
  answer types (`CheckoutSession`, `CheckoutState`, `HeldTripAnswer`, `SavedTripAnswer`,
  `TripSharedAnswer`, `AskedLineView`, `FlowBookingView`, `LinesUnavailable`). Words for paying,
  Booked, sharing, running short and coming back (`words/checkout.ts`, `booked.ts`, `short.ts`) in
  en, it, de and fr. Additive.
- E5b `/react` running short and coming back (Short C, Pay F): `RunningShort` (the short day and
  the ways on: book what is free and ask the shop, save the trip, the host's change; the first
  allowed one suggested in the pick colours), `SaveTripSheet` (GBF-10 by email, `saveTripStep`),
  `TripWaiting` (a held trip from the payment email or a saved trip, `waitingOfHeld`,
  `waitingOfSaved`) and `TripGone`. Helpers named `ShortDayChange`, `shortDayLabel` and
  `bookedWeekday` so they never clash with the When step's.
- E5b `/react` Booked (Plan G, Pay E, Short D, phone 8B): `Booked` with the status line (paid and
  booked, the reference), "See you Tuesday, Marco", the ticket (first pick up, Directions, Add to
  calendar, only through `safeHref`), `TripAgenda` (the trip day by day in plain sentences,
  `agendaSentence`), the asked lines with their badges, and `ShareTrip` (send the trip to the
  group: an email per rider, GBF-60 once per press, then a link to copy per rider; never the
  booker's payment or contact details).
- E5b `/react` Pay online (Pay A to D, phone 8A): `PayChoice` and `PayAside` (only the shop's ways;
  full only draws no choice), `PayCheckout` (the trip beside Stripe's own form; declined adds "Your
  trip is kept, held until"), `StripeCheckout` (Stripe embedded Checkout mounted through a ref
  callback, loading and did not open; the package has no Stripe dependency: the site passes
  `loadStripe` from `@stripe/stripe-js`, and both `createEmbeddedCheckoutPage` and the older
  `initEmbeddedCheckout` are taken) and `PaymentReturn` (checking, still waiting, declined, hold
  ran out). `/hooks` `useCheckoutState` polls GBF-31 every 2 s for a minute, never trusting the URL,
  and stops at once on a 401, 403 or 404 (`refusedForGood`). `shortDays` carries the API's free
  words per day, in the day's order; `ShareTrip` takes the shop's `timeZone`; a held trip shows the
  API's amount as it is; a tour's sentence on Booked drops the day its words repeat (`tourName`).
- `/core` generated types regenerated from the booking flow contract (outdoor-grid-api C0,
  `docs/booking-flow-contract.md`): the public site read's `booking.flow` (`PublicFlowSettings`), `kit`
  (`SiteKitItem`) and the other C0 shapes. Types only, no runtime change.
- `/core` generated types follow the guest booking flow contract (C0): `PublicFlowSettings`, `CodeSend`,
  `CodeCheck`, `PasswordSignIn`, `GuestSession`, saved riders with `own_bike` and `head_cm`. Additive.
- `/react` the guest flow's chrome and first steps (`react/guest`, words `words/guest.ts` in en, it,
  de, fr): `ShopBar`, `StepperBand`, `StepFoot`, `ChoiceCard`, `WhatStep`, `whatSummary`,
  `whoSummary`; `SignInPrompt`, `SignInSheet` (email code or password; the site passes the GBF-20 to
  GBF-22 calls), `signInReducer` and its helpers, `SavedRiders`; `WhoStep`, `RiderBib`, `RiderRow`,
  `RiderSheet`, `LevelPick`, `UnitsSwitch`, `Toggle`. New parts `shop-bar`, `band`, `foot`, `choice`,
  `what`, `sign-in-prompt`, `sign-in`, `saved-riders`, `who`, `bib`, `rider-row`, `rider-sheet`,
  `level`, `units`, `toggle`.
- `LevelWord.tip` (optional): what a level means, shown as its tip; the package's bike levels carry one.
- Units: heights and weights stay in cm and kg; `heightText`, `weightText`, `heightInput`,
  `weightInput`, `parseHeight`, `parseWeight`, `otherUnits`. `useUnits` remembers metric or imperial
  per browser in localStorage (`og-booking-units`, a device setting, never personal data).
- Additive: no export removed or renamed, no theme token added; no migration.
- `/react` `TourStep`, the booking flow's step 4 (canvas page 4 Tour, phone 4A to 4E), and its parts
  `TourDayRail`, `GuidePick`, `TourCard`, `WhoGoes`, `SeatDecision`, `TourDayEmpty`, `TourAsk`,
  `RideSheet`, `TourFoot`: photo rows with the kinds of riding and a level meter, real times grouped
  with others and just your group, See the ride from the catalog, Let the guide pick, Who goes, the
  not enough seats decision card (a sheet on a phone), a day with nothing left, and private and new
  group requests. Controlled on a `TourChoice`; prices only from the read's `price_minor`. Words
  `tour_*` in en, it, de and fr; styles under `og-tour*` on the `--og-*` tokens only.
- `/core` `tour.ts`: the Tour step's pure model on the C0 contract (`tourRows`, `tourDays`,
  `waysOut`, `seatShort`, `toggleRider`, `tourReady`, `tourFlowOf`) and `tourLineOf`, which builds
  the `tour_seat`, `guide_pick` and `tour_request` line with key, riders, days, bikes and note.
- API types regenerated from the C0 contract (`openapi/public.json`, `src/core/generated`).
  Additive: no change to an existing export.
- E3a: the API types regenerated from the C0 booking flow contract (outdoor-grid-api
  `contracts/openapi.json`): `booking.rental_periods`, `booking.flow`, the per day `periods`,
  `morning` and `afternoon` free words on W7-06 and W7-20, and the rest of Part B. Additive.
- E3a: `/react` the When step of the booking flow (canvas page 3, phone 3A to 3E): `WhenStep`, `WhenCalendar`,
  `WhenKey`, `WhenDays`, `DayHalves`, `ShortDayCard`, the pure model (`pickDay`, `toggleHalf`, `partOf`, `shortDays`,
  `askFor`, `shortChange`, `applyChange`, `daySet`, `whenReady`, `freeByDay`, `shopClock`, `halfState`, `blockedDays`,
  `toggleDay`, `wholeDay`, and `whenContextOf` from W7-05's `booking` and W7-20's days)
  and the lines (`whenSummary`, `whenStepLine`, `whenLine`, `shortTitle`, `askLine`, `changeLine`). Words `when_*` in
  en, it, de and fr; styles under `og-when-*`, read only from the theme tokens. Additive.

#### Downstream migration

- Evolve and the hosted page: pin `0.2.0` exactly, in its own reviewed change, with the previous pin as the rollback. To book
  on the new flow draw `GuestBookingFlow` inside `GuestBookingProvider` (README "The guest flow") and serve the route with
  `createBookingRoute` (nothing changes for it) or `createFlowRoute`; add `@stripe/stripe-js` and allow `js.stripe.com`
  (script and frame) in the page's CSP on the booking pages. The older `BookingFlow` keeps working.
- Evolve's theme: set `pick` `#49583c`, `on-pick` `#f7f1de`, `pick-ring` `#a3b78f` (it was cream), and `nav` for the bar.
- Ops at release: the Stripe publishable key on QA and production, and each shop's domain as a Stripe payment method
  domain for Apple Pay.

### [0.1.3] , 2026-10-19

- `/core` `BookingRider` takes an optional `name` and `weight` (kg, for the bike's setup), set with
  the `rider` event, kept in memory only like the height (never in `picksOf` or the quote).
  `siteBookingOf` sends them on each person (`name` trimmed to at most 120 characters, `weight` in
  whole kilograms from 10 to 250; anything else is left out, never refused): `riderNameOf`,
  `riderWeightOf`, `RIDER_NAME_MAX`, `RIDER_WEIGHT_KG`.
- `/react` `RiderCard` shows a Weight field with `onWeight` (`weightFrom`, `WEIGHT_KG`), and the
  closed row says the rider's name and weight when given. Words `rider_weight`, `rider_kg`,
  `rider_weight_kg`, `rider_weight_hint` in en, it, de and fr. Additive: no API change, no
  migration; repin the exact version.

### [0.1.2] , 2026-10-18

- `/core` `siteBasketOf` and `siteBookingOf`: when some riders of a rent line have a size and others
  do not, the riders without one join the line of the size that is the line's own option instead of
  a second line on the same option, so the quote no longer answers 422 "Give each size once and set
  its quantity" while a guest fills in Who. No API change; repin the exact version.

### [0.1.1] , 2026-10-18

- First published version (0.1.0 was tagged but never published).

- First version (B2): `/core` (the client typed from the public booking contract, the operation table,
  `reduceBooking`, the trip basket store, kinds of ride readers), `/hooks` (TanStack Query hooks and
  `useBasket`) and `/next` (`createBookingRoute`, `loadBookingServer`). No fluxos-lib-ui peer.
- B3: `/react` (the styled Elements, `BookingProvider`, `BookingFlow`) and `/styles.css` (reads only the
  `--og-*` theme tokens). React is a peer for `/hooks` and `/react` only.
