diff --git a/FuelBoard/ContentView.swift b/FuelBoard/ContentView.swift index a5d2dc0..d62d62c 100644 --- a/FuelBoard/ContentView.swift +++ b/FuelBoard/ContentView.swift @@ -1054,9 +1054,10 @@ struct ContentView: View { sortMode = .worthTheDrive } // QA temp: `FB_DETAIL_DEBUG=1` (DEBUG builds only) forces - // "Tap station = More info". The stored default is open-Apple-Maps, - // so on a simulator a tap bounces out to Maps with no way back and - // the Worth the Drive detail section can't be checked at all. + // "Tap station = More info". The default is already the detail + // sheet, so this only matters on a simulator whose store has + // "Directions" saved — it overrides the stored choice either way, + // which keeps the Worth the Drive detail section reachable. if ProcessInfo.processInfo.environment["FB_DETAIL_DEBUG"] == "1" { stationTapAction = .showDetails } diff --git a/Shared/FuelStore.swift b/Shared/FuelStore.swift index 29e72b6..d4bccbf 100644 --- a/Shared/FuelStore.swift +++ b/Shared/FuelStore.swift @@ -245,8 +245,8 @@ enum PriceDisplayStyle: String, Codable, CaseIterable, Identifiable { // MARK: - Station tap action /// What happens when a station row is tapped in the Stations/Favourites tabs: -/// open Apple Maps directions immediately (historic behaviour, default), or -/// show a detail sheet (name, address, distance, Directions button). +/// open Apple Maps directions immediately, or show a detail sheet (name, +/// address, distance, Directions button) — the default. enum StationTapAction: String, Codable, CaseIterable, Identifiable { case openMap // tap → Apple Maps directions straight away case showDetails // tap → detail sheet, Directions button inside @@ -801,8 +801,9 @@ struct FuelStore { saveString(style.rawValue, service: priceDisplayStyleKey) } - // MARK: Station tap action — open map vs detail sheet. Stored raw value; - // default open map preserves the historic tap behaviour for existing installs. + // MARK: Station tap action — detail sheet vs open map. Stored raw value; + // the default is the detail sheet, so a tap always lands somewhere the app + // can come back from. Directions still one tap away, inside the sheet. static let stationTapActionKey = "fuelboard.stationTapAction" @@ -810,7 +811,7 @@ struct FuelStore { if let raw = loadString(service: stationTapActionKey), let action = StationTapAction(rawValue: raw) { return action } - return .openMap + return .showDetails } static func saveStationTapAction(_ action: StationTapAction) {