Add Überturbine 20" wheel for Model 3 and fix widget image parity#185
Merged
Add Überturbine 20" wheel for Model 3 and fix widget image parity#185
Conversation
Add missing W32D (Überturbine 20" Gunpowder) wheel assets for Legacy Model 3 in all 7 colors. The API reports "UberTurbine20Gunpowder" which was not mapped, causing a fallback to the default 18" Aero wheels. Also fix the widget showing different wheels than the main app: the widget now reads the user's image override from SettingsDataStore (same source as the dashboard) so both always display the same car picture. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
UberTurbine20Gunpowderwheel type from TeslamateAPI to the correct compositor code W32D inCarImageResolverSettingsDataStoreDetails
Wheel issue: A user with a Model 3 Legacy reported
wheel_type: "UberTurbine20Gunpowder"from the API. This pattern was not mapped inWHEEL_PATTERNS_M3, causing a silent fallback to the default 18" Aero wheels (W38B). The correct compositor code is W32D — verified by downloading from Tesla's compositor and comparing with known W32P (Performance 20") images.Widget parity: The widget's
loadCarBitmap()only calledCarImageResolver.getAssetPath()with raw API data, completely ignoring the user's manual image override set via the car image picker dialog. The dashboard checked for overrides first. Now the widget reads the sameSettingsDataStore.carImageOverridesand usesgetAssetPathForOverride()when an override is present, ensuring both views always show the same car picture.Files changed
CarImageResolver.kt— addeduberturbine20 → W32Dpattern, display name, variant wheel listfetch_tesla_assets.py— added W32D to Legacy M3 wheel listCarWidgetDisplayData.kt— addedimageOverridefieldCarWidgetUpdateWorker.kt— injectSettingsDataStore, read + pass image overridesCarWidget.kt— persist override in Glance prefs, use it inloadCarBitmap()m3_{color}_W32D.pngTest plan
UberTurbine20Gunpowderwheels now auto-detects correctly (dark 20" Überturbine)🤖 Generated with Claude Code