Commit 243b8da
fix(apps): honour the unit preference on the Climate Control page
The Climate Control page was registered with the 2-arg ctor that hard-pins UnitPref.Metric, so
inside/outside/set temperatures rendered in °C while the rest of the app (and the web) used the
account's imperial preference. Pass AppSettingsHost.Current.ToUnitPref() to the 3-arg ctor.
This completes the units sweep for data-wired pages: the Drives/Charging/Trips/Vehicles list pages
self-subscribe to settings; the dashboard widgets, Live Map and Climate are now passed the pref.
(FleetCompare/Glance/TripPlanner/TripReplay/WatchFace are registered with empty/noop sources — they
render no live data, so units are moot there; that is a separate data-wiring gap, not a units bug.)
Gates: full sln build 0 err, dotnet format clean, 31537 tests pass.
Verified via live screenshot: Climate Control now shows °F matching http://localhost:3000.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 21fab63 commit 243b8da
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1009 | 1009 | | |
1010 | 1010 | | |
1011 | 1011 | | |
1012 | | - | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
1013 | 1015 | | |
1014 | 1016 | | |
1015 | 1017 | | |
| |||
0 commit comments