Commit Graph

198 Commits

Author SHA1 Message Date
Jonas Bark
aa1b9b5125 fix trainer connection logic 2026-05-06 06:27:21 +02:00
Jonas Bark
f3d473b820 adjustments 2026-04-28 20:15:38 +02:00
Jonas Bark
d19eea9eb4 feat: treat dFly channel actions as active when Di2 BLE is enabled 2026-04-28 19:23:05 +02:00
Jonas Bark
6a88e11863 feat: add Wahoo ELEMNT SupportedApp with di2Ble connection method 2026-04-28 18:49:03 +02:00
Jonas Bark
ed2853c2aa improve HID device logic 2026-04-28 18:48:32 +02:00
Jonas Bark
d10c586456 feat: add dFlyChannel1..4 InGameActions for Wahoo ELEMNT target 2026-04-28 18:45:30 +02:00
Jonas Bark
5e4093107a 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
864e1a7e72 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
8dca2d9454 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
5df12f908d UI adjustments 2026-04-26 09:44:56 +02:00
Jonas Bark
c47667af94 UI adjustments, BLE advertisement fix 2026-04-26 09:14:00 +02:00
Jonas Bark
d4a41b02b3 compatibility changes 2026-04-25 19:23:34 +02:00
Jonas Bark
b6442d6937 ui adjustments, DRY fixes 2026-04-24 14:13:05 +02:00
Jonas Bark
3a5e3835f4 ui fixes 2026-04-24 13:42:45 +02:00
Jonas Bark
7e0512145c feat(apps): add BikeControl as a supported trainer app 2026-04-24 13:26:31 +02:00
Jonas Bark
256a0bc2c3 feat(controller): add ControllerButton.initials getter 2026-04-24 10:33:38 +02:00
Jonas Bark
c96aed3585 ui adjustments 2026-04-23 12:02:18 +02:00
Jonas Bark
325c5ae464 feat(trainer-actions): consolidate shift/erg into mode-aware up/down + switchMode 2026-04-23 10:18:40 +02:00
Jonas Bark
a3ee458a07 feat(supported-app): add per-app trainer connection types 2026-04-23 08:52:09 +02:00
Jonas Bark
d48808827b 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
e80c0234bf feat(keymap): add virtualGearAmount on SupportedApp (MyWhoosh=30, default=24) 2026-04-20 09:14:06 +02:00
Jonas Bark
c7434deac6 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
1f306ef0f3 new openbikecontrol actions 2026-04-12 12:06:37 +02:00
Jonas Bark
bff564410b integrate logos 2026-04-12 11:40:43 +02:00
Jonas Bark
488d32afff group trainer dropdown by official support 2026-04-12 11:29:56 +02:00
Jonas Bark
c5c945593d cleanup 2026-04-12 10:44:49 +02:00
Jonas Bark
80d838bd98 resolve https://github.com/OpenBikeControl/bikecontrol/issues/339 2026-04-12 10:18:39 +02:00
Jonas Bark
ac5873b03d TrainingPeaks is fully supported now 2026-04-10 16:04:06 +02:00
Jonas Bark
b62c8a5fc5 cleanup, dircon fixes 2026-04-10 16:02:59 +02:00
Jonas Bark
f8e9ebabe1 Rouvy kudo command 2026-04-10 15:36:22 +02:00
Jonas Bark
84157c3f55 TPV: Bluetooth now supported 2026-04-10 09:48:40 +02:00
Jonas Bark
ba7525efcd degrade buggy TrainingPeaks support 2026-04-07 09:05:25 +02:00
Jonas Bark
9443083fe2 wording adjustments 2026-04-07 08:26:51 +02:00
Jonas Bark
43a764d078 5.2.0 adjustments 2026-04-02 10:20:43 +02:00
Jonas Bark
a34b2ac9bf revise connection methods 2026-03-25 09:27:37 +01:00
jonasbark
96b7eb1b5e 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
96bf9b9ac3 UI adjustments, TP adjustment 2026-03-19 19:54:52 +01:00
Jonas Bark
a643af1246 UI adjustments, TP adjustment 2026-03-19 13:25:40 +01:00
Tumlinh
d574bc1a29 Add two extra Wahoo KICKR headwind actions for cyclic speed increase/decrease 2026-03-14 12:14:35 +00:00
Tumlinh
12e6b2296e Add two actions to Wahoo KICKR headwind to increase and decrease speed respectively 2026-03-14 11:43:40 +00:00
Jonas Bark
bca460cfcf new MyWhoosh keyboard shortcuts 2026-03-12 09:13:21 +01:00
Jonas Bark
aace7d7a4b new ui #20 2026-03-12 08:51:21 +01:00
Jonas Bark
97318ffa1c new ui #1 2026-03-10 12:35:36 +01:00
Jonas Bark
719a5df684 fix change camera angle + emote on simulator for link, tuck action for mywhoosh 2026-03-08 09:42:16 +01:00
Jonas Bark
ada54e05eb create screenshot on Windows + macOS 2026-02-25 20:57:12 +01:00
Jonas Bark
68f4feedd3 ui fixes 2026-02-25 19:26:37 +01:00
Jonas Bark
7fb06a1e22 individual actions for single, double, long press 2026-02-25 11:20:18 +01:00
Jonas Bark
b67f104ce0 enable shortcuts on iOS as well 2026-02-24 10:56:23 +01:00
Jonas Bark
e591c37a19 resolve issue #310 2026-02-23 18:48:50 +01:00
Jonas Bark
d3f64d3f1d Windows: run any command 2026-02-23 09:07:45 +01:00