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>
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>
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>
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>
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 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>
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>
"Waiting for MyWhoosh to pick it up" opened the trainer picker, whose
bridged branch renders "Trainer connected" — an answer to a question the
rider wasn't asking. The trainer IS connected; the app hasn't picked the
bridge up. The connection step's pairing block is extracted as
OnboardingPairAsTrainerCard — bridge entry, the power/controllable/cadence
slot rows, the warning about pairing the bare trainer — and both the
wizard and the sheet render it. Routing is on the card's active step, so
the three trainer problems get three answers: not bridged opens the
picker, bridged-but-unclaimed opens the pairing instructions, ready opens
troubleshooting.
Auditing the rest against onboarding turned up two more.
isBridged now lives on ProxyDevice as a single getter that onboarding and
the home screen both call, so the definition cannot drift again. Three
places here were still keyed on the Bluetooth link rather than the bridge:
choosing which trainer the card shows, gating the metrics ticker, and
deciding whether the trial's virtual-shifting meter applies. Each was
measuring or picking the wrong thing.
The worse one: a remembered trainer mapped to amber, and on an optional
card amber blocks "Ready to ride" — so a trainer that was not in the room
would have held the banner hostage. Because the card inferred "bridged"
back out of its own status instead of asking the device, it would also
have claimed to be bridged and offered Edit. An uncommitted trainer now
rests at off, and bridged comes from the device.
Verified equivalent while in there: connectedTrainerConnections.isNotEmpty
is exactly onboarding's .any((c) => c.isConnected.value), since the list is
already filtered, and appHoldsBridge is the same isConnectedListenable the
onboarding summary uses to choose between "Bridged" and "Waiting for {app}".
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Three things the chain got wrong once a real trainer was in the room.
The trainer card offered "Edit" for a trainer that had never been
connected — an offer to edit nothing. It now offers Connect until the
trainer is actually bridged, and that opens the onboarding trainer picker
itself: connectTrainerFromPicker is extracted so onboarding and the home
card share one path, and "connect my trainer" behaves identically wherever
a rider reaches it. Extracting it also removed an empty `if
(device.isSmartTrainer) {}` that the consent removal had left behind.
The checklist is withheld until the rider has committed to bridging. A
trainer merely in range and one deliberately left on "let the app handle
shifting" are the same state underneath — not connected — and in both
cases a column of unticked boxes reads as work outstanding when there is
none. That surfaced a related bug: picking "No connection" sets
autoConnect false, but a trainer that had connected earlier in the session
was still classified as lost, so deliberately disconnecting it turned the
card red. An explicit "no connection" is now a resting state regardless of
what happened earlier.
Status changes animate. The checklist grows and shrinks through
AnimatedSize, so when the last step ticks the card folds to its one-line
summary as a movement the eye can follow rather than a jump; the card
border and the banner — colour, wash, and the badge resizing between its
calm and alarmed sizes — move on the same curve, so the screen resolves as
one gesture instead of several. The test asserts the collapse is genuinely
taller mid-flight than at rest, because "it animates" is otherwise not
something a test can hold onto.
Finally, the trainer-app instructions sheet was a thinner retelling of the
setup steps rather than the steps themselves. The onboarding guide block
is extracted as OnboardingAppGuideCard and both use it, so a rider who
loses the connection gets the same numbered steps, the same screenshots
and the same full-guide link that got them connected in the first place.
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>
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>
The Local method drives the app on THIS device, so offering it for an
'On another device' target (Rouvy on a PC, say) made no sense. Visibility
now mirrors CoreLogic.showLocalControl's target check, the mirror image of
the Bluetooth tile's rule, with a test pinning both.
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>
The wizard's Click V2 auto-prompt marked 'the pair' by uniqueId before the
second side was even discovered, so two concurrent connectionStream runs
each opened the explainer — replaced with a single flag set synchronously
before the await (the row's Setup-needed button remains the way back in).
ZwiftClickV2RightSide.shouldAutoConnect now also requires unlock-with-
Zwift mode: after 'left side only' the right controller is deliberately
unused, and connecting it anyway burned battery and disturbed ClickLogic's
restart cycle. Covers both the auto-connect queue and ClickV2Onboarding's
_connectPending (connect() is a no-op while the gate is false).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The auto-prompt fires once per device, so a cancelled SRAM guided setup or
Click V2 explainer left no way back in. The row badge is now a small
button routing through the same _openSetupFor the auto-prompt uses.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Every connected controller with a layout renders its contour directly
below its own entry card (not just the first one). Sheet pull-to-dismiss
now requires ~90px of accumulated pull past the scroll top (was: any
single overscroll pixel on clamping physics), resetting when the drag
ends or the list scrolls.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
shadcn's drawer dismiss is a raw vertical-drag GestureDetector, so inner
scrollables always win the gesture arena — the package has no scroll-aware
handoff. New SheetPullToDismiss bridges it: at the scrollable's top, a
continued downward drag (clamping overscroll or bouncing negative pixels)
closes the sheet. Reusable for any scrollable bottom sheet.
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>
Every step body slides in with the design's bk-fade-up (300ms fade +
12px rise), re-keyed per step and controller phase; static under reduced
motion and screenshotMode so snapshots stay deterministic. Mobile toasts
return to normal bottom placement and are lifted (72px, bottom-center)
only while the wizard is on screen, tracked via an onboardingActive flag
next to screenshotMode.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
'See Pro & Base options' opens the Paywall drawer directly (the 'Pro
required' nag was showing since the showGoProDialog switch); closing or
cancelling it returns to the done step — only 'Done — start riding'
leaves the wizard. The virtual-shifting blog link's label wraps instead
of overflowing on narrow phones.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Enabling Local now re-checks LIVE permission state after the sheet closes
and refuses to enable (and a throwing status check counts as not granted);
the walk test denies the permission via a stubbed channel and asserts the
toggle stays off. 'See Pro & Base options' opens the actual paywall
(showGoProDialog) instead of the subscription/login drawer. Toasts on
mobile (<600px) render bottom-center padded above the sticky footer;
desktop keeps top-right.
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 3's connected state renders the controller's contour via the same
ControllerCanvas the home screen uses, with human-readable button chips, so
riders see the buttons they just gained. 'Let {app} handle Virtual
Shifting' (footer and header Skip) now disconnects every smart-trainer
bridge — started, connected or still connecting — with auto-connect
cleared and keepInList so going back re-offers them. helpArticleFor covers
ZwiftPlayFw2 (a fw-2.x Play spoke the Ride protocol and got the Zwift Ride
article) and ZwiftClickV2RightSide; a test locks the slugs.
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>
The DrawerOverlay fix routed onHelp through the under-Scaffold context but
left _body/_footer on the page-level context, so sheets opened from step
bodies (Local's permission sheet) still asserted. Both builders now receive
the overlay context; a regression test walks the real wizard to step 5 and
taps Local (red on the old code with the exact assertion).
The Network tile's mapping now mirrors CoreLogic exactly: obpDirCon rides
the OBP mDNS server (TrainingPeaks) and rouvyMdns shares the Zwift-mDNS
pref with Rouvy's own emulator — both apps were missing their Network tile.
A test asserts tile visibility matches the CoreLogic predicates for every
registered app.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
shadcn's DrawerOverlay is created by Scaffold, so every wizard sheet opened
with the page State's context asserted 'No DrawerOverlay found' — the Local
tile's permission sheet was just the first one hit. All overlay opens now
route through a context captured under the wizard's Scaffold (regression
test proves red on the old code). The Button.ghost wrappers around rail
steps, Help & Support and method tiles now zero their intrinsic padding, so
done steps and method cards align flush again. Method tiles additionally
show live status when enabled: green 'Connected' when the trainer app holds
the method, muted 'Waiting for {app}…' otherwise (listens to the backing
TrainerConnection's isConnected/isStarted).
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>
Tapping a trainer in step 4 previously opened the takeover-consent dialog
and the proxy details page. In the wizard the tap under the Virtual
Shifting pitch IS the consent: record it, pin RetrofitMode.wifi (the app
finds '<trainer> - BikeControl' over the network, no BLE-advertise
permission prompts), enable auto-connect and route through
core.connection.connectDevice — the same connect branch as
ConnectionCard._onSelect. The row shows an in-place connecting spinner;
the details page stays reachable from the home screen. Trial gate kept.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Stack was StackFit.loose: in the onboarding grid's tight cells the visible
button shrink-wrapped its caption (uneven heights) while the active ring
was Positioned.fill (cell-sized). StackFit.passthrough hands the cell
constraints to the button, and a new alignment param (default topLeft,
unchanged for existing rows) centers grid-tile content. Test asserts every
tile button renders at exactly one Size at both 3- and 5-column widths.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The hint's inner Row uses Expanded; placed shrink-wrapped in the desktop
footer Row it received unbounded width, aborting layout and corrupting
shadcn's sorted paint order (repeated paintSorted null-check crash once a
controller connected). 340 is the design's desktop width; under the mobile
footer's stretched constraints the cap is inert. Regression test swaps the
footer live in both directions.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
On this branch a newly discovered Click V2 is held out of the connect queue
until the rider picks an unlock mode (ClickV2Onboarding.isPending). The
wizard's controller step now opens the existing ClickV2OnboardingPage for
held controllers (one prompt covers the pair) instead of UnlockPage, and
device rows show 'Setup needed' rather than 'Connecting…' for held devices.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
_promptSubFlowsIfNeeded() is invoked from two independent sources (each
connectionStream event + _startScanPhase), so two devices connecting close
together (e.g. a SRAM left/right shifter pair) can produce concurrent
invocations each opening a different sub-flow sheet. A shared bool
_subFlowOpen reset by the first sheet's finally reopened the
button-advance gate while the second sheet was still on screen. Replaced
it with a ref-counted _openSubFlows int, incremented/decremented around
each awaited sheet, so the gate only clears once every open sheet has
actually closed.
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>