ftmsEmulator is now the single emulator for Virtual Shifting traffic
across all trainers and the Click V2. ProxyDevice keeps a per-instance
emulator only for proxy mode (each proxy trainer advertises its own
mDNS identity). ZwiftClickV2 attaches its def to ftmsEmulator directly.
ProxyDevice exposes its own state ValueListenables (isStartedListenable,
isConnectedListenable, retrofitMode, localAddress) that mirror the active
emulator, so UI bindings survive mode swaps. setRetrofitMode and
switchRetrofitMode live on ProxyDevice and migrate the FBD between
proxy/shared emulators.
Removes companionProvider, refreshCompanions, and the click-def
internal seeding in DirconEmulator.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds a small inline row at the bottom of the ProxyPage column with a
SmallProgressIndicator and a muted-text label. Visible only while
core.connection.isScanning is true via a ValueListenableBuilder, so
the chip self-hides between scan windows.
i18n: new lookingForSmartTrainers key in EN/DE/ES/FR/IT/PL.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds ProxyDevice.defaultRetrofitMode that returns RetrofitMode.bluetooth or
RetrofitMode.wifi when the device advertises FTMS and the user has a
matching Trainer Connection enabled (resolved via preferredBridgeTransport).
Power-meter-only and HRM-only devices, plus smart trainers with no enabled
Bridge transport, fall back to RetrofitMode.proxy.
Threads the device default through Settings.getRetrofitMode as a `fallback`
parameter so the auto-connect path, the tap-to-connect handler in
ProxyPage, and the picker's initState all surface VS first.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Persist a per-trainer auto_connect_<trainerKey> flag via Settings. Set
to true whenever the user explicitly starts the emulator (tap in the
Trainer & Accessories list, or the Connect button on the disconnected
card). Clear to false when they tap Disconnect (or Disconnect & forget).
In Connection._handleConnectionQueue's proxy branch, after the shared
listener setup finishes, check the flag for the scanned ProxyDevice —
if set and nothing else is in flight, pick up the saved retrofit mode
and fire startProxy() so the emulator is ready by the time the user
opens the details page (or without opening it at all).
ProxyPage no longer awaits startProxy — the details page opens the
moment the user taps a device and the BLE connect runs in the
background. ProxyDevice exposes an isStarting ValueNotifier that flips
true across super.connect(), so ConnectionCard can render a
"Connecting in {mode} mode…" row (with a small progress indicator)
between the tap and the first successful start.
Also restore the per-mode hint subtitles on the live picker — they
were load-bearing ("Mirrors your trainer over WiFi…" etc.) and I'd
trimmed them to fit a compact row. Layout now matches the disconnected
picker (vertical list, icon + label + subtitle, CONNECT MODE header).