- 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>
Running BikeControl on a second device made the one next to the trainer app
unreachable. Each install now advertises its own identity.
Because that identity changes, an app that was already paired will ask to
pair once more.
Co-Authored-By: Claude Opus 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>
It was added while chasing the network discovery problem and is not useful
now that the cause is fixed.
Co-Authored-By: Claude Opus 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>
ScanWidget captured its requirement list once at mount — the onboarding
wizard then granted permissions while the home screen sat behind its
route, leaving a stale 'permissions required' card after finishing (a
controller being connected proves the permissions are fine). Also
re-checks on app resume for grants made in system settings.
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>
Updates sramSetupIntro and sramAuthorizeBody in intl_en.arb to the
clearer design wording (English only; other locales retranslate via
Localazy), adds the setup-wizard CHANGELOG entry under 6.3.0, and fixes
a test assertion that collided with the reworded SRAM intro copy.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- Implement onboardingWhereBody widget showing Local vs Network target options
- Wire step into onboarding page with target selection state and footer handler
- Add L10n strings for step UI and enables text
- Add snapshot tests for unselected and selected states
- All tests pass; flutter analyze clean
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Move applyTrainerAppSelection and applyTargetSelection functions to a new
shared lib/utils/trainer_setup.dart file so they can be reused by both
ConfigurationPage and the onboarding wizard.
- applyTrainerAppSelection: stops unsupported emulators, initializes action
handler, starts enabled connection method
- applyTargetSelection: sets last target, enables OBP/local methods as needed
Configuration page delegates to these shared functions while maintaining
call-site behavior via onUpdate() callback.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Wires the onboarding wizard's Help button to a contextual sheet (per-step
answer + setup guides / troubleshooting / support channels) and adds a
permission-denied sheet for Task 8 to consume.
The SRAM rear derailleur drops idle connections after ~3 minutes.
Reverse-engineering the official SRAM AXS app revealed it requests
CONNECTION_PRIORITY_HIGH immediately after connecting. This fix adds
the same priority request, subscribes to the gear-state characteristic
for additional notification traffic, and reads it every 60s as a
fallback keepalive.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The advertised serial was sliced off the raw device id. WiFi trainer ids
are `dircon://<name>` and `dircon://` is itself exactly nine characters —
the same length as the reference serial the slice was sized against — so
every WiFi-proxied trainer advertised the identical, information-free
`serial-number=dircon://`.
Strip any `scheme://` prefix before slicing, and pad short ids instead of
letting substring throw. BLE device ids keep their existing derivation,
covered by a regression test.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The decision page is about choosing, not explaining -- the animated
padlock that sells page 1's Zwift-unlock trade-off was noise once both
options are already laid out in the buttons below. Pass
ClickContours(page: 1, animate: false) there instead, leaving pages 0
and 1's badges untouched.
Also covers animate: false with real test coverage (previously only
MediaQuery.disableAnimations exercised the no-loop path) and updates
click_contours.dart's stale doc comment, which still pointed at the
64x40 card thumbnail removed in an earlier task.