Fix watch build, status sync, and icon assets

This commit is contained in:
FuelBoard Contributor
2026-08-30 22:26:30 +01:00
parent ebda21436d
commit 09740fca18
55 changed files with 442 additions and 12 deletions
+3 -7
View File
@@ -392,12 +392,6 @@ struct ContentView: View {
.foregroundStyle(.secondary)
}
Spacer()
Text(fuel.shortName)
.font(.caption)
.fontWeight(.bold)
.padding(.horizontal, 8)
.padding(.vertical, 4)
.background(fuel.color.opacity(0.18), in: Capsule())
}
}
@@ -496,7 +490,9 @@ struct ContentView: View {
}
private func statusFromCache() -> WatchRefreshState {
guard !stations.isEmpty else { return .noData }
let hasUsablePrices = !stations.isEmpty
|| favourites.contains { favourite in favourite.station.prices[fuel] != nil }
guard hasUsablePrices else { return .noData }
guard let lastRefresh = WatchFuelCache.loadLastRefresh() else { return .stale(lastUpdated: "earlier") }
let formatted = relativeRefreshText(for: lastRefresh)
return WatchFuelCache.isCacheFresh(lastRefresh: lastRefresh)