Denial of Apple's Local Network privacy permission is the most common cause of
"BikeControl can't see my trainer app" on iOS and macOS, and it fails
completely silently: Bonjour browses return nothing forever, advertisements
never leave the device, nothing throws. An app watching only for errors cannot
tell "permission is off" from "there is nothing out there".
Apple ships no authorization-status API for it (not iOS 14...26, not macOS
15...26), so the new local_network_permission plugin measures it: an NWListener
and an NWBrowser on _bikecontrol-preflight._tcp, then
browser discovers the listener -> granted
kDNSServiceErr_PolicyDenied (-65570) -> denied
neither, before the deadline -> unknown
unknown is a real outcome, not an error — a device with no usable network never
completes the round trip even when the permission is fine — so everything fails
open on it and only a positive denial blocks the user.
The probe *is* the request: the system prompt fires on the first Bonjour
operation, so there is no separate request step, and after the user answers,
System Settings is the only way back.
- LocalNetworkAccess caches the result (probes cost a real round trip while
getStatus() runs on every tile mount, tap and resume) and collapses
concurrent probes into one, since two listeners on the same service type
would resolve each other.
- LocalNetworkRequirement gates the three LAN tiles: MyWhoosh Link, Zwift mDNS
and OpenBikeControl mDNS. Suppressed in screenshot/demo mode like the rest.
- Diagnostics drop the old guess (inferred from whether a discovery scan
returned anything, which could not tell denied from an empty LAN) for the
measured local-network=granted|denied|unknown.
- _bikecontrol-preflight._tcp added to NSBonjourServices on both platforms;
without it the browse fails for a reason unrelated to the permission.
The Xcode project deployment-target bumps (ios 13.0->15.0, macos 10.15->12.0)
are Flutter's own migration aligning project defaults with the Podfiles; they
happen on any first build.
Verified with real builds on both platforms, not just analysis: flutter build
macos --debug and flutter build ios --no-codesign both succeed, the framework
is linked in, and the preflight service type is present in both built
Info.plists. 35 tests cover the mapping, cache, concurrency and fail-open
behaviour.
Co-Authored-By: Claude Opus 5 (1M context) <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>
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>
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>
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>
The card showed only "Entsperrmodus" and "Erneut einrichten", so it looked
identical whichever mode was set and coming back from the explainer read as
if the choice had done nothing. Name the mode that is actually set, modelled
as the three states the setup can rest in — unlock-with-Zwift, right-side-
only, and the legacy restart loop — resolved in one place so both pucks name
the same mode the same way.
The missing unlock option was real, too. unlockWarnings — which carries
"Jetzt freischalten" — is rendered only by the left puck and the legacy
unified controller, and returns nothing without a connection; the right puck
never carried it, correctly, since the left one is what Zwift locks. So in
Zwift mode with the left puck off, asleep or not yet rediscovered, the action
existed nowhere and the card sat silent. Point at the left controller in that
case instead. When it is connected nothing changes: the left card shows the
real unlock UI and the right card stays quiet.
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>
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>
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>
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>
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>
Every Headwind or Climb the scanner finds is connected automatically,
including one that isn't the rider's — a neighbour's fan through a wall.
Getting rid of it means putting it on the ignore list, and the only route
onto that list is "Disconnect & forget" on a device's settings page. But
accessories are excluded from controllerDevices, which is the only device
list the setup chain renders, so such a device appeared nowhere at all and
could not be dismissed.
They now get their own quiet section below the chain: one card per
accessory, no checklist, opening the settings page that already carries
the forget action. That page in turn drops the button-mapping section and
"Reset to defaults" for an accessory — a fan has no buttons, so both were
empty promises — and titles itself "Device Settings" instead of
"Controller Settings". A Headwind also stops presenting itself with the
default gamepad icon.
Auto-connecting to any accessory in range is left as it is: the rider
ignores the neighbour's fan once, and it stays gone.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The first-run explainer offered "use the left side only" as the way to
avoid Zwift. That is the one puck Zwift actually locks. Picking it left
the rider on the 59-second restart loop, and — because
ZwiftClickV2RightSide.shouldAutoConnect required unlock-with-Zwift — it
also withheld the puck that needs nothing at all. Worse, with Zwift's
built-in keymap binding the right paddle to shiftUp and the left paddle
to shiftDown, the left side alone could only ever shift down. The
genuinely clean setup was reachable only by first choosing the mode it
was meant to replace, then tapping "Use the right side only" on the
right card.
So the option becomes right-side-only: no unlock ever, no restarts, and
the +/B remap the right card already applied so one puck covers both
shift directions. The cons now name the real price — no D-pad, so no
steering and no action bar.
Click V2 state is three modes now, not a boolean, and both connect gates
say so out loud. ClickLogic drives the left side's restart loop from a
single static timer that the right side's handshake cancels, so those
two can never be live together; that invariant used to be implied by one
gate and is now stated in both. Left-restart mode survives as the left
card's existing Select for riders who want the D-pad, just not as a
first-run choice.
The right card's shortcut delegates to the same policy rather than
keeping its own path, so both leave identical state: the left side held
back by the setting instead of pushed onto the ignored-devices list,
which is what lets "Set up again" undo it. Its confirmation copy moves
accordingly, and it stops offering itself once the left side is merely
listed rather than connected.
The remap sits in its own recordError guard. It needs a trainer app to
have been picked, and a mode the rider explicitly chose must not be left
half-written because an optional convenience could not run.
This also turns emulation_zwift_profiles_test's right-side case green:
it had been red since the gate landed, because e74c5920 fixed only the
isPending half of what was holding that side back.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
A ticked step has said everything it can the moment it ticks. Keeping it
on screen buries the one line that still matters under a list of things
that don't — and a card whose work is finished was spending a whole row on
telling the rider so.
Cards now render their outstanding steps and nothing else, and the
accordion goes with them: no summary row, no "N of M steps done", no
chevron, no tap to unfold a list of completed work. A finished card is
just its header. The banner already carries the count across the whole
chain, so the per-card tally was saying it twice.
startsExpanded gives way to pendingSteps in the model — the card had no
open/closed state left to remember. The first outstanding step is still
the active one and still carries the sole instructions button. The
AnimatedSize stays: when the last step ticks the card folds to its header
as a movement rather than a jump.
chainStepsDone and chainAllStepsDone were the accordion's only copy, so
they come out of all six locales rather than linger as strings nothing
renders.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
undelivered shifts
Three things.
The chain's 68 strings existed only in English, so five locales fell back
to it on the app's main screen. Now translated, in each file's own register
— informal second person throughout, matching the copy already around
them. Polish needed a `few` plural category for the step and day counters:
it uses a distinct form for 2-4, so `other` would have rendered "Zostały 2
kroków" instead of "kroki". Two keys written speculatively and never wired
up are dropped rather than sent to five translators.
The checklist's summary row sat inside a Button whose own padding inset it
past the steps below, and the leading glyphs differed in both width (15px
icon, 17px tick) and gap, so matching the outer inset alone would not have
lined them up. One _rowInset / _leadingSize / _leadingGap now governs both,
with the glyphs centred in a box of equal width. Two tests pin the tick and
the label columns, because this is exactly what drifts back unnoticed.
Finally, shifting with a trainer connected but no app holding the bridge
was charged to the daily command budget. Those shifts reach nothing. The
existing exemption only covered the case where the 20-minute
virtual-shifting budget was already ticking — that avoids double-billing —
so it grows a second reason: a command that was never delivered anywhere is
not a command the rider spent.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
"Unlimited commands until the trial ends" was not true.
RevenueCatService.canExecuteCommand is dailyCommandCount <
getDailyCommandLimit() and returns early only for purchased users — never
for trial users. What actually happens is setDailyCommandLimit(80) while
the trial runs, falling back to 15 once it expires. So the cap is 80/day
during the trial and 15/day after, and the card now shows the command
meter in both states rather than promising something the code does not do.
The same falsehood was in trialPeriodDescription, which is worse: it is
rendered only while the trial is live (iap_status_widget's !isTrialExpired
branch) and handed the *current* limit, so it read "unlimited now, 80 per
day later" — where 80 is precisely the limit that applies now. Corrected
in all six locales rather than leaving five of them asserting it, each
keeping the informal register its neighbouring strings already use.
More Options opens by default — what is in it is short, and collapsing it
on a screen the rider is already scrolling only hides it — and the quit
row now says what it does to the connections as well as to the app.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The trainer card read ProxyDevice.isConnected — the Bluetooth link to the
trainer — and called that "connected". Onboarding doesn't: a trainer is
bridged when isStartedListenable || isConnectedListenable, and the app
holds it when isConnectedListenable. So a trainer that was genuinely
connected, with a bridge the app hadn't picked up, fell through to the
catch-all label and reported "Not connected" about the one thing that was
working. Onboarding is the source of truth and the card now mirrors it:
Bridged / Waiting for {app}… / not connected, in onboarding's own words.
"Gears set up" is gone. Gear ratios are a preference with a working
default (ShiftingConfig.defaults), so no rider is ever blocked waiting to
set them up, and presenting them as an unticked box invented work that did
not exist. The two steps are now onboarding's two facts — the bridge is
running, and the trainer app picked it up — and the second names the exact
entry to look for ("KICKR CORE - BikeControl"), which is what riders miss.
Whether the bridge is running and whether the app holds it are
ValueNotifiers on ProxyDevice rather than events on the connection stream,
and nothing here listened to them: the card would have held a stale status
until something else forced a rebuild. HomePage now subscribes per proxy
and re-subscribes as trainers appear.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Four things found riding the real app.
The offline note claimed "your changes apply the next time it connects",
which is simply untrue — button mappings live in the keymap, not on the
device, so nothing is queued up waiting for a reconnect. It now says what
is actually true: you can still change what its buttons do.
A smart trainer that had only just been discovered announced itself as
"Wahoo KICKR lost connection". That was mine, and the cause is worth
recording: _handleConnectionQueue calls _connect() on every queued device,
but ProxyDevice.connect() deliberately no-ops unless the rider has asked
for that trainer. Recording "connected this session" right after connect()
returned therefore marked a trainer that never connected as having
connected — and the chain then read the disconnected state as a break.
Recording now hangs off the actual connection signal, and a new
DevicePresence.discovered ("in range, never connected") maps to a grey
"Not connected" that, being optional, doesn't stop the rider being ready.
A trainer that genuinely drops is still red.
"More options" had picked up two things that don't belong in a settings
drawer: a scanner running a permanent searching animation, implying work
the app wasn't doing on anyone's behalf, and a Close row on desktop, where
SystemNavigator.pop() does nothing useful and the window's own close
button is the way out. Pairing lives in the controller card's setup sheet,
which is where the scanner already was.
The virtual-shifting takeover dialog is gone entirely — the widget, the
shouldAutoConnect gate, the settings accessors and the onboarding call
site. Tapping Connect once is the whole consent story. Two tests asserted
the old gate; one is rewritten around intent alone being sufficient, and
the widget test for the dialog's presence is dropped rather than inverted,
because showSmartTrainerConsentDialog no longer exists and bringing the
gate back could not compile.
Also removes twelve imports in overview.dart left orphaned by the chain
refactor. Verified against the untouched 6.4 baseline: analyze reports no
errors, and the suite's failures are unchanged pre-existing golden drift.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The old Main tab showed three cards that each exposed whatever the app
happened to know — battery, BETA tags, four live metrics, a media toggle,
a dropdown — and none of them answered the only question a rider has
before a ride: am I ready? When something broke, nothing on screen said
which link failed or what to do about it.
Now every link in the chain gets one card with the same three parts: a
status light in one shared vocabulary, an Edit in the same place on every
card, and a tick-off checklist whose next action carries its own
instructions. Ready cards collapse to one line; unresolved cards open
themselves onto the single active step. Green stays in the dot and ready
status lines stay grey, so colour on this screen always means "look
here". The banner is derived from the cards below it, never asserted
separately, so it cannot contradict them.
Remembered devices close a real gap. A controller that was switched off
or out of range vanished from the app completely — riders could not see
what they owned, could not tell "never set up" from "not here right now",
and could not change a mapping away from the bike. The contour now stays
on screen and stays interactive while disconnected, since mapping a
button is a keymap edit, not a radio operation. Swiping a disconnected
card forgets it, with Undo; a connected one has no dismiss gesture at
all, so the swipe can never drop a working controller.
Desktop follows ui_kits/app-desktop: the chain reads as one centred
column and the activity log is promoted from a tab to a permanent rail,
which is where Help now lives.
The status dot pulses six times rather than forever. This app holds a
wakelock so the home screen can sit lit on a handlebar for an entire
ride, and an animation that never ends also never lets a frame loop go
quiet — which hung every widget test that rendered an attention card.
Nothing is dropped: the scan options, media-key and phone-steering
toggles, ignored-devices list, recording indicator and quit action move
into a collapsed "More options" section below the chain.
Verified against a stashed baseline — the suite's 32 failures (stale
golden screenshots plus one load-dependent flake) are all pre-existing
and unchanged; 93 new tests pass and analyze is clean.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The Base-version row on the mobile paywall dominated the plan cards it sits
under; tighten its padding, radius and type scale and give the radio a small
16px variant so it reads as the secondary option it is.
Translate the 182 onboarding/paywall keys added on this branch into all five
non-English locales, and refresh the four strings whose English wording
changed (billing lines, SRAM setup copy).
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
- Plan titles and prices shrink to fit rather than wrapping, so German
'Monatlich' stays on one line.
- The per-month figure now leads each card with 'Billed at …/yr.' beneath
it, matching the design; the monthly card's price line was blank
whenever its store product resolved.
- Terms of Use / Privacy Policy sit on one line at any width.
- The one-time Base card is white with a hairline border, so it reads as
the quieter option next to the Pro plans.
- Windows/Stripe fallback strings shortened to fit those single lines.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Extracts AppTitle's private update logic into lib/services/app_update.dart
(Shorebird patch first, then the platform store) so the title bar and the
wizard share one definition of 'an update is available' and one way to
apply it. The wizard shows it on the mobile welcome screen, or on desktop's
step 1 where there is no welcome screen — never twice.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- Mobile opens on a welcome screen whose headline reveals word by word,
then the subtitle, the three what-you'll-do rows and the actions.
'I'll set this up later' records completion, so a rider who declines
isn't asked again on every launch. Desktop keeps its rail-framed step 1.
- Dark mode: colorScheme.primary is only the brand blue in the LIGHT
theme, so white-on-primary icons and check marks were invisible (the
Network tile above all). New onboardingAccent()/onboardingOnAccent keep
the brand accent in both themes, lightened for dark.
- Step 4's blocked state read as 'Virtual Shifting doesn't work here'; it
now leads with 'Optional: connect your smart trainer' and says plainly
that VS does work — just not with both apps on one phone. The normal
step regains the design's 'Optional:' prefix too.
- 'See Pro & Base options' goes through IAPManager again, so iOS/Android
get RevenueCat's hosted paywall instead of the desktop fallback with
placeholder 'about x €' prices (_loadRevenueCatPricing is macOS-only).
The desktop paywall keeps pull-to-dismiss, now for every caller.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
MyWhoosh on Android only pairs trainers over Bluetooth, and BikeControl
can't advertise BLE to an app on the same device — so a bridge on that
device is unreachable. Step 4 now replaces the trainer list with the
reason plus the two setups that do work (move MyWhoosh to another device
for the Wi-Fi bridge, or run BikeControl on a second device and bridge
over Bluetooth), keeping the 'Let MyWhoosh handle Virtual Shifting'
footer. The step body takes the condition as an explicit parameter so the
screen is snapshot-testable off-Android.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Step 4's header Skip is gone entirely (the footer's 'Let {app} handle
Virtual Shifting' is the skip path; the mobile app bar had no room). The
mobile progress bar's completed segments are now tap targets (24px hit
area around the 4px bar) navigating back, mirroring the desktop rail. The
paywall bottom sheet gets an explicit X close button — its internal
scroll view swallows swipe-to-dismiss.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
'Step n of 6' is semibold; the Help pill gets its rounded border, card
background and accent life-buoy icon per the design. The done step's ghost
button only says 'Done — start riding' when the app (and any bridge) is
actually connected — otherwise 'Finish — I'll connect later'.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
App picker rebuilt to the design: white tiles with a 1.5px blue active
border and top-right check dot, dark semibold captions with proper
spacing, uppercase hairline group labels with the green VERIFIED badge,
and the info note strip with icon + brand wash (new OnboardingNote,
shared with step 2). Where-step cards rebuilt the same way (blue icon
square + check dot + tinted implies-strip when selected, pencil note).
SelectableCard is no longer used by the wizard — settings pages keep it
unchanged. Help sheet's done-step Q&A no longer talks about test-mode
limits when the user has purchased.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Press-a-button-to-continue is gone: presses now flash the matching button
on the controller contour via the same AnimatedButtonWidget the home
screen uses (keymap-aware), and the footer is a plain Continue. Toasts
default to top-right so 'Connecting to…' popups can never cover footer
actions on desktop.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Step 6 only claims 'You're ready to ride' when the trainer app is actually
connected through an enabled method AND any bridged trainer has been picked
up — otherwise an amber 'Almost there' state explains it's waiting for the
app, with the app row showing 'Waiting for {app}…'. The page listens to
every connection method's isConnected so the headline flips live.
Help sheet: 'Troubleshooting' now opens the controller+app-specific
use-<controller>-with-<app>/ page from bikecontrol.app (per the sitemap),
labeled accordingly, falling back to the bundled markdown only when no
combo resolves; 'Setup guides' links the selected app's own guide.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Rail: logo/wordmark aligned with the step badges, Help & Support gets the
design's card background + caret. Completed rail steps are now tappable
(wizard state is settings-backed, so revisiting is safe; the where step
routes to the app step for self-hosted apps). Done step: the trainer row
only claims 'Bridged' when the trainer app actually holds the virtual
trainer (isConnectedListenable mirrors emulator.isConnected) — otherwise
it shows a neutral 'Waiting for {app}…' row and the plain subtitle.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Replace the reused settings-page connection tiles with the design's own
tile language: icon square, Recommended/platform badges, description,
feature checks and a check-dot whose state is the method's real enabled
state. Toggles write exactly the same prefs + emulator start/stop calls as
the corresponding Trainer Connections tiles (onboarding_methods.dart), so
both surfaces stay one system. Section headers are now uppercase
letter-spaced labels with a hairline rule (CONNECTION METHODS / THEN IN
{APP} / PAIR BIKECONTROL AS YOUR TRAINER), and the bridge card gains the
missing SELECT IT FOR slot rows and the amber direct-pairing warning.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Addresses F1-F8 from the whole-branch onboarding wizard review: gate the
press-a-button-to-continue listener on phase/connection/sub-flow-open state
via a new pure shouldAdvanceOnButtonPress(), prompt device sub-flows for
controllers already connected before step 3, show a "Setup needed" badge,
hide the test-mode card for purchased users, add a close affordance and
fullscreenDialog route, fix the stale connection-step target for
self-hosted BikeControl, pop the wizard after the Pro-options drawer
closes, and unwind back-navigation within the controller step first.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>