diff --git a/FuelBoard/ContentView.swift b/FuelBoard/ContentView.swift index 9dd84d5..e8c9b6f 100644 --- a/FuelBoard/ContentView.swift +++ b/FuelBoard/ContentView.swift @@ -182,13 +182,16 @@ struct ContentView: View { .onChange(of: showOnboarding) { _, showing in // After onboarding finishes (or the test re-run is dismissed), // begin foreground location tracking if permission allows, and - // run the first data fetch (the relay probe during onboarding - // already surfaced the Local Network prompt). + // run the FIRST data fetch. This must be a forced refresh: a + // reinstall may leave a recent `lastRefresh` in the app-group + // defaults (which survive app deletion), which would make the + // cache-gated refresh skip the fetch and leave the station list + // empty on a brand-new install. if !showing, FuelStore.loadHasCompletedOnboarding() { locationManager.startForegroundTracking() monitor.update(stations: stations, favourites: refreshedFavourites, fuel: alertsFuel, radiusKM: alertsRadius) - Task { await refresh() } + Task { await refresh(force: true) } } } .onChange(of: scenePhase) { _, newPhase in diff --git a/FuelBoard/OnboardingView.swift b/FuelBoard/OnboardingView.swift index 4d6696e..08afcab 100644 --- a/FuelBoard/OnboardingView.swift +++ b/FuelBoard/OnboardingView.swift @@ -18,15 +18,8 @@ struct OnboardingView: View { var body: some View { VStack(spacing: 0) { - // Top bar: skip + page dots + // Top bar: page dots only — onboarding is mandatory, no skip. HStack { - if page < totalPages - 1 { - Button("Skip") { finish() } - .font(.subheadline) - .foregroundStyle(.secondary) - } else { - Color.clear.frame(width: 40, height: 20) - } Spacer() HStack(spacing: 8) { ForEach(0..