Real iPhone wallpaper + populated Favourites captures

- PreviewWallpaper image set: the actual iPhone wallpaper extracted from the
  iOS 26.3 sim runtime (ActionButtonSelector Display.ca, 1320x2870 native
  res, JPEG ~180 KB) — replaces the gradient backdrop in the widget mock
- -seedFavourite <substring> launch hook: pins the first matching station
  for Unleaded via the normal keychain+app-group save path, so the
  Favourites tab can be captured populated (Ring Road Service Station,
  129.9, 59.1 mi, TOP badge)
- Re-captured 2-favourites (light), 6-favourites-dark, 9-widgets-dark,
  10-widgets-light with real data
- 95/95 tests green; Release IPA rebuilt + re-served
This commit is contained in:
FuelBoard Contributor
2026-08-15 16:49:09 +01:00
parent 6369eef249
commit 015368faaf
11 changed files with 34 additions and 33 deletions
+10
View File
@@ -186,6 +186,16 @@ struct ContentView: View {
// without touching the stored flag.
let args = ProcessInfo.processInfo.arguments
showWidgetMock = args.contains("-widgets")
// `-seedFavourite <substring>` pins the first matching station
// for Unleaded via the normal save path (keychain + app group)
// so screenshot captures can show a populated Favourites tab.
if let i = args.firstIndex(of: "-seedFavourite"), i + 1 < args.count {
let query = args[i + 1]
if let station = FuelStore.loadStations()
.first(where: { $0.name.localizedCaseInsensitiveContains(query) }) {
FuelStore.saveFavourites([FavouriteEntry(station: station, fuel: .e10)])
}
}
if let i = args.firstIndex(of: "-tab"), i + 1 < args.count {
switch args[i + 1] {
case "favourites": selectedTab = 1