mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-12-01 02:02:33 +01:00
Reported from a device: pick right-side-only, then turn "use new unlock method" off, and you are left with no Click at all and a chain showing its empty "Controller" placeholder. One cause, not two. Right-side-only puts the left puck on the ignored list — but in the legacy representation the LEFT puck is what becomes the unified ZwiftClickV2, and the right puck builds nothing at all (see BluetoothDevice.fromScanResult). Ignored left plus null right leaves nothing to build, and the "Controller" entry was never an orphan: it is chainControllerTitle, the placeholder the chain correctly falls back to when no controller exists. So the toggle now clears the mode and un-ignores the left side before switching. That path was private to the onboarding policy on the assumption that right-side-only was the only way out of it; it is not, so it becomes restoreLeftSides(). Three UI fixes alongside it. The error banner over the chain is gone, with the state that only fed it — both animation controllers, the shake, the latest-error entry. The activity log and its tab dot are untouched; the chain says what is wrong now, and a card repeating it above was the older answer to the same question. Button-action errors no longer toast while the onboarding wizard is open. The wizard asks the rider to press a button precisely while the trainer app or the keymap is not set up yet, so those presses fail by design, and "X could not be performed" over the step that asked for the press reads as the wizard being broken. Still logged to the activity list. And the checklist's step rows sat 4px from the card edge, so the active step's highlight read as a panel the card had failed to contain. At 10 it sits inside the card, with StepRow's own inset still letting the highlight bleed slightly wider than the text. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>