From 923209b933956f1fe5b7ee0587e2f70f1f26fae2 Mon Sep 17 00:00:00 2001 From: FuelBoard Contributor Date: Mon, 17 Aug 2026 16:53:26 +0100 Subject: [PATCH] Reorder alerts sections and refine labels --- FuelBoard/AlertsView.swift | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/FuelBoard/AlertsView.swift b/FuelBoard/AlertsView.swift index 1fae409..7963ddb 100644 --- a/FuelBoard/AlertsView.swift +++ b/FuelBoard/AlertsView.swift @@ -133,7 +133,20 @@ struct AlertsView: View { NavigationStack { List { Section { - Toggle("Cheapest-station alerts", isOn: $enabled) + Toggle("Cheapest favourite", isOn: $favouriteDropEnabled) + Picker("Fuel", selection: $favouriteDropFuel) { + ForEach(FuelType.allCases) { fuel in + Text(fuel.displayName).tag(fuel) + } + } + } header: { + Text("Price-drop alerts") + } footer: { + Text("Watches your cheapest saved favourite for the fuel you pick here. FuelBoard alerts when a different favourite becomes the cheapest, or when your current cheapest favourite drops by at least 1.0p. This is separate from the nearby-geofence alert, so you can monitor favourites without extra location noise.") + } + + Section { + Toggle("Enabled", isOn: $enabled) Picker("Fuel", selection: $fuel) { ForEach(FuelType.allCases) { fuel in Text(fuel.displayName).tag(fuel) @@ -154,24 +167,11 @@ struct AlertsView: View { .foregroundStyle(.secondary) } } header: { - Text("Proximity alerts") + Text("Cheapest station") } footer: { Text("When you approach a station that is the cheapest within the radius, FuelBoard sends a notification — even with the app closed. Nearby stations selling \(fuel.displayName.lowercased()) are watched — favourites get priority — and each station alerts at most once per hour. Follow search mirrors the Stations-tab distance, capped at 8 miles for reliable geofencing. Smaller radii ping more often but later; larger radii ping rarely in town but earlier from afar.") } - Section { - Toggle("Cheapest-favourite", isOn: $favouriteDropEnabled) - Picker("Fuel", selection: $favouriteDropFuel) { - ForEach(FuelType.allCases) { fuel in - Text(fuel.displayName).tag(fuel) - } - } - } header: { - Text("Price-drop alerts") - } footer: { - Text("Watches your cheapest saved favourite for the fuel you pick here. FuelBoard alerts when a different favourite becomes the cheapest, or when your current cheapest favourite drops by at least 1.0p. This is separate from the nearby-geofence alert, so you can monitor favourites without extra location noise.") - } - if enabled, let lastAlert { Section("Last alert") { Label(lastAlert, systemImage: "bell.badge.fill")