From a69847a0f3a136aa29452b3f6637d78b5f1a2c87 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Fri, 12 Jun 2026 21:48:21 +0000 Subject: [PATCH] tripit: enable Wikipedia city cover photos (CITY_IMAGE_PROVIDER=wikipedia, #47) Flips the planning workspace's Stay cover photos from the fake provider to live Wikipedia lead-image fetches (downloaded into STORAGE_DIR, served by the backend, editable per Stay). Part of the new-trip flow feature: every picked destination city gets a banner-ready cover. HOLD-ORDER: pushed only after the tripit image containing CityImageMode.wikipedia rolled out. Co-Authored-By: Claude Opus 4.8 --- stacks/tripit/main.tf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/stacks/tripit/main.tf b/stacks/tripit/main.tf index 355a0314..cd15012b 100644 --- a/stacks/tripit/main.tf +++ b/stacks/tripit/main.tf @@ -116,6 +116,15 @@ locals { # not-yet-visited countries + real UK bank-holiday leave windows + fares). # `claude_agent` mode requires images >= the #23 slice (already deployed). RESEARCH_PROVIDER = "claude_agent" + # Stay cover photos (tripit issue #47, ADR-0017): auto-fetch each picked + # city's Wikipedia lead image (keyless REST summary API, "City, Country" + # first), downloaded into the app's STORAGE_DIR (never hotlinked) and + # served by the backend; editable per Stay (URL/upload). Fetches run + # post-commit under an 8s budget and degrade to a placeholder — never + # block trip creation. `wikipedia` mode requires images >= the #47 slice + # (older images crash-loop on the unknown enum) — landed after that + # image rolled out, same hold-order as FARE/CALENDAR/RESEARCH above. + CITY_IMAGE_PROVIDER = "wikipedia" # Tour-guide content pipeline (tripit#24/#25): these three default to `fake` # in tripit's config, which is what shipped dark on 2026-06-08 — prod only # ever showed the placeholder "Sight 1". Real providers: Wikipedia GeoSearch