Commit Graph

94 Commits

Author SHA1 Message Date
Jonas Bark
0191fcc990 feat(trainer): control-protocol selector in VS options, persisted per trainer
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-20 13:38:32 +02:00
Jonas Bark
757faff42d feat(diagnostics): proto, vsMode, ftms caps, lastCtl and selfTest on the trainer bundle line
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-20 12:06:37 +02:00
Jonas Bark
8f4c0e9773 fix(store): drop the Pro button from the screenshot renders
It sat first in the app bar's trailing row, and the marketing renders lay that
bar out narrower than a real window — enough that AppTitle's wordmark wrapped
mid-word, "BikeContr / ol". Harmless in the framed boards, glaring on the
website hero, which shows the frameless render at ~150px where the broken
wordmark is the first thing the eye lands on.

Gating it on !screenshotMode gives the title its line back, and buys enough
trailing room that "Add keyboard and mouse actions" stops wrapping too. A Pro
upsell was never what these boards were selling.

71 goldens follow: the six device-* slots per locale, where the app bar lives,
plus the androidTablet / noFrame pairs that flap between runs.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-17 17:02:49 +02:00
Jonas Bark
9ade43d060 feat: label WiFi vs Bluetooth trainer entries
The same physical trainer is regularly discovered twice — once over BLE
(MAC/UUID device id) and once over mDNS/DirCon (dircon://<serviceName>) —
and BluetoothDevice.== is id-based, so the two never dedupe. Both rows
carried the same name, the same "Supports virtual shifting" subtitle and
the same bike icon, leaving the rider to guess which one to tap.

Name the upstream transport wherever the duplicates surface:
- the onboarding trainer picker (both the scan rows and the already-
  connected card) now reads "<transport> · Supports virtual shifting"
  and leads with a wifi/bluetooth mark instead of the generic bike;
- ProxyDevice.nameBadge drops the exact-duplicate-name gate — real
  duplicates differ slightly (BLE advertisement vs DirCon service name),
  which is exactly the case the gate missed;
- the diagnostics bundle gains upstream=wifi|ble next to the existing
  mode= (which is the *downstream* retrofit mode, not the same thing);
- the home chain card ranks bridged > connected > connecting > idle so a
  live entry always beats its idle twin.

New reusable connectionWifi / connectionBluetooth l10n keys replace the
hardcoded 'WiFi'/'BT' strings in the connection card and the proxy
metric row.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-15 08:43:26 +02:00
Jonas Bark
c1f1befe26 fix(onboarding): final-review fixes — sub-flow gating, prompts, exit affordance, test-mode card
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>
2026-08-09 22:16:50 +02:00
Jonas Bark
194a90ae4a feat(onboarding): trigger wizard on fresh installs, add Setup guide menu entry
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-09 22:16:22 +02:00
Jonas Bark
e310adbceb Merge branch '6.2' into 6.3
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>
2026-07-08 12:04:00 +02:00
Jonas Bark
69fbcf607e feat: check Shorebird beta track for beta_access users
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 11:07:42 +02:00
Jonas Bark
7f3af28bf7 feat(emulation): replace debug Continue button with Emulate device menu
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>
2026-07-02 10:03:27 +02:00
Jonas Bark
ff57b005d5 feat(shifting): show 2×N gear position when the front derailleur is active
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>
2026-06-26 15:02:40 +02:00
Jonas Bark
788bdc5436 feat: embed diagnostics block in debugText; skip discovery on crash path 2026-06-22 10:32:40 +02:00
Jonas Bark
0a76de870a refactor: ProxyDevice owns trainer identity and def construction
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>
2026-05-21 00:08:33 +02:00
Jonas Bark
d30c685665 fix(menu): show real FBD type in debug menu after activeDefinition refactor
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.
2026-05-20 18:00:12 +02:00
Jonas Bark
390d09b964 UI adjustments, add screenshot to support 2026-05-13 09:05:48 +02:00
Jonas Bark
75dd10371a show default OBP actions 2026-05-11 20:53:25 +02:00
Jonas Bark
c771329f79 fix dynamic island 2026-05-11 14:13:19 +02:00
Jonas Bark
294aea1d2c refactor: swap proxy live telemetry for services list in debugText
The power / cadence / speed / hr fields aren't useful for diagnosing
a stuck Bridge or proxy issue — they're just current-rider state. The
BLE service & characteristic UUIDs are the actually-diagnostic bits,
and TelemetrySnapshot already builds that block as the chat freetext.

Promotes _buildServicesFreetext in telemetry_snapshot.dart to a
public buildProxyServicesFreetext, then has _describeProxyDevice in
menu.dart drop the live-metric fields and append the services block
indented under each proxy entry. Same exact text the support chat
freetext already includes, so report and freetext stay in lockstep.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-28 09:41:22 +02:00
Jonas Bark
2b3eb1a5f0 feat: include connected proxy / Smart Trainer telemetry in debugText
debugText() — used by the support-chat diagnostic preview, the login
screen feedback fallback, and the global crash log — now lists every
ProxyDevice currently in core.connection.proxyDevices on its own
line. Each entry summarises the bits that matter for diagnosing a
Bridge / proxy issue:

  <name> · state=<disconnected|starting|started|bridged> ·
    mode=<proxy|wifi|bluetooth> · def=<RuntimeType> ·
    fw=<firmware> · mfg=<manufacturer> ·
    [gear=<n>/<max> · trainerMode=<erg|sim|...> ·
     power=<W> · cadence=<rpm> · speed=<km/h> · hr=<bpm>]

Telemetry fields only appear when the active definition is a
FitnessBikeDefinition and the corresponding ValueNotifier has a
non-null reading.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-28 09:38:42 +02:00
Jonas Bark
e955d81fce connection settings adjustments 2026-03-18 10:07:22 +01:00
Jonas Bark
8c1a03e873 new ui #20 2026-03-12 10:23:21 +01:00
Jonas Bark
88cbc7d6b6 new ui #18 2026-03-12 09:42:39 +01:00
Jonas Bark
054414b019 new ui #11 2026-03-11 16:52:19 +01:00
Jonas Bark
0ed0eee8d5 new ui #10 2026-03-11 15:13:00 +01:00
Jonas Bark
da43f19533 no longer build self signed MSIX 2026-03-06 18:12:09 +01:00
Jonas Bark
92e80647d2 login with facebook, UI fixes 2026-03-06 14:40:30 +01:00
Jonas Bark
7a649f0e6e UI Fixes 2026-03-01 12:36:08 +01:00
Jonas Bark
7c0d2cd25c UI adjustments 2026-02-27 12:33:18 +01:00
Jonas Bark
1c96ddff60 resolve issue #310 2026-02-23 18:48:50 +01:00
Jonas Bark
98e7eaf51a work on issue #310 2026-02-23 15:18:17 +01:00
Jonas Bark
a60cf5f736 local pro version without needing to log in 2026-02-20 15:42:28 +01:00
Jonas Bark
e7aeae1c29 subscription #1 2026-02-17 15:07:43 +01:00
Jonas Bark
a9f52dbbd0 sign in with google, apple 2026-02-16 16:26:22 +01:00
Jonas Bark
d7ede1b5ff cleanup, proxy work 2026-02-01 16:33:03 +01:00
Jonas Bark
ed1ce0da1c instructions UI change 2026-01-02 15:03:46 +01:00
Jonas Bark
387eb9d279 ui adjustments 2025-12-31 13:51:47 +01:00
Jonas Bark
86f8aa90f7 debug text adjustments 2025-12-31 12:11:06 +01:00
Jonas Bark
39cb6e0264 implement logic 2025-12-26 19:36:20 +01:00
Jonas Bark
d28d8515f3 bugfixes and clarifications 2025-12-20 10:01:37 +01:00
Jonas Bark
5a67f2ee76 remove remains of swift_control 2025-12-14 16:22:07 +01:00
Jonas Bark
ac0e1d64f9 change icons 2025-12-11 22:55:54 +01:00
Jonas Bark
3426b8a669 add more instructions, clarify mail support 2025-12-10 21:17:49 +01:00
Jonas Bark
cdd4a69716 control your trainer manually without requiring a controller - just like a Companion app 2025-12-10 18:57:08 +01:00
Jonas Bark
56c3e4c6ed cleanup, refactoring 2025-12-05 15:40:04 +01:00
Jonas Bark
b1a5779a8f cleanup, refactoring 2025-12-05 13:22:52 +01:00
Jonas Bark
1e0e516c86 ui adjustments 2025-12-04 12:58:31 +00:00
Jonas Bark
a9149a7499 translations 2025-12-01 15:46:02 +00:00
copilot-swe-agent[bot]
d241006458 Update widgets and utils to use localized strings
Co-authored-by: jonasbark <1151304+jonasbark@users.noreply.github.com>
2025-12-01 14:35:11 +00:00
Jonas Bark
f6c0d58b2f wording 2025-12-01 13:40:00 +00:00
Jonas Bark
4ffca872ce heureka 2025-11-30 00:44:45 +00:00
Jonas Bark
9c2a62bd94 less god objects 2025-11-29 13:12:09 +00:00