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>
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>
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.
- Drop the nested Card in the placeholder device-list entry so it sits
flush with sibling cards, and replace the 64x40 ClickContours thumbnail
(illegible at that scale) with the standard StatusIcon badge, matching
the gamepad icon Zwift Click V2 devices already carry.
- Move the onboarding pager's hero inside each page's own scrollable
content instead of as fixed chrome above the PageView, so a drag on the
contours swipes the pager and short viewports can scroll the hero too.
Each page now gets a fixed hero state instead of the shared scrubbing
value, since two scrubbing heroes sliding past each other mid-swipe
looked broken.
- Make the swipe hint tappable (advances one page via the PageController)
per updated product direction, while keeping it visually light and
free of any choice-applying behavior.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011GcRAUvS3gwjmfi2qJipcc
Fixes five review findings on the Click V2 onboarding branch:
1. "Set up again" now performs the same ClickLogic side effects
(setupHandshake / resetTimer) the connect-time flow does for an
already-connected left side, and refreshes UnlockToggle's state on
return instead of leaving it stale.
2. ClickV2OnboardingCard gained an onCompleted callback (wired to
DevicePage.onUpdate) so the device list refreshes even when no
connectionStream event fires after the onboarding page closes.
3. A connect failure in ClickV2Onboarding._connectPending() now also
surfaces a user-visible AlertNotification, not just a logged error.
New l10n key clickV2Onboarding_connectFailed added in all six
languages.
4. ClickV2OnboardingPage now builds its staggered-entrance
CurvedAnimations once in initState instead of one per row per
build, fixing an unbounded status-listener leak on _rows.
5. pendingDevices is intentionally left ungated on isPending (gating
it would break _connectPending, which needs it precisely because
isPending already flipped false) but is now correctly documented,
and _connectPending skips devices the battery saver suppressed via
the new Connection.isAutoReconnectSuppressed.
Also drops the redundant flutter/widgets.dart import from
click_v2_onboarding.dart (shadcn_flutter re-exports PageView/
PageController).
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011GcRAUvS3gwjmfi2qJipcc
Adds looping state badges to the onboarding hero (an idle-timeout pill on
page 0, a padlock with a sweeping ring on page 1, cross-fading with the
pager) and a staggered fade/rise entrance for each option's pro/con rows,
so the trade-off reads at a glance instead of as two paragraphs of text.
Both badges respect reduced motion via a MediaQuery.disableAnimations
guard that stops the shared loop controller rather than letting it run
forever under pumpAndSettle. Also closes a minor double-tap gap on the
two CTAs.
The three pre-existing tests that navigate to the onboarding page and
pumpAndSettle needed a one-line disableAnimations pin so the new
perpetual-while-visible loop doesn't make them hang, matching the
existing pattern in device_page_click_v2_collapse_test.dart for the same
class of problem.
Review findings on ClickContours:
- The glow blur/spread and the right-puck outward offset were authored as
absolute pixels against the onboarding pager's 180px-tall hero. A later
task reuses this widget as a much smaller card thumbnail, where a 34px
blur or a 14px translate would overwhelm the art. Wrap the layout in a
LayoutBuilder and scale those three constants by
(availableHeight / 180).clamp(0, 1), so appearance at the pager size is
unchanged and the thumbnail degrades proportionally instead of breaking.
- Document the widget's bounded-width/finite-height contract in the class
doc comment (Row+Flexible asserts otherwise).
- Add ValueKeys to the right puck's Transform.scale/Transform.translate and
the left puck's glow DecoratedBox, and cover the previously-untested
interpolated properties: right puck scale and x-offset, left puck glow
alpha, and a small-thumbnail case proving the offset scales down rather
than staying a flat 14px. The existing right-puck-opacity key and its
four tests are unchanged.
Adds ClickContours, the two-puck silhouette that animates as the Click V2
onboarding pager moves between "left side only" and "unlock with Zwift".
Takes a fractional page value instead of owning a PageController so it can
be scrubbed continuously by a swipe or driven by a plain animation later.