Commit Graph

202 Commits

Author SHA1 Message Date
Jonas Bark
57f0b707d8 enable trainingpeaks, version++ 2026-06-06 20:31:27 +02:00
Jonas Bark
afa5777e86 fixes 2026-05-21 22:25:28 +02:00
Jonas Bark
51f2455166 rouvy mode 2026-05-21 20:34:51 +02:00
Jonas Bark
75dd10371a show default OBP actions 2026-05-11 20:53:25 +02:00
Jonas Bark
860a1b3523 fix trainer connection logic 2026-05-06 06:27:21 +02:00
Jonas Bark
fd870e356d adjustments 2026-04-28 20:15:38 +02:00
Jonas Bark
7f04985a67 feat: treat dFly channel actions as active when Di2 BLE is enabled 2026-04-28 19:23:05 +02:00
Jonas Bark
152ed69b16 feat: add Wahoo ELEMNT SupportedApp with di2Ble connection method 2026-04-28 18:49:03 +02:00
Jonas Bark
4766bff12f improve HID device logic 2026-04-28 18:48:32 +02:00
Jonas Bark
153c45dc3e feat: add dFlyChannel1..4 InGameActions for Wahoo ELEMNT target 2026-04-28 18:45:30 +02:00
Jonas Bark
f8fb2749ff fix: stop reconstructing IconData on keymap decode (tree-shake fix)
The IconData(...) call in KeyPair.decodeButton — added to round-trip
ControllerButton.icon through SharedPreferences — is a non-const
constructor that defeats Flutter's icon-font tree-shaker, breaking
the release build:

    This application cannot tree shake icons fonts. It has non-constant
    instances of IconData at the following locations:
      - lib/utils/keymap/keymap.dart:511:18

In practice the round-trip was redundant: known buttons in
ControllerButton.values already carry their const icon in the static
definition, so they get the same icon back via copyWith on decode
just from the matched name. Unknown buttons never had a custom icon
in the first place, so dropping the encode side too is a no-op for
saved profiles.

Encode now emits only name (+ deviceId when set); decode never
constructs an IconData. Comment in both halves explains the
constraint so this doesn't regress.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-28 09:25:01 +02:00
Jonas Bark
3962d4516b feat: persist ControllerButton.icon in encoded keymaps
Extends KeyPair.encode/decode to round-trip the optional ControllerButton
icon alongside the existing name + sourceDeviceId fields. Encoded as a
{codePoint, fontFamily, fontPackage} sub-map only when present, so a
button without an icon still serialises as the legacy plain-string
shape — backward compatible with profiles already saved to
SharedPreferences.

Decoding rebuilds the IconData via its codePoint + font family/package,
then applies it via copyWith on the matched ControllerButton or as a
constructor arg for unknown-button fallback. Buttons that previously
had a default icon from their static definition are preserved on
decode (the decoded value overrides only when serialised).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-28 08:25:08 +02:00
Jonas Bark
39ad7b8b49 feat: add Workout Pause/Resume trainer action and inline feedback prompt
Workout: Pause/Resume action is a new InGameAction in the trainer-control
group. It toggles core.workoutRecorder between recording and paused
states without requiring a connected proxy trainer (handled in
base_actions.dart before the proxy dispatch). No-op when the recorder
is idle.

Inline feedback prompt replaces the standalone "Provide Feedback"
button on the proxy device details page. It shows "Does it work?"
with a 3-cell grid (Yes / No difference / No). Yes and No navigate
to TrainerFeedbackPage with the rating pre-filled (TrainerFeedbackPage
now accepts an optional initialRating). "No difference" dismisses
the prompt for the current page session.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 16:29:07 +02:00
Jonas Bark
2071719fbd UI adjustments 2026-04-26 09:44:56 +02:00
Jonas Bark
642fc754a1 UI adjustments, BLE advertisement fix 2026-04-26 09:14:00 +02:00
Jonas Bark
b7d9fba548 compatibility changes 2026-04-25 19:23:34 +02:00
Jonas Bark
135494819d ui adjustments, DRY fixes 2026-04-24 14:13:05 +02:00
Jonas Bark
080e8a5c90 ui fixes 2026-04-24 13:42:45 +02:00
Jonas Bark
972e13ad12 feat(apps): add BikeControl as a supported trainer app 2026-04-24 13:26:31 +02:00
Jonas Bark
238fdf0df3 feat(controller): add ControllerButton.initials getter 2026-04-24 10:33:38 +02:00
Jonas Bark
924138d1aa ui adjustments 2026-04-23 12:02:18 +02:00
Jonas Bark
b6996c937b feat(trainer-actions): consolidate shift/erg into mode-aware up/down + switchMode 2026-04-23 10:18:40 +02:00
Jonas Bark
03e1727d6a feat(supported-app): add per-app trainer connection types 2026-04-23 08:52:09 +02:00
Jonas Bark
fa6a26686a Android: broadcast a custom Intent on button press - connect your controller to automation apps like MacroDroid or Tasker to turn your phone into a ringbell, trigger Shortcuts, toggle lights, and more (Pro) 2026-04-22 10:48:42 +02:00
Jonas Bark
df937d7fec feat(keymap): add virtualGearAmount on SupportedApp (MyWhoosh=30, default=24) 2026-04-20 09:14:06 +02:00
Jonas Bark
4042de95d5 feat(actions): add 6 trainer-control InGameActions
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 10:37:13 +02:00
Jonas Bark
40f171e935 new openbikecontrol actions 2026-04-12 12:06:37 +02:00
Jonas Bark
7339dbb540 integrate logos 2026-04-12 11:40:43 +02:00
Jonas Bark
3b2a04003f group trainer dropdown by official support 2026-04-12 11:29:56 +02:00
Jonas Bark
8f52f0ff34 cleanup 2026-04-12 10:44:49 +02:00
Jonas Bark
37ee97e7b7 resolve https://github.com/OpenBikeControl/bikecontrol/issues/339 2026-04-12 10:18:39 +02:00
Jonas Bark
c9dd4dd485 TrainingPeaks is fully supported now 2026-04-10 16:04:06 +02:00
Jonas Bark
2a62b9107a cleanup, dircon fixes 2026-04-10 16:02:59 +02:00
Jonas Bark
b532df0ff0 Rouvy kudo command 2026-04-10 15:36:22 +02:00
Jonas Bark
1c38d096ac TPV: Bluetooth now supported 2026-04-10 09:48:40 +02:00
Jonas Bark
6085996411 degrade buggy TrainingPeaks support 2026-04-07 09:05:25 +02:00
Jonas Bark
9c17ea0fc0 wording adjustments 2026-04-07 08:26:51 +02:00
Jonas Bark
b992f62a69 5.2.0 adjustments 2026-04-02 10:20:43 +02:00
Jonas Bark
5ed2bce59b revise connection methods 2026-03-25 09:27:37 +01:00
jonasbark
6c5f80b4b6 Merge pull request #321 from Tumlinh/headwind-inc-dec
RFC WIP: Add two actions to Wahoo KICKR headwind to increase and decrease speed respectively
2026-03-23 20:53:04 +01:00
Jonas Bark
e06dfe02fa UI adjustments, TP adjustment 2026-03-19 19:54:52 +01:00
Jonas Bark
2d0c47233d UI adjustments, TP adjustment 2026-03-19 13:25:40 +01:00
Tumlinh
1a011dd9de Add two extra Wahoo KICKR headwind actions for cyclic speed increase/decrease 2026-03-14 12:14:35 +00:00
Tumlinh
b7f337b111 Add two actions to Wahoo KICKR headwind to increase and decrease speed respectively 2026-03-14 11:43:40 +00:00
Jonas Bark
2164779e79 new MyWhoosh keyboard shortcuts 2026-03-12 09:13:21 +01:00
Jonas Bark
3706b1f9ef new ui #20 2026-03-12 08:51:21 +01:00
Jonas Bark
74ee11d98c new ui #1 2026-03-10 12:35:36 +01:00
Jonas Bark
97bbd1fc7c fix change camera angle + emote on simulator for link, tuck action for mywhoosh 2026-03-08 09:42:16 +01:00
Jonas Bark
60c4df253d create screenshot on Windows + macOS 2026-02-25 20:57:12 +01:00
Jonas Bark
4270f31c44 ui fixes 2026-02-25 19:26:37 +01:00