sram_axs.dart had grown to ~990 lines by carrying the whole guided
setup/restore sheet. Extract it in two layers:
- lib/widgets/guided_operation_sheet.dart — reusable, feature-agnostic
building blocks (StepRail, StageBadge, ProgressChecklist) any staged
setup flow can compose.
- sram_setup_sheet.dart — the SRAM-specific composition, copy, palette
and the AXS "press & hold" hero.
The device file (446 lines now) keeps only device/BLE logic and the
trimmed panel. No behaviour or pixels change.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Brings SRAM AXS shifter support, beta-access/Shorebird track, and the
battery-saver timeout fix into 6.3. Merged the prop submodule (83f4bf9) so the
SRAM parser/button-tables and the Climb protocol coexist. Resolved: CHANGELOG
(SRAM AXS folded into 6.3.0), the prop pointer, and repointed the SRAM
integration test to the fake-BLE harness that 6.3 promoted into lib/.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Replaces the hard-coded debug Continue menu item with a declarative submenu
listing every emulation profile. Uses core.emulation.start() and
core.connection.performScanning().
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Renames SteeringWheelGauge → SteeringGauge and rewrites the painter as a
horizontal bar with a sliding knob and glowing end zones, saving vertical space
on the device card footer. Updates the overview.dart usage and snapshot tests.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds a "Use {controller} with {app}" link that opens the matching
bikecontrol.app/use-<controller>-with-<app>/ how-to page:
- as the first entry in the Help & Support dropdown (above Instruction
Videos), using the connected controller + selected trainer app;
- on the controller detail page, for that controller + the selected app.
Each controller device and trainer app maps to its website slug
(SupportedApp.helpSlug + a controller lookup in help_article.dart), with a
generic "other-training-app" fallback when a combination has no dedicated
page and no entry when the controller type has none. New localized string
useControllerWithApp across all 6 languages.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- The floating overlay's drag handle now fills the full 24px trailing slot
instead of only the 14px icon.
- iOS overlay: arm PiP only while still showing and tear it down if a hide
lands mid-start(), so a show/hide race can't orphan a frozen PiP window.
- Detect Dynamic Island via the max safe-area inset instead of the top inset,
which collapsed in landscape and could auto-start an unwanted PiP.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Equal-width leading/trailing slots keep the primary readout centred
whether or not the app icon / drag handle is shown; the container's
horizontal padding is now symmetric and the bottom row no longer carries
an extra inset — so the value lines up over the metrics row.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
With the virtual front derailleur on, the compact gear readout switches
from rear gear/total (14/25) to head-unit-style front×rear position
notation (small ring 1×N, large ring 2×N, e.g. 2×14) — matching how
Garmin/Wahoo display Di2/AXS gearing. With it off, it stays 14/25.
- Add tested formatGearReadout helper.
- Wire into the proxy card, debug menu, desktop second window + Android
PiP/overlay (trainer_overlay_view), and the gear hero card (2× · 50T).
- Carry frontShiftEnabled + frontRingLarge through TrainerOverlayState
(json, ==, hashCode, activity map) so the snapshot reaches the overlay
and the iOS surfaces.
- iOS PiP + Live Activity: format 2×N centrally in GearSnapshot.
- Standardize the off-state readout to 14/25 across all surfaces.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Symbolicating a Rouvy user's 6.1 crashes (Shorebird patch build_id
4b7026f5fbf44e52452ba9e557c2c5a0) surfaced two "Null check operator used
on a null value" crashes: async UI callbacks running after their widget
was disposed (the user rapidly re-toggled the Zwift BLE option as
advertising kept failing).
- ZwiftTile.onChange: setState() ran after `await stopAllBleConnections`
on an unmounted state -> guard with `mounted`.
- ConnectionMethod: openPermissionSheet(context, ...) and setState() ran
after `await Future.wait(requirements)` on a defunct context -> guard
both async gaps with `context.mounted` (matching the existing guard at
line 315).
The underlying trigger (Zwift emulator "Data too large" advertise failure
on Rouvy) is tracked separately for the 6.2 branch.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
debugText now runs a multi-second mDNS scan. Stop awaiting it before
navigating — kick it off as a future, open the chat immediately, and let
SupportChatPage await it lazily for the diagnostic preview and at send time.
- Make the split left/right controllers available to everyone: replace the
isPro gate in the device factory with a "Use new unlock method" setting
(default on); off falls back to the legacy unified ZwiftClickV2.
- Add the "Use new unlock method" toggle to all three Click V2 settings panels;
flipping it reconnects the Click as the new/legacy representation.
- Fix the "Unlock again" button placement: on narrow side-by-side cards the
action now drops below the status text instead of squeezing it.
- Add "Use the right side only" to the right side when a left side is connected:
ignores the left side (reversible via Ignored Devices) and remaps the active
keymap so + shifts up and B shifts down.
- Localize new strings (de/es/fr/it/pl; en already present) and add
factory/settings unit tests.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The "connected"/"disconnected" activity alerts fired when a trainer app
attaches to one of our emulators now name the app ("Connected to Zwift",
"Disconnected from Zwift") and tag the alert with the transport, so the
activity log shows a WiFi or Bluetooth icon depending on how the app is
connected instead of always Bluetooth.
- AlertNotification gains a connectionType field + a connection() factory
that builds the localized, app-named message and tags the transport.
- All 6 emulator call sites (Zwift BLE, FTMS/Rouvy mDNS) route through it,
passing their own type and core.settings.getTrainerApp()?.name.
- ConnectionMethodType.activityIcon maps network -> wifi, else -> bluetooth;
overview threads connectionType through and uses it for the leading icon.
- Reuse existing connectedTo string; add disconnectedFrom (en/de/es/fr/it/pl).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The dialog builder captured the caller's BuildContext for l10n lookups
and the purchase flow. When the widget that opened the dialog was
removed from the tree while the dialog was still showing (e.g. a
ConnectionCard remount), any rebuild of the dialog hit
AppLocalizations.of on the defunct context and crashed the isolate
with "Null check operator used on a null value" (l10n.dart:50 via
go_pro_dialog.dart:43, seen on Windows 6.0.0).
Use the dialog's own builder context instead, and guard the
post-purchase pop with a mounted check.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
handleServices builds both ProxyBikeDefinition and
FitnessBikeDefinition up front and attaches to the right emulator
based on retrofit mode. ProxyDevice provides advertisementName +
mdnsTxt to ftmsEmulator/_proxyEmulator via the new startServer
parameters. Drops DirconEmulator state mirroring that's no longer
needed. ZwiftClickV2 no longer calls startServer (click-alone
path removed per prop strip). UI consumers route through
ProxyDevice.advertisementName and device.retrofitMode.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
After Task 5, activeDefinition returns the composite, so the debug
menu's def.runtimeType always showed 'CompositeBleDefinition' and the
FBD gear/trainer-mode info was hidden (the is-check failed). Route
through emulator.fitnessBike to restore the prior display.
Pulsing halo badge, destructive-color icon and border, and a bolded
"Chat with support" menu item when an unread admin reply is detected.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The host was only needed to swap the main window's UI into compact
overlay mode. With a real second window, the main window tree is
unchanged. Remove TrainerOverlayHost from _Starter's child in main.dart
and delete the file.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Removes the need to `hide OverlayState` on shadcn_flutter imports in
trainer_overlay_view.dart and its widget test.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds TrainerOverlayView — a self-contained, platform-agnostic widget that
renders gear N/M, mode pill (ERG/SIM), and optional power/cadence metrics.
Wired via ValueListenable<OverlayState>; onModeToggle/onDragStart are nullable
for Android isolate compatibility. Covered by 3 widget tests (TDD).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>