Commit Graph

91 Commits

Author SHA1 Message Date
Jonas Bark
419d23d74f fix(paywall): stop stretching plan cards against an unbounded height
The plan Row sits in a Column inside the sheet's scroll view, so its cross
axis is unbounded — CrossAxisAlignment.stretch then hands each card an
infinite height and layout dies mid-frame ('BoxConstraints forces an
infinite height', then the drawer paints un-laid-out boxes as 'RenderBox
was not laid out'). IntrinsicHeight bounds the row to its tallest card so
stretch can still equalise them.

Also reverts SelectableCard's Stack to the default loose fit: passing
constraints through risked the same unbounded-height crash in every
scrolling drawer that uses it, and the onboarding grid it was added for
now has its own tile widget. A test renders both inside a scroll view.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-11 08:17:09 +02:00
Jonas Bark
bce0b4d49e fix(ui): SelectableCard fills tight cells so app-picker tiles are pixel-uniform
Stack was StackFit.loose: in the onboarding grid's tight cells the visible
button shrink-wrapped its caption (uneven heights) while the active ring
was Positioned.fill (cell-sized). StackFit.passthrough hands the cell
constraints to the button, and a new alignment param (default topLeft,
unchanged for existing rows) centers grid-tile content. Test asserts every
tile button renders at exactly one Size at both 3- and 5-column widths.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-10 08:26:24 +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
2327e1a56e UI fix 2026-07-07 18:38:52 +02:00
Jonas Bark
15d14808d5 feat(button-editor): show local actions when disabled with enable dialog
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VRVXtrmcgtKKz46AVDyqQp
2026-07-02 09:09:20 +02:00
Jonas Bark
fc83374306 refactor(incline): drive dispatch/sink-selection/UI off any incline device
- connection.dart: add inclineDevices getter (ManualInclineDevice) and
  generalize sinkProvider to pick any connected InclineSink, not just
  WahooKickrClimb; relay fallback unchanged
- base_actions.dart: dispatch incline actions to inclineDevices, not
  climbAccessories; error message now says "No incline device connected"
- button_edit.dart: gate incline card on inclineDevices, title uses
  inclineActions l10n key (generic "Incline")
- keymap.dart: hasActiveAction incline clause gates on inclineDevices
- incline_controller.dart: reset _lastWritten on manual hold so returning
  to auto re-asserts the grade even when grade equals last auto-written value
- incline_controller_test.dart: add re-asserts-after-manual-hold test

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-01 23:40:41 +02:00
Jonas Bark
1b10dee7f1 refactor(incline): generic incline in-game actions + labels
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-01 23:34:57 +02:00
Jonas Bark
03dba4d57a fix(climb): show accessory-actions header for Climb-only setups
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-01 21:55:27 +02:00
Jonas Bark
7e03a96741 feat(climb): surface Climb actions in the keymap editor
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-01 21:49:53 +02:00
Jonas Bark
ae0fd70e46 feat(phone-steering): add Calibrate to button editor when phone steering is on 2026-06-30 10:50:48 +02:00
Jonas Bark
c68ef13971 feat(6.2): make Record Screen a Pro-only action (proGuard + editor badge) 2026-06-24 20:28:38 +02:00
Jonas Bark
2eb7e56219 feat(6.2): move Record Screen under Weitere Aktionen (below screenshot) + open-folder action on saved recording 2026-06-24 18:48:22 +02:00
Jonas Bark
64e015313b feat(6.2): add Record Screen editor card and recording indicator
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 16:43:47 +02:00
Jonas Bark
b0c06a0b70 flag MyWhoosh-over-OBP unsupported actions in button mapping popup
Add a per-card "not well supported by MyWhoosh, yet" note under OBP
actions that MyWhoosh handles poorly (Gear Set, Up/Down, Left/Right,
Select, Back, Menu, Home, Camera View) and float the well-supported
actions (shift / steer) to the top of the list.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-01 12:45:37 +02:00
Jonas Bark
e518c47a28 animations 2026-05-31 10:40:28 +02:00
Jonas Bark
60ba3121c6 animations 2026-05-25 20:13:08 +02:00
Jonas Bark
75dd10371a show default OBP actions 2026-05-11 20:53:25 +02:00
Jonas Bark
b1d1cc2466 feat: expose dFly channel actions in the Button Editor when Di2 BLE is enabled
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 19:28:18 +02:00
Jonas Bark
a4d9335206 i18n: extract hardcoded strings on the button edit page
Pulls 'Editing <trigger>' header, long-press fallback warning, the
Trainer Direct Control / Local-Remote / Other Actions / Accessory
Actions section titles, the Headwind sub-action labels, the launch
shortcut + broadcast intent dialog copy, screenshot/command dialog
toasts, and the custom-action dropdown labels into the ARB. Also
localizes the OverviewPage Blog tab.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 13:30:30 +02:00
Jonas Bark
2071719fbd UI adjustments 2026-04-26 09:44:56 +02:00
Jonas Bark
1b13bdab0a direct control refactoring 2026-04-25 13:45:14 +02:00
Jonas Bark
135494819d ui adjustments, DRY fixes 2026-04-24 14:13:05 +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
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
defc167446 UI adjustments 2026-04-16 13:22:07 +02:00
Jonas Bark
37ee97e7b7 resolve https://github.com/OpenBikeControl/bikecontrol/issues/339 2026-04-12 10:18:39 +02:00
Jonas Bark
67e6b32ac8 UI adjustments, cleanup 2026-04-07 08:32:57 +02:00
Jonas Bark
f19a244618 Add guarded long-press repeat for Pro users
- Make implicit repeat single-click behavior Pro-only and single-button only
- Prevent overlapping repeat actions and add coverage for repeat cleanup
- Update close action to shut down gracefully
2026-04-07 08:11:07 +02:00
Jonas Bark
284a0ad0f0 Long press now repeats the single click action by default, useful for continuous gear shifting or volume adjustments 2026-04-04 20:43:29 +02: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
6cd355c9f9 allow music / volume control for old purchases 2026-03-20 16:48:23 +01:00
Jonas Bark
5b77eded1b predefined action fixes 2026-03-18 16:09:54 +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
8c1a03e873 new ui #20 2026-03-12 10:23:21 +01:00
Jonas Bark
2164779e79 new MyWhoosh keyboard shortcuts 2026-03-12 09:13:21 +01:00
Jonas Bark
40769d4577 new ui #18 2026-03-12 07:38:20 +01:00
Jonas Bark
318bc959de new ui #8 2026-03-11 13:31:23 +01:00
Jonas Bark
2a9fdc7084 new ui #6 2026-03-11 11:36:33 +01:00
Jonas Bark
91f693ec0d new ui #5 2026-03-10 21:02:41 +01:00
Jonas Bark
91501d2588 new ui #3 2026-03-10 15:06:13 +01:00
Jonas Bark
a818d58431 cleanup 2026-03-04 15:56:01 +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
Jonas Bark
fba1b82b07 add long press option for devices that do not support it (tap once = down, tap again = up) 2026-02-25 18:43:00 +01:00
Jonas Bark
f4b9a349d0 individual actions for single, double, long press 2026-02-25 11:20:18 +01:00
Jonas Bark
7ace0f9171 UI adjustment 2026-02-25 09:12:06 +01:00
Jonas Bark
5c057f9bd4 enable shortcuts on iOS as well 2026-02-24 10:56:23 +01:00
Jonas Bark
940508eb6f Windows: run any command 2026-02-23 09:07:45 +01:00
Jonas Bark
34fade442e shortcuts only available on macOS 2026-02-22 18:43:12 +01:00