Four things the first pass got wrong.
The home screen is the first board on the listing, and it was advertising
an unconfigured app: an amber "3 steps left — Controller & Trainer app
still need setting up" banner, nine controller cards (the set the card
goldens further down need, not a rider's bars), a steering gauge reading
"Calibrating…" where the Click V2's contour belongs, and an "Unlock it
with Zwift" card. The scene now runs with one controller — the Click V2,
which `screenshotMode` already shows as "Controller" — its unlock-mode
choice made and its unlock persisted, the trainer bridged and the
MyWhoosh Link connected. Every one of those buys off a step the home
chain was counting, so the banner is green and the controller card draws
its contour.
The device's corner radius was a fraction of the viewport WIDTH, which is
fine on a portrait phone and wrong on a landscape tablet: 78 logical
units on the 917-wide iPad viewport, where golden_screenshot's status bar
image puts the battery 23 units in from the right. It ate the battery.
Radius and bezel now scale off the viewport's SHORT side — a bezel is a
physical property of the device, not of the orientation it is held in —
and phones and tablets get their own radius fractions, because a real
phone is dramatically rounder than a real tablet. store_board_test.dart
holds every slot's corner arc clear of that status bar corner, with the
insets measured off the package's own topbar assets.
Version to 6.4.2+146, which the boards print in the overview header — the
fixture was still claiming 6.1.0.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Ports the marketing board BikeOtter moved to, onto the slots and scenes
this project already emits. The board is now written entirely in
fractions of the canvas — the five board slots are 440x956, 414x896,
1280x800, 917x688 and 853x533 logical, so anything in pixels lands
somewhere different on each.
The look:
* gradient corner to corner instead of straight down, so the board has
a light side and a dark side rather than a horizon;
* a white radial glow under everything — the falloff is what makes it
read, so it holds better than half its strength through the inner
half before dropping;
* the device tilted -3 degrees, with the rotation's overhang taken off
the top so the painted top edge still lands at the band foot (a
Transform resizes nothing);
* the bezel as padding rather than a foregroundDecoration border,
which used to eat 8 logical px of app on every edge and clip the app
bar at tablet width; plus a drop shadow and a bottom bleed, so the
board reads as a product shot;
* one accent phrase per headline in a light cyan from the brand
family — always the subject of the claim, never the verb;
* a 24-degree hue ramp across the listing, so six boards read as a
series instead of one image repeated.
Marketing copy and the brand style move to test/store_copy.dart, and the
slot table to custom_frame.dart, so the new board tests can read both
without booting the app. Two French headlines were shortened to fit the
character cap.
test/store_board_test.dart asserts the composition arithmetically on
every slot — the goldens are generated on demand and the suite that
writes them is tagged out of a normal run, so nothing else looks at the
layout, and its failure mode is silent.
Note: regenerating also picked up app-content drift on the `device`
scene (the "3 steps left" banner, a Calibrating gauge and the "Unlock it
with Zwift" card). That is the redesigned home screen reacting to the
marketing fixture's state, not the board change, and still needs a
decision on what that scene should feature.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
test/screenshot_test.dart and the five *_snapshot_test.dart files render PNGs
for the app stores, the blog and the docs. Only screenshot_test.dart asserts
anything, and what it asserts is a golden that flaps between machines; the rest
have no expectations at all. They are also the slowest files in the suite —
real fonts, real themes, one render per locale.
Tag them `screenshots` and skip that tag from dart_test.yaml, which flutter test
does read. The skip lands at suite level, so main() never runs and the snapshot
harness bootstrap is never paid. Regenerate with --run-skipped.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
- FrontShiftCard now applies its toggle/chainring changes to the live
FitnessBikeDefinition (not just the persisted config), so enabling the
virtual front derailleur takes effect immediately instead of only after a
reconnect/mode-switch — the combo gate read the config while the action
checked the def, so the just-enabled feature reported itself disabled.
- Bound the small-ring stepper to the large ring so small can't exceed large
(which inverted the ratio and made the shift a no-op).
- Error-handle the fire-and-forget front-shift combo so a throw is recorded
instead of becoming an unobserved async error.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Extract the trainer-app picker into a public TrainerAppSelect widget so it
renders standalone, and add mywhoosh-trainer-select and
mywhoosh-network-connection golden scenes for the website setup guide.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Extract FrontShiftCard from the gear-ratios page so it can render in
isolation, and add two golden scenes that capture single widgets for the
6.2 blog: the front-derailleur setting card and the second-window gear
overlay (2×N notation). Each renders the widget in a keyed RepaintBoundary
for a tight, page-free capture.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Suppress the overview's alert toasts in screenshotMode and drop the Device
scene's "Connecting to:"/"Connection finished:" test notifications, so the
store screenshots no longer show a "Connecting to: Controller" popup.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- Show the Base version in screenshots (re-assert IAPManager.isPurchased in the
shoot() helper, which core.settings.reset() had cleared — so the overview no
longer shows "N day trial available").
- Localize previously-hardcoded strings (en source; de/es/fr/it/pl are drafts):
- InGameAction labels (~50): title is now a localized getter backed by
englishTitle (Steer Right, Change Camera, Tuck, ...).
- ButtonTrigger (Single/Double Click, Long Press).
- Button-simulator action categories (Shifting/Steering/Other).
- The "N day trial available" banner string.
- Regenerated all localized screenshots.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- Bump golden_screenshot 8.2.0 -> ^11.0.1 (drops the Yaru dependency, hence the
linux plugin-registrant change).
- screenshot_test.dart now renders each scene for 6 locales (en/de/es/fr/it/pl)
via a shoot() helper, writing screenshots/<locale>/<scene>-<device>.png.
Marketing titles are translated per locale (de/es/fr/it/pl are drafts).
- main.dart: screenshotLocale global drives the app locale in screenshot mode
(was hardcoded to English).
- v11 only loads fonts found in the rendered tree, so loadAssets() runs after
the first pump.
- Virtual Shifting scene shows the gear UI instead of the "trainer doesn't
advertise FTMS" warning: added ProxyDevice.debugAttachFitnessBike (test seam,
no server side-effects) and hide the MyWhoosh gearing hint in screenshot mode.
- prepare_store_screenshots.sh maps each store locale from its language folder
(de-DE <- screenshots/de, ...).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Two infrastructure fixes so test/screenshot_test.dart runs correctly:
- golden_screenshot 8.2.0's testGoldens resets debugDisableShadows = true in
its finally, which is only correct for the automated binding. This suite runs
under the live IntegrationTestWidgetsFlutterBinding (needed for the real-async
Supabase/settings bootstrap in main), whose painting-vars invariant requires
debugDisableShadows == false — so every test failed at teardown with
"a painting debug variable was changed by the test". Shadow a local testGoldens
that leaves it false; shadows still enabled during capture so goldens are
identical.
- Load AppLocalizations up front, since core.whooshLink reads
AppLocalizations.current before any widget loads the delegate (otherwise a
single test run in isolation throws "No instance of AppLocalizations").
Running these goldens also requires the Apple SF Pro fonts locally
(`dart run golden_screenshot:download_apple_fonts`).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
activeDefinition now returns the CompositeBleDefinition; consumers
that need the FitnessBikeDefinition specifically use the fitnessBike
convenience getter. Bumps prop submodule to pick up the composite
machinery.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>