Trainers latch their control session to the protocol live at connect
time, so a switch only takes real effect on a fresh connection (Jonas
verified on hardware via the manual Bridge disconnect/reconnect). Both
switch sites — the VS-options selector and the self-test verdict CTA —
now run ProxyDevice.reconnectUpstream(), which mirrors the
ConnectionCard cycle and waits for the reseeded definition. Inert picks
(same effective delivery) skip the cycle.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The right puck switches itself off after a minute of not being used.
BikeControl now prevents that on its own, with no button to press. The
sequence lives in prop; this side supplies what only it knows and shows
the rider the one case they can fix.
- the gate reads raw adverts, not the device list: the sibling only has
to be nearby, and a left puck the rider ignored — every left puck in
right-side-only mode — still counts. Discovery is also the retrigger,
since an ignored puck never completes a handshake
- an optional step on the controller card, and a note on the right puck's
own card, when no left puck is in range. An offer, never a blocker
- drops the D-pad line from "use the right side only"
Fixes a related bug: the controller link counted every undone step,
optional or not, so an optional offer alone turned a working controller
amber and held back "Ready to ride". The other two links already
excluded optional steps.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
- self_test_card.dart: a precheck refusal on "Run again" now clears
_engine inside the same setState. _body only renders _idle (where
_refusal is shown) when _engine is null, so a refusal raised while a
finished verdict engine was still attached rendered invisibly behind
the verdict view — the rerun CTA silently no-opped.
- settings.dart: add missing static to _selfTestKey, matching its
sibling key helpers.
- self_test_harness_test.dart: drop unused self_test_harness.dart import.
Adds a widget test: complete a run to a verdict, attach the trainer
app, tap "Run again" — the trainer-app refusal is now visible and no
new run starts.
The social logins are what most riders reach for, so they lead; the emailed
code is the fallback and now sits under the "or" divider. Covered by a test
asserting the form renders below the last social button, so the order cannot
drift back unnoticed.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Riders without a Google, Apple, GitHub or Facebook account can now sign in
with their email address: Supabase mails a six-digit code and EmailLoginForm
redeems it via verifyOTP.
Deliberately code-only rather than a clickable magic link — a link has to
travel back through bikecontrol://, which is unreliable on Windows and Linux,
and corporate mail scanners routinely open (and thereby burn) one-shot links
before the rider ever sees the message. A typed code behaves the same on every
platform, including web.
The Supabase side is the send-auth-email hook in the website repo, which
renders the branded BikeControl mail through Resend.
Also folds the pop/onBack block that was duplicated across all four OAuth
handlers into _afterSignIn(), which adds the mounted guard those calls were
missing.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Second line under the chat intro sets expectations on response time,
translated into all six locales.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The onboarding trainer picker passed the State's own context into
connectTrainerFromPicker. Its trial gate opens the Go Pro dialog, whose
purchase action opens the paywall drawer -- and that context sits above
the Scaffold's DrawerOverlay, so openDrawer's `parentLayer!` threw. In
release the user saw only a "Null check operator used on a null value"
toast and the paywall never appeared, which on an expired trial leaves
no way forward at all.
Pass _sheetContext, which lives below the Scaffold.
_showPaywall also stops depending on callers getting that right: with no
DrawerOverlay ancestor it now falls back to showDialog, which only needs
a Navigator. The paywall already constrains and scrolls itself, so it
renders correctly either way. The paywall is the last thing that should
break when a caller passes the wrong context.
Symbolized from a support bundle (chat 197d1f1a, Windows 6.4.3 patch 13):
four identical traces seconds apart, each on the Go Pro tap.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Riders who can't find their controller are told the firmware may be out of
date, but never where to update it — a support report showed someone had no
idea updates run through the Zwift Companion app.
- name the Companion app in every firmware hint and give each one an action
that opens it (scan-time Zwift Ride toast, missing-custom-service alert,
newer-firmware-available alert)
- add a firmware tip with the same link to the onboarding "no controllers
found" state, where riders actually get stuck
- localize the three hints, which were hardcoded English, across all 6 locales
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
SupportComposer._submit caught the send failure to restore the text and
the staged attachment, then rethrew. The send button drops the returned
Future, so that rethrow escaped into the zone as an unhandled error and
was reported as "App crashed".
- _submit is terminal now, and the button invokes it via unawaited() so
no Future is silently dropped. The page-level rethrows stay: they are
how the composer learns it must restore.
- The page-level send catches forward through recordError
('support.chat.send') — this path had no crash reporting at all.
- Interim client mitigation for image-only messages: substitute a
localized placeholder body when the body is empty but an attachment is
present, since the send-support-message edge function still rejects an
empty body.
- A failed send no longer orphans the uploaded blob: the successful
upload is retained against the staged attachment the composer restores,
so a retry re-uses it instead of uploading a second copy (there is no
client-side delete for the attachment bucket).
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Three things a rider asked for, all on the same idea: an offer's button should
do the thing, and nothing should be labelled optional that is plainly working.
- "Enable overlay" now enables the overlay and *then* opens the Overlay
section. A button that only navigates to another switch is the toast
problem again, one tap further along. The enable path moved into a shared
enableTrainerOverlay(), run by both the section's switch and the step, so
the two cannot drift; it persists the flag only when the platform actually
put something on screen, so declining Android's draw-over prompt can't
leave a setting claiming an invisible overlay. A refusal says why, and the
page opens anyway — that is where the permission tile lives.
- New optional step on the app card: "Add keyboard and mouse actions",
offered when Local is available on this device but switched off (target is
This device, per CoreLogic.showLocalControl) and an app is chosen. Local is
not a way to reach the app, it is a way to do more to it — keystrokes and
clicks the button editor only offers once it is on — and a rider who never
turns it on never learns those actions exist. Its button runs the existing
enableLocalControl(), permission sheet and all.
- The card header drops its OPTIONAL tag once the link is off "off". The
link stays optional underneath, which is what keeps a trainer nobody owns
from blocking "Ready to ride", but the word is there to reassure someone
looking at an empty slot — not to caption connected hardware.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Riders keep writing in about the wrong gear number in MyWhoosh and others.
The answer has always been the gear overlay, and the one-time toast that said
so was the wrong messenger: it fired once, mid-connect, and scrolled away
before anyone read it.
Move the offer onto the trainer card, where it stays until it is acted on.
- New SetupStepId.trainerGearOverlay, last in the trainer checklist and
offered only once the bridge is up, the trainer app runs on this device
(Target.thisDevice), the platform can draw an overlay, and a Virtual
Shifting session is producing a gear to draw. Ticks off — and leaves the
card — as soon as the overlay is enabled.
- Its button reads "Enable overlay" and deep-links to the trainer detail
page's Overlay section, which owns the permission and PiP flows.
- SetupStep gains an `optional` flag so an offer stays an offer: it does not
colour the card, does not count towards the banner's steps, and never
stops "Ready to ride". Marked OPTIONAL on its own line, via the tag the
card header already wore (now a shared OptionalTag).
- Drops OverlayConnectHint, its ProxyDevice listener and the
overlay_connect_hint_shown flag. The two l10n strings it owned are reused
as the step's hint and button label in all six locales.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The same physical trainer is regularly discovered twice — once over BLE
(MAC/UUID device id) and once over mDNS/DirCon (dircon://<serviceName>) —
and BluetoothDevice.== is id-based, so the two never dedupe. Both rows
carried the same name, the same "Supports virtual shifting" subtitle and
the same bike icon, leaving the rider to guess which one to tap.
Name the upstream transport wherever the duplicates surface:
- the onboarding trainer picker (both the scan rows and the already-
connected card) now reads "<transport> · Supports virtual shifting"
and leads with a wifi/bluetooth mark instead of the generic bike;
- ProxyDevice.nameBadge drops the exact-duplicate-name gate — real
duplicates differ slightly (BLE advertisement vs DirCon service name),
which is exactly the case the gate missed;
- the diagnostics bundle gains upstream=wifi|ble next to the existing
mode= (which is the *downstream* retrofit mode, not the same thing);
- the home chain card ranks bridged > connected > connecting > idle so a
live entry always beats its idle twin.
New reusable connectionWifi / connectionBluetooth l10n keys replace the
hardcoded 'WiFi'/'BT' strings in the connection card and the proxy
metric row.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Nearly every MyWhoosh/Rouvy bridge rider pairs the virtual trainer, then
writes support asking why the gear shown in the trainer app doesn't sync
— trainer apps can't display BikeControl's virtual gears. Surface the
canonical answer (the gear overlay) exactly once, at the moment the
question would otherwise arise: the first time a trainer app connects to
the virtual trainer while the overlay is off.
- OverlayConnectHint fires an AlertNotification (toast + activity-log
entry) whose button deep-links to the trainer detail page, scrolled to
the Overlay section (new revealOverlaySection param).
- Hooked on ProxyDevice's device-level isConnected wrapper so it
survives emulator/mode swaps; gated on an active VS session
(fitnessBike != null), overlay disabled, and a persisted one-time
flag (overlay_connect_hint_shown).
- New l10n strings in all six locales.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The dots were the only way to steer the carousel by hand, and a stage that
animates on its own invites a swipe. Left goes forward, right goes back, both
wrap, and the stage follows the finger a little before it commits — a drag
too short to count springs back.
Also separates "pinned" from "reduced motion": screenshotMode still holds the
scene for deterministic captures, but reduced motion now only stops the stage
advancing by itself. Before this the dots did nothing at all with animations
off, which is exactly the setting where a rider needs to drive it themselves.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Reverts the reorder from 74bb2737; _buildPlansSection is byte-identical to
what it was before that commit again. The "Basis" rename of the comparison
column stays.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
11/9 was small enough to skim past. 12.5/10.5 fills the stage without
crowding it, in German too.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
SIM & ERG support and switchable setting profiles — the grid now derives its
rows from the item list instead of assuming two.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
A 2×2 grid for what doesn't need a picture: instant gear changes, the
Bluetooth-to-WiFi bridge, controller support and the adjustable gear count.
The one still scene — a rider reads it rather than watches it — with the row
heights tied together so the grid survives a translation wrapping.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
5.4s cut the ratio scene off mid-sweep and left barely enough time to read
the caption before the stage moved on.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Replaces the three benefit tiles with a three-scene stage that shows what
Virtual Shifting does in the widgets it actually does it with, and rebuilds
the scan as its own card with the found trainers inside it.
- Scene 1 pairs smart trainers with the training apps BikeControl supports.
- Scene 2 drives the gear editor's own ratio curve through its presets, so
GearRatioCurve is split into a definition-bound wrapper plus a value-driven
GearRatioCurveView, and the presets move to gear_ratio_presets.dart where
both the editor and the preview read them.
- Scene 3 introduces FrontShiftVisual (chainrings + resulting ratio range),
which FrontShiftCard now shows above its teeth steppers in place of the
bare ratio factor.
The stage holds still under reduced motion and screenshotMode, opening on
initialScene so each scene can be captured deterministically.
Also localizes the ratio curve's hardcoded labels and pluralizes the
"trainers found" count.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
- Remembered controllers offer a single "Forget" instead of two disconnect
variants: there is no link to drop on a device that isn't here.
- Click V2: drop the unlock-mode dropdown and the new-unlock-method toggle.
The explainer stays the one place the mode is chosen — it also does the
follow-on work (un-ignoring the left puck, the right-side-only remap,
cancelling the reset timer) that the bare dropdown never did. "Set up
again" now sits on the right puck's card too.
- Paywall: the Base column reads "Basis"/"Base" rather than "VOLL"/"FULL",
and the one-time Base card moves above the Pro plans so top-to-bottom
matches the comparison table's left-to-right.
- A remembered controller's own settings page shows its button mapping
again. The gate counted live controllers only and KeymapExplanation
looked its filterDevice up in the live list, so the page fell through to
a warning about connection methods, which had nothing to do with it.
- showGoProDialog takes a feature name for its title, so the keymap sync
cloud icon says what it does instead of only "Pro Feature".
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The app link read connectedTrainerConnections, which includes Local.
Local reports connected the moment it is switched on — it types into
whatever window happens to be in front — so it says nothing about
whether the trainer app is reachable. With a network method also enabled
(the default for MyWhoosh) that painted the link green while the
connection the rider actually rides on sat unactivated, hiding the one
thing left to do.
The link now reads non-local connections whenever any non-local method
is enabled, and all of them when Local is all there is — because then
Local IS the answer. The summary uses the same list, so the card cannot
caption itself "Local" while the network method is down.
The rule already existed: InactivityDisconnector draws exactly this
distinction, and connectedNonLocalTrainerConnections was already there
for it. The home chain simply was not using it. So the getter lives in
core.logic beside its siblings rather than as a private method on the
page — the next screen that needs it should find it.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Three chain-card changes. They arrived as one commit because the first
was still uncommitted when the others landed on top of it.
**A Click V2 waiting for its unlock-mode choice.** Reported edge case: a
brand-new install where the wizard was skipped or finished on another
controller leaves clickV2OnboardingDone false, so a Click V2 switched on
afterwards is discovered, in range, healthy — and deliberately not
connected. The chain had no way to say "we are choosing not to connect
this", fell back to presence, and told the rider their controller had
never been paired and should be brought back into range, about a device
switched on beside them.
That step now REPLACES the checklist rather than joining it. Putting it
first would have left the false steps sitting below it; every other step
is unknowable until the device is allowed to connect. Once the choice is
made the normal checklist returns. The card's action reads "Set up" and
opens the explainer, since the choice is what releases the controller
into the connect queue.
**Warning glyphs beside the status.** A flat battery, a pending firmware
update or a signal about to drop are qualifiers on "Connected" — it
works, but not for much longer, or not well — and the card said nothing.
They show only when something is actually wrong, so a glyph appearing
means something. Thresholds are the device page's own (20%, -70 dBm)
rather than new ones, so the two screens cannot disagree about "low".
**The bridging pitch on an unused trainer.** A trainer that is here but
has never been connected now shows what bridging it would buy instead of
an empty card; that list already existed on the device page, and this is
exactly the rider who has not seen it. Dropped once bridged, where live
numbers are the useful content, and dropped for one that broke
mid-session, where it would read as if nothing were wrong.
Not covered by tests: which badges get chosen, and when the feature list
appears — both are private methods on _HomePageState, which has no
widget test to hang a case on.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Desktop was routed straight into step 1's rail, which asks a rider to pick
a trainer app before anything has said what BikeControl does or how long
setup takes. The one screen that answers "what am I about to agree to" was
the one desktop never saw.
The screen was built for a phone column — Spacers, full-width buttons,
24px padding — so simply unlocking it would have stretched a column of
short lines across a 1400px window. It is capped to
kOnboardingBodyMaxWidth, the same measure the wizard's own body uses on
desktop, so stepping from the welcome into the rail keeps the text at one
width instead of snapping narrower.
step_app's update banner already keyed off _showedWelcome, so the offer
moves to the welcome screen on desktop by itself and never appears twice;
only its comment claimed desktop had no welcome screen.
The existing test asserted the behaviour being removed, so it is rewritten
around the new one, plus a case pinning the readable measure on a wide
window — that cap is the whole reason this doesn't look wrong on desktop.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The guided setup sat after "assign an action to a button", so a fresh
derailleur told the rider to map buttons it does not yet send. Setting
up is what produces them.
The test that was meant to cover this passed for the wrong reason: the
controller() helper defaults to hasMappedButtons: true, so the mapping
step was already ticked and never competed for the active slot. The
moment buttons are not mapped — every real fresh SRAM — mapping won. The
new case pins hasMappedButtons: false and fails on the old order with
exactly the reported symptom.
Also corrects the comment on that block, which described where the step
sat rather than why.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
A SRAM derailleur whose own shifting is still enabled is connected and
sends nothing at all. The chain said so with a blank grey panel and no
step — the one thing standing between the rider and a working shifter
was the one thing the card did not mention.
It is a step now, carrying the same wording the device card's own button
uses ("Set up SRAM control"), and "Show me how" opens the same guided
sheet the device card and the onboarding wizard run. It sits BEFORE the
unlock step: a derailleur that sends nothing cannot be helped by
anything about what it sends.
The id and the input field are named for SRAM rather than generically.
A generic controllerGuidedSetup would carry SRAM's wording, and the next
device with its own guided setup would silently inherit a label that
does not describe it — better that it gets its own id.
Checked whether anything else needs one: onboardingDeviceNeedsSetup is
the complete list of guided setups in the app, and it has exactly two
branches. The Click V2's is already on the chain via the explainer and
today's unlock step. SRAM was the only gap.
The empty panel is gone too. A device with no contour and no buttons
discovered yet rendered as a bare grey box that looked like a failed
render; nothing to draw is not the same as an empty box to draw it in.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The welcome screen already arrived a piece at a time while every other
step faded in as one block. What made the welcome screen feel considered
was never the fade — the other steps had one too — it was the stagger:
content arriving in the order it is meant to be read, so the eye is led
down the page instead of being handed everything and left to find the
starting point.
_Reveal was a private near-duplicate of OnboardingFadeUp (520ms/14px
against 300ms/12px). Rather than copy a third variant around the step
files, both are replaced by one OnboardingReveal, and the page-level
blanket fade gives way to a KeyedSubtree — it would only have competed
with the per-child reveals, while the re-key still re-mounts each screen
so it reveals again on every step change.
Eleven bodies across the six steps, including the controller step's four
phases and the trainer step's three states.
Two judgement calls: Gaps pass through unwrapped, because animating empty
space buys nothing and leaving it in place from the first frame means the
column's layout is settled before anything fades in — nothing shifts under
the rider's eye, and the cadence stays even. And the delay stops growing
after eight items: the controller step's list grows with every device in
the room, and uncapped the last entry on a busy screen would arrive a
second and a half after the first, which a rider reaching for it would
watch move.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
An unlock expires. "Connected" is true but says nothing about the fact
that is about to stop being true, so an unlocked Click V2's card now
reads "Unlocked until Friday, 14:30" — or "Likely unlocked until", where
BikeControl cannot confirm the unlock took. Same two strings the
checklist step uses.
A Click that is currently locked keeps saying "Connected": the step
already carries "unlock it with Zwift", and a stale deadline beside it
would contradict it.
This also fixes a lie the status line could tell. It was derived purely
from LinkStatus, and attention maps to "Out of range" — but attention is
equally what an unfinished checklist produces for a controller sitting
right there connected, which the new unlock step made easy to hit. A
device that is actually here is never described by a presence status
now; that covers the older case of a connected controller with no
buttons mapped too.
Not covered by a test: _controllerStatusLabel is private to
_HomePageState and there is no HomePage widget test to hang a case on —
chain_card_test passes statusLabel in as a plain string, so it never
reaches this. Its inputs are covered through the chain builder tests;
the label selection itself is verified by reading.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Two things.
The unlock step now says when the unlock runs out rather than just
ticking. That makes it the one done step in the chain carrying detail,
deliberately: an unlock expires, so a bare tick would hide that this
comes back tomorrow.
It also has to distinguish two states the device page already drew
apart. BikeControl cannot read a Click V2's lock state back — after an
unlock it knows when the 24 hours ought to run out, but not whether the
unlock took — so SetupStep.uncertain carries that, and the step reads
"Likely unlocked until Friday, 14:30" instead of claiming more than is
known. The date is preformatted at the page: the chain model stays free
of locales and date formats, which is what keeps it testable without a
loaded locale.
ZwiftClickV2 grows an `unlockedUntil` getter rather than the page
reaching into propPrefs. The +24h arithmetic already existed twice in
that file, and widening its `prop` import is its own hazard — that
package exports a `Set` which shadows dart:core's.
Separately, "Unlock again" on the controller details page threw "No
DrawerOverlay found in the widget tree" and did nothing. The page wraps
itself in a DrawerOverlay, but _buildDeviceCard and _buildActions are
methods on the State, so the context they close over is State.context —
which sits ABOVE the overlay its own build creates. Two callers were
hitting it, "Unlock again" and the device-script drawer. Both now build
from the context under the overlay, the pattern onboarding_page already
documents for the same trap.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
A Zwift Click V2 on the legacy unlock method gave the rider nothing to
go on. Zwift locks it to their own app, so it stops sending button
presses about a minute after the last one — which from the chain looked
exactly like a flat battery or a controller out of range, because the
card said nothing at all.
It is a step now, so it ticks like the rest of the checklist and the
card sits amber rather than green while it is outstanding. Last in the
list, since unlocking needs the controller present.
`ControllerInput.unlocked` is nullable rather than a bool: null means
unlocking is not a concept for this controller and the card omits the
line entirely, the same way requiresBluetooth already omits a Bluetooth
step that would never mean anything. That distinction is the whole
design of the field — the step must appear for the legacy unified
controller and for the left puck on unlock-with-Zwift, but not for the
left puck on the restart workaround (it reboots itself; "open Zwift"
would be wrong advice) and not for the right puck, which Zwift never
locked.
The instructions button routes on the active step: a locked Click opens
the unlock flow for that exact device rather than the generic "can't
find your controller" help, which is the answer to a different question.
The hint says why, not just what — riders who do not know Zwift locks
the hardware read "unlock" as a paywall.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Reported from a device: pick right-side-only, then turn "use new unlock
method" off, and you are left with no Click at all and a chain showing
its empty "Controller" placeholder.
One cause, not two. Right-side-only puts the left puck on the ignored
list — but in the legacy representation the LEFT puck is what becomes
the unified ZwiftClickV2, and the right puck builds nothing at all (see
BluetoothDevice.fromScanResult). Ignored left plus null right leaves
nothing to build, and the "Controller" entry was never an orphan: it is
chainControllerTitle, the placeholder the chain correctly falls back to
when no controller exists.
So the toggle now clears the mode and un-ignores the left side before
switching. That path was private to the onboarding policy on the
assumption that right-side-only was the only way out of it; it is not,
so it becomes restoreLeftSides().
Three UI fixes alongside it.
The error banner over the chain is gone, with the state that only fed it
— both animation controllers, the shake, the latest-error entry. The
activity log and its tab dot are untouched; the chain says what is wrong
now, and a card repeating it above was the older answer to the same
question.
Button-action errors no longer toast while the onboarding wizard is
open. The wizard asks the rider to press a button precisely while the
trainer app or the keymap is not set up yet, so those presses fail by
design, and "X could not be performed" over the step that asked for the
press reads as the wizard being broken. Still logged to the activity
list.
And the checklist's step rows sat 4px from the card edge, so the active
step's highlight read as a panel the card had failed to contain. At 10
it sits inside the card, with StepRow's own inset still letting the
highlight bleed slightly wider than the text.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Three things the first cut of right-side-only got wrong on a real phone.
The left puck was held back by a setting rather than ignored, so it kept
its entry in the device list and the active scan handed it straight back
— an orphan stuck on "connecting" that never could. Filtering it out of
controllerDevices fixed the onboarding list and missed the home chain,
which also draws from offlineControllers. That is the argument against
inventing a second mechanism: ignoring is the one the scan filter, the
remembered-device loader and the device list all already honour, so
using it takes the puck out of every list at once. The dedicated gate
and the isExcludedBySetup filter are gone with it.
Ignoring has to cover the remembered stand-in too, not just a live
device — the chain lists both side by side, and the card in the report
was a stand-in.
It also has to be undoable, or picking "unlock with Zwift" after
right-side-only silently still yields one controller. Removing the
ignored entry is not enough on its own: the scanner dedupes against its
cached advert, and performScanning() returns immediately while a scan is
already running, so the puck only came back on the next launch. It now
restarts the scan.
Both lists showed "Zwift Click" for both pucks: `name` is the raw BLE
advertised name, identical for the two. They use displayName, which
carries the translated left/right suffix.
Finally, the chain sat 24px in from each screen edge on mobile —
Overview's scroll view pads it by 12 and HomePage added 12 of its own,
before each card's padding on top. Desktop keeps its inset; there the
chain sits in a centred max-width box with no padding of its own.
Known sharp edge, left deliberately: un-ignoring the left puck by hand
while still in right-side-only mode brings both up live, and the right
side's handshake cancels the left's restart timer.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
An accessory's settings page had nothing to say about what the device can
actually do: its actions live on a controller's buttons, and the page that
would have shown them (button mapping) is hidden here because a fan has no
buttons of its own.
It now lists them — the six Headwind speed/HR actions, the four incline
ones — straight off the device via a new BaseDevice.assignableActions, and
hands over to the controller that can carry them: the connected one, since
that is the one a rider can test a mapping on right away. With no
controller around it says so rather than offering a dead link.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>