With every text size now on the theme's type scale, shadcn's 1.25x
mobile scaling made phone text wrap far more than on desktop. The app
now passes its own phone scaling to ShadcnApp (main app and overlay):
text 1.1x, while sizes, radii and icons keep 1.25x so icon buttons stay
at ~45 px and BkTouchTarget's 48 dp targets are unaffected. The 11 px
caption floor still holds in rendered size (12.1 px on phones).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
shadcn's text buttons are 35-38 px tall on a phone (28-32 px at size
small). BkTouchTarget grows a button to Android's 48x48 minimum on
compact windows only, with its content centred; desktop and the dense
inline buttons keep shadcn's sizes, so this is not a global restyle.
Applied to the action buttons on home (ready banner, chain-card step and
edit actions, footer rows, trial and Health ride cards), onboarding (the
footer, welcome, permission/help sheets) and the paywall's restore
button (purchase was already 52 px). The home and onboarding phone tests
now assert every filled/outlined button meets 48 dp at 1x and 1.3x text;
the paywall test checks purchase and restore.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- Paywall: the terms/privacy links wrap onto two lines at large text or
in long languages instead of a FittedBox shrinking them unreadably.
- Overview tabs: the Activity tab's error dot and the Blog tab's new-post
dot only spoke in colour; the tabs are now announced as 'Activity, has
errors' / 'Blog, new posts'.
- Help button: a failed unread check goes through recordError instead of
a bare log line.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Replace ~250 Material, 19 Bootstrap and 11 Radix icons across 65 files
with their LucideIcons equivalents (e.g. more_vert -> ellipsisVertical,
add/remove -> plus/minus, workspace_premium -> crown, patchPlus/Minus ->
badgePlus/Minus, GitHub/Facebook -> Lucide's own logos). The only glyph
left outside Lucide is the Reddit logo, which Lucide doesn't have. A
source guard test fails on any new non-Lucide icon outside that
allowlist.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
With Android's 'Remove animations' or iOS Reduce Motion on, the Help
button's unread halo and the scan animation hold a still frame instead of
looping, the overview tabs jump to their page instead of sliding, and new
activity entries appear in place instead of growing open.
prefersReducedMotion moves to lib/utils so any widget can use it (the
chain highlight re-exports it). The scan pill's 'SCANNING' is now
translated.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
At 220 px with every field on and 1.3x text the gear numeral kept its
natural width (its FittedBox sat in an unbounded Row slot), pushing the +
button past the card's edge. The numeral is now Flexible so it scales
down instead; the readings row scales as one group so a short value is
not drawn larger than its neighbours. Swaps the overlay's Material
add/remove/drag icons for Lucide.
Snapshot harnesses now re-measure after loading fonts: fonts arriving
after the first layout left intrinsic heights measured against the
placeholder font, which is what clipped the tab labels' descenders
('Activitv', 'Bloa') in captured screenshots. The app loads its fonts
before the first frame and was not affected.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A controller press used to setState both OverviewPage and HomePage (the
activity log and the pressed-button highlight), the activity log rebuilt
the whole overview every 5 s to refresh '5s ago', and Home rebuilt every
2 s while a trainer was connected.
Now the pressed button listens to a per-device notifier, the Activity
tab's error marker and each entry's age listen to their own notifiers,
and the trainer card's drivetrain polls its own trainer and rebuilds only
itself when its definition or connection changed. Drops the per-
notification warn log (the connection already logs every notification)
and translates the activity ages and the alert toast's Close.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Move user-visible literals into all six locales: the drivetrain 'of N ·
ratio' line, paywall restore/purchase-error text and the Windows fallback
prices ('/mo', 'Billed yearly', '% OFF'), Windows checkout/portal/login
dialog, store-offering and notification toasts, Click V2 'Unlock again',
keyboard-shortcut editor, phone-steering preferences, device-script
drawer, sync/registered-devices views, diagnostics, WHEELTOP hints.
Overlay failures now show a translated sentence per failure kind instead
of the raw diagnostic message (often an English exception string).
Catches in the touched subscription views and the paywall offerings load
forward to recordError.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Replace ~230 literal font sizes (24 distinct values, 8.5-32 px) with steps
of the theme's Geist typography via context.typography, adding one
missing 'caption' step at 11 px as the floor. Text now follows the
theme's mobile scaling like the rest of the UI instead of staying at a
fixed pixel size next to scaled body text.
Gear numerals keep their deliberate display size and use tabular figures
(BkNumerals). Painted/fixed-geometry text and the pre-theme recovery
screen keep literal sizes; a source guard test pins that allowlist and
the floor.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- home and onboarding at 390x844, at 1x and 1.3x text: no overflow and
every tap target labelled
- gear editor: every tap target labelled; icon buttons meet the 44 px
iOS target under the mobile scale
- SettingTile names a trailing Switch/Checkbox with the tile's title, so
it isn't read as an unnamed toggle (found by the gear editor check)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Breakpoints/WindowSize (compact < 600 < medium < 840 < expanded) replace
the scattered width literals. The app's existing layout switches keep
their exact widths as named constants (twoPane 800, networkValueColumn
640, keymapSideBySide 860, onboarding app grid 560, Click v2 380) so no
layout moves.
The desktop main window gets a 360x560 minimum size.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- the Android and desktop overlay engines run in OverlayShadcnApp: the
app's light/dark themes following the system, plus localizations
(they used to get a bare, always-light ShadcnApp)
- desktop overlay fills with the theme background instead of white, and
the controller passes the real brightness instead of always 'light'
- overlay +/- are BkTappable buttons labelled Shift Down/Up (SIM) or
Decrease/Increase (ERG)
- metrics shrink to fit instead of overflowing at larger text sizes, and
the Android overlay window grows with the system font size (to 1.5x)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
GestureDetector (+MouseRegion) tap areas move to BkTappable, which adds
button semantics, keyboard focus with a focus ring, and the click cursor:
- controller button pictures and the steering gauge halves (labelled
"Change what <button> does")
- network check rows (a disclosure reporting its expanded state)
- instruction video cards
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ShadcnApp already applies AdaptiveScaling.mobile (1.25x) on iOS and
Android, so the width-based 1.25x from the theme factory doubled it on
phones. The factory now returns an unscaled theme and the app relies on
ShadcnApp's platform scaling, which brings icon buttons to ~45 px. The
old 0.9x phone text shrink stays gone, so phone text is 1.25x Geist.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Replaces eleven copy-pasted AppBar headers (controller/device settings,
smart trainer, help center, support chat + thread, network
troubleshooting, sensors, gear settings, connection settings, logs,
button simulator) with BkPageHeader: one labelled back button, the
title in the typography scale's xLarge/semibold as a semantics header,
and the page's own actions.
The duplicate close (x) buttons that did the same pop as back are gone.
Back uses Navigator.maybePop, so the connection-settings PopScope guard
still runs.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
BkIconButton wraps shadcn's IconButton with a required label that
becomes its semantics label (button, enabled state) and, on desktop, a
hover tooltip. Icon-only controls now use it: root menus, stepper +/-,
support send/attach/remove, mini-workout controls, workout list actions,
dismiss/close buttons, onboarding back/close, refresh and help buttons.
The drivetrain shift buttons and the ERG +/- are labelled (Shift Up /
Shift Down, Increase / Decrease), and the drivetrain shift buttons pad
out to a 48 px target around the home card's smaller circles.
New screen-reader strings in all six locales.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
buildToast now sends its title and subtitle as an accessibility
announcement (assertive for errors, polite otherwise), so TalkBack and
VoiceOver users hear what sighted riders see.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
MediaQuery.viewPadding is already logical, but the mobile help pill
divided it by the device pixel ratio again, so on a 3x phone it cleared
a third of the home indicator. The home screen's scroll views now pad by
HelpButton.mobileFooterClearance (pill + inset + air) instead of a fixed
inset + 20, so their last item isn't hidden under the floating pill.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- paywall comparison table, plan cards, Base card and radio use colour
scheme tokens instead of a light-only palette (legible in dark mode)
- plan cards and the purchase button are BkTappable: button + selected
semantics, keyboard focus with a ring, click cursor; purchase is
visibly dimmed while a purchase runs
- workout summary icons and the button simulator's key-capture chip use
theme tokens; PRO badge text is dark (white on orange was 2.8:1)
- BkTappable: shared wrapper for custom-drawn tappables
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The current row was a fixed #EFF6FF wash under the theme's text colour,
which is near-white in dark mode. Row, border and badge colours now come
from the colour scheme (gearRowColors), and the two #A1A1AA literals use
theme tokens.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
BkTheme.build() builds both brightnesses from one place: shared Geist
typography, radius 0.7, the brand blue as primary in light and a lifted
brand blue (with a dark foreground) in dark. Dark surfaces are one
neutral grey family instead of navy cards on a grey page.
- light mutedForeground #A1A1AA (2.56:1) -> #71717A (>= 4.5:1 on white
and on the activity rail)
- phone widths get shadcn size scaling 1.25 instead of shrinking text
to 0.9, so icon buttons reach a finger-sized target
- bkAccent() and the onboarding accent ternary are gone: primary is
the brand colour in both themes now
- activity rail, markdown text and instruction-link borders use theme
tokens instead of brightness ternaries
- adds a window-size helper (compact/medium/expanded + named legacy
breakpoints) and a WCAG contrast test helper
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Reword the "Local" connection-method tile: the title no longer reads
"Control {app} using {modes}" (which misled users into thinking they must
type on a keyboard) and now reads "Control {app} on this device". Drops the
now-unused {modes} placeholder from controlAppUsingModes and rewrites the
enableKeyboardMouseControl subtitle to remove the misleading keyboard/typing
framing, across all six locales (en, de, es, fr, it, pl).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The trainer an earlier take bridged stayed remembered in memory, so the
home screen of every later take in the same run named it ("KICKR CORE")
where a fresh machine shows "Smart Trainer". A take's frames depended
on which takes ran before it. Each take now forgets it first; the
screen-recording and Shortcut clips lose the stray trainer name.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A new capture, test/feature_video_capture_test.dart (tagged video,
skipped by default), films one feature per clip for the website's 1:1
feature cards, with the same harness, output and two-run determinism
tests as the onboarding capture. scene.json adds feature and loops.
Scenes: steering (Elite Sterzo angle notifications on the home gauge),
full control (a Ride button gets a keyboard key, the activity log shows
it firing), customizability (a profile duplicated by editing, remapped,
renamed, then back), companion mode, button gestures (one button,
single / double / long press), music (media keys), Android control
(Android system actions, staged Android build), hands-free steering
(phone steering calibrating and following fake gyroscope samples),
screen recording, launching a Shortcut, the overlay settings, the
overlay itself on a transparent background, heart rate from Apple Health
shared over the network, the Mini Workout, setting profiles, and the
Base workout-intensity press (Tacx Training's own difficulty shortcut).
Staging: Pro on this device; MyWhoosh connected over the Network method
through an in-memory client on the offline machine; platform output
recorded instead of performed. Taps are now recorded relative to the
captured boundary, which is the whole screen for every onboarding scene,
so their taps.json is unchanged.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- The offline machine's TCP servers now accept in-memory clients
(connectTcpClient), so a test can connect "MyWhoosh" to the app's own
OpenBikeControl server and read back what the app sends it. Request
options on the offline HTTP client are ignored instead of throwing.
- PlatformOutput records what the app asks of the machine — simulated
keys and media keys, a Shortcut launch, Android global actions, the
overlay window — instead of doing it.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The sensor hub decides whether a reading is stale by the wall clock, so
on the fake test clock a fresh heart-rate sample could already read as
stale. Its clock is now settable (DateTime.now by default), like the
workout recorder's. Nothing changes outside tests.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Choosing where to ride replaces the action handler, and that choice read
dart:io's Platform, so a staged Android build got the desktop handler
back the moment a target was picked. It now reads HostPlatform like the
other gates: the Android build gets AndroidActions (local control through
the accessibility service). Unchanged outside tests.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
screenshotMode gives the Ride's A button a sample long-press action in
the mapping table for the store boards. On the feature video it showed
up as an assignment the rider never made. The test-only flag that keeps
profile names is now debugShowsRealKeymapsInScreenshotMode and covers
both. Off by default; the store boards are unchanged.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
screenshotMode shows every keymap profile as "Trainer app" for the
store boards. The feature video films a rider's own profiles being
duplicated and renamed, so it needs the real names. A test-only flag,
debugKeepsProfileNamesInScreenshotMode, keeps them. It is off by
default, like the other screenshotMode exceptions.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Three places read the wall clock directly, so on the fake test clock
what they showed depended on how fast the machine ran:
- phone steering integrates the gyroscope over the wall-clock time
between samples, so the same samples turned the gauge by a different
angle on every run. The device now takes that time from a clock seam
(nowFn), DateTime.now by default;
- a ride's timer and summary are timed by the recorder's nowProvider,
which is now settable, and core.workoutRepository can be swapped for
one that keeps a ride off the disk;
- the activity log stamps and ages its entries ("just now", "5s ago")
by activityLogClock, DateTime.now by default.
Nothing changes outside tests. A new test proves the steering angle
follows the samples' clock.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The Android-only options (the Android system actions in the button
editor, the phone-steering switch, local control through the
accessibility service) are gated on dart:io's Platform, which in a test
is always the desktop host. The feature video needs to film them.
Those gates now read HostPlatform, which is dart:io's Platform unless a
test sets the test-only debugHostPlatformOverride. It is null
everywhere else, so nothing changes outside tests.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The recorder, the scene writer and the checks every take has to pass now
live in test/helpers/video_capture.dart, so the feature captures can share
them with the onboarding ones. The recorder also learns a time cut, typed
text and a fixed-length swipe or event, which the onboarding takes don't
use.
Every onboarding scene is byte-identical to before.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Four new full takes run the same MyWhoosh wizard as mywhoosh-controller.
Only step 3 differs:
- mywhoosh-zwift-play: a Zwift Play on firmware 2 (ZwiftPlayFw2). That is
what Zwift Companion installs today, and it reports both halves over one
link. Shift up, steer left and shift down are pressed on its contour.
- mywhoosh-zwift-click-v2: both pucks are found and the unlock explainer
opens by itself. The rider reads both options and picks "Use the right
side", the path that finishes without the Zwift app. The right puck then
connects over the offline Bluetooth, and + and B are pressed on its
contour.
- mywhoosh-shimano-di2: D-Fly channels 1 and 2 are pressed. Di2 has no
contour in onboarding, so nothing on screen reacts. taps.json places
those presses on the device row.
- mywhoosh-sram-axs: the derailleur connects over the offline Bluetooth,
backed by the scripted fake derailleur. Its guided setup sheet opens and
is walked with real taps: Continue, authorise (the AXS button hold is a
hardware beat), Retry, all set, Done. Two shifter paddles are then
pressed.
Each take proves that the explainer and every sheet stage are drawn
inside the captured boundary, not only present in the widget tree.
Every wizard scene.json now names its controller: the website's device
slug and a display name. mywhoosh-controller gets zwift-ride / Zwift
Ride. Its frames and the vs-settings cutaway are byte-identical to before.
Every scene has its own two-run determinism test.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
screenshotMode keeps the one-time Click V2 explainer from opening, and
shows the controller as "Controller". The store screenshots need both.
The onboarding video needs the opposite: it films the explainer, and it
shows the rider's real controller by name.
Two test-only flags in main.dart, both off by default, following
debugAnimatesInScreenshotMode:
- debugClickV2OnboardingInScreenshotMode lets the explainer's real
auto-prompt fire under screenshotMode;
- debugKeepsControllerNamesInScreenshotMode keeps "Zwift Click V2" as
the name.
Outside screenshotMode neither flag changes anything.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
At 2x, the compositor's 2.2x punch-in upscaled the frames about 1.17x
past their native pixels, which softened the text. Frames are now
rendered at 3x (1140x2472). The logical 380-px layout is unchanged, and
taps.json coordinates are in the new pixel space.
Each scene now writes a scene.json with its pixelRatio, pixel and logical
size, fps and frame count, so the compositor doesn't have to infer the
scale.
The finer pixels make three sub-pixel animation tails visible, so each
takes a little longer to settle:
- the app-step reveal and the done step each take one more frame
(controller take: 611 -> 613 frames);
- the cutaway's presets scroll takes two more (461 -> 463).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Nearly every viewer has a controller, so trainer pages will embed the
controller take from its trainer chapter onwards instead. Removed with the
take is everything only it used:
- the no-controller staging;
- the "Can't find my controller" / "Set up later" walk;
- the "Connect" tap and the hold on "Trainer connected";
- the "cut" flag on chapters.
The controller take and the gearing cutaway are frame-for-frame unchanged.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Trainer-only take:
- The trainer is now picked with the row's own "Connect ›" button, and
taps.json records the tap there.
- "Trainer connected" is held about 2 s before step 5.
Cutaway:
- The opening page is held 1.5 s, the chosen preset about 1.8 s, and each
of ERG and SIM 2 s.
- The gear count now starts at 28 and is stepped to MyWhoosh's 30 with two
visible taps.
- The trainer streams Indoor Bike Data while the rider pedals, so the chain
on the gear card runs and the Ride's shifts move it to the next cog.
The chain was static for two reasons: the trainer reported no cadence,
and TrainerDrivetrain held it still under screenshotMode. The test-only
motion flag now lives in main.dart as debugAnimatesInScreenshotMode and
also covers the drivetrain. Two new test-only flags, both off by default,
keep the gear-count warning and the Mini Workout card off the video.
The opening-scene override for the Virtual Shifting stage now sits above
the class's doc comment, so each keeps its own docs.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- The Virtual Shifting stage on step 4 now opens on its gearing scene. The
"works in every app" scene is cut: by then the viewer has picked a
trainer. The capture uses a new test-only opening-scene override.
- On step 5, MyWhoosh now connects on film once the guide has been shown:
its app info goes in through the Network method's own message handler,
and it then pairs the bridged trainer. The Network tile turns from
"Waiting for MyWhoosh" to connected, the troubleshoot offer goes away,
and step 6 ends on "You're ready to ride". taps.json marks both moments
with a new "event" kind.
- A second take, mywhoosh-trainer, runs the same flow with no controller.
It passes step 3 through "Can't find my controller" and "Set up later",
and chapters.json marks that chapter "cut": true.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The capture now runs through all six steps in one take. A KICKR CORE is
bridged through the real picker path and plays the Virtual Shifting
stage first. The Network method is switched on, and the "Then in
MyWhoosh" guide and the pair-as-trainer card are scrolled into view. The
take ends on the done summary. chapters.json gives each step's frame
range, and every boundary between chapters is a settled frame.
A second scene, vs-settings, films the bridged trainer's page:
- the front derailleur, gear count and a preset;
- two Ride shifts landing on the gear card;
- the SIM / ERG switch.
The real connection code runs against an offline machine
(test/helpers/offline_machine.dart):
- the app's emulated BLE platform stands in for Bluetooth;
- an in-memory mDNS registry stands in for the LAN;
- TCP servers bind to nothing;
- the network interface list is fixed;
- the guide screenshots are served from local fixtures.
Nothing waits on the real event loop, so the take stays deterministic.
The onboarding motion flag now covers the stage and the trainer radar as
well as the reveal.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The where step now picks "This Device". Once the controller step has
settled, three Ride buttons are pressed (shift up, steer left, shift
down). Each press and release goes in as the raw keypad notification and
through the Ride's own decoder, so the contour reacts as it does in the
app. Each press is held for 9 frames.
taps.json gains a `kind` field: "tap" for a finger on the screen,
"hardware" for a controller button, placed on that button in the contour.
The subscription cancel is not awaited. Its future completes on the real
event loop, and awaiting it left every later pump hanging on the fake
clock.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Films the MyWhoosh path (app → where → controller) through the real
OnboardingPage with a connected Zwift Ride, writing every frame to
build/video_frames/<scene>/NNNNNN.png at 760×1648 plus taps.json with the
pointer position of each tap. A second test captures twice and requires the
frames to be byte-identical.
Determinism needs the fake-clock binding: under the integration binding
pump(duration) waits real time and frames are stamped by the vsync clock.
The snapshot harness gains ensureSnapshotAppState() for that. Fonts, logos
and the contour SVG are decoded before the first frame is recorded.
screenshotMode stays on for the machine state it pins, and a test-only
flag lets the onboarding reveal animate under it, since that reveal is
the step transition.
Tagged `video`, skipped by default:
flutter test --run-skipped --tags video test/onboarding_video_capture_test.dart
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The gauge printed the tilt with toStringAsFixed(0), which keeps the sign
of a negative zero. An Elite Sterzo reports a centred bar as -0 (its
angle is negated for the gauge), and any tilt a hair right of centre
rounds to -0 too, so a bar at rest read "-0°". The readout now rounds
to a whole number first.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Picking a media key (Play/Pause, Next, Volume …) for a button left its
in-game action in place. When the trainer app handles that action — the
Ride's Y opens MyWhoosh's menu — the trainer-app path runs first, so the
button kept doing its old job and the media key never fired. Every other
choice in the editor clears the in-game action; the media keys now do
too.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>