feat(roadtrip): show the place photo on the stop sheet and the stop dialog (#2629)

On the road a stop's picture is often what decides whether it is worth the
detour. The phone's stop sheet shows the place's picture full width under its
name and the desktop stop dialog shows it in place of the kind tile; both open
the place's photos on tap. The picture is the place's own image, else the
provider photo for its Google or OSM id through the shared photo cache.
This commit is contained in:
Maurice
2026-11-13 09:28:30 +01:00
parent 69552ffeef
commit db6bb911c2
7 changed files with 231 additions and 10 deletions
@@ -11,6 +11,7 @@ import { useTranslation } from '../../../../i18n'
import { useSettingsStore } from '../../../../store/settingsStore'
import { useTripStore } from '../../../../store/tripStore'
import ChargingInfo from '../../../../components/Roadtrip/ChargingInfo'
import StopPhoto from '../../../../components/Roadtrip/StopPhoto'
import { formatDurationShort } from '../../../../components/Roadtrip/roadtripModel'
import { roadtripRows, stageOf, type StopRow } from '../../../../components/Roadtrip/roadtripRowModel'
import { readStay, shownStay } from '../../../../components/Roadtrip/stayReading'
@@ -336,6 +337,11 @@ export default function MRtStopSheet({ planner, shell }: MTripSheetsProps) {
</div>
<div className="min-h-0 flex-1 overflow-y-auto px-[18px] pb-[18px]">
{/* ── The place's picture, which is often what decides whether a stop is worth it
when the day runs short (#2629). Full width under the name, where the eye lands
first; a tap opens the rest of its photos. Absent when the place has none. ── */}
<StopPhoto place={place} className="mt-[14px] h-[140px] w-full rounded-[16px] bg-[color:var(--m-ic)]" />
{/* ── The two clock readings, and where they come from ── */}
{(arrive || leave) && (
<div className="mt-[14px] rounded-[16px] bg-[color:var(--m-inner)] px-3.5 py-3">